C
chat_devil
hi,
does anyone know if it is possible to remove an attribute that can not
be read into the ADSI property cache/collection.
i'm trying to do an eDirectory password change from .net directory
services. eDirectory uses the "userPassword" property to change the
password and for a normal user, this has to be deleted and then added
to in one LDAP modify operation to successfully change the password. As
far as i know eDirectory schema does not allow this property to be
read.
i've tried doing the following, but it seems only the Add operation is
sent to the eDir server.
DirectoryEntry ldapConnection = // set to the exact user, authenticated
with old password
_ldapConnection.RefreshCache();
_ldapConnection.Properties["userPassword"].Remove(oldPassword);
_ldapConnection.Properties["userPassword"].Add(newPassword);
_ldapConnection.CommitChanges();
i've contacted the novell support forums and they suggested to check if
there's an ADSI limitation that's affecting this.
if anyone's come across this issue before or can shed some light on if
it can be done, that'll be very much appreciated.
regards
chat
does anyone know if it is possible to remove an attribute that can not
be read into the ADSI property cache/collection.
i'm trying to do an eDirectory password change from .net directory
services. eDirectory uses the "userPassword" property to change the
password and for a normal user, this has to be deleted and then added
to in one LDAP modify operation to successfully change the password. As
far as i know eDirectory schema does not allow this property to be
read.
i've tried doing the following, but it seems only the Add operation is
sent to the eDir server.
DirectoryEntry ldapConnection = // set to the exact user, authenticated
with old password
_ldapConnection.RefreshCache();
_ldapConnection.Properties["userPassword"].Remove(oldPassword);
_ldapConnection.Properties["userPassword"].Add(newPassword);
_ldapConnection.CommitChanges();
i've contacted the novell support forums and they suggested to check if
there's an ADSI limitation that's affecting this.
if anyone's come across this issue before or can shed some light on if
it can be done, that'll be very much appreciated.
regards
chat