Hi all,

I'm developing a web interface with PHP and LDAP to manage eDirectory and Active Directory in a common project.

I'm able to add a user (with password) with PHP/LDAP in eDirectory, but, when I try to change password (with ldap_modify or ldap_mod_replace), return a "Modify: No such attribute".

Using ldapmodify to test, got:

ldap_modify: No such object (32)
additional info: NDS error: no such entry (-601)

ldapsearch query results ok.

Example:

#ldapsearch -D "CN=adminfoo,o=tree" -w foopass -p 389 -h 192.168.1.1 -b "O=tree" "cn=foobar"

# extended LDIF
#
# LDAPv3
# base <O=tree> with scope subtree
# filter: cn=foobar
# requesting: ALL
#


dn: cn=foobar,O=tree
userAccountControl: 512
sAMAccountName: foobar

and all other proprieties of the object.

# search result
search: 2
result: 0 Success

The ldif:

dn: cn=foobar,o=tree
changetype: modify
delete: userPassword
userPassword: oldpassword
add: userpassword
userPassword: newpassword

#ldapmodify -x -h 10.4.2.20 -D "CN=fooadmin,o=tree" -w adminpass -f edir.ldif

ldap_modify: No such object (32)
additional info: NDS error: no such entry (-601)


Any idea?

Thanks in advance.

Silveira Neto