You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have written the following code:
ldap_connect "uid=testuser,ou=People,o=somewhere", "mypass"
u = User.first(:uid => "otheruser")
u.password = "foo"
p u.save
u.save in the last line prints true, but logs the warning
WARN -- Ldap::NetLdapFacade: (Ldap::NetLdapFacade) update error: (50) Insufficient Access Rights
DN: uid=otheruser,ou=People,o=somewhere
[[:add, :userPassword, "foo"]]
Hi,
I have written the following code:
ldap_connect "uid=testuser,ou=People,o=somewhere", "mypass"
u = User.first(:uid => "otheruser")
u.password = "foo"
p u.save
u.save
in the last line prints true, but logs the warningWARN -- Ldap::NetLdapFacade: (Ldap::NetLdapFacade) update error: (50) Insufficient Access Rights
DN: uid=otheruser,ou=People,o=somewhere
[[:add, :userPassword, "foo"]]
I expected to get false as described in http://rubydoc.info/github/datamapper/dm-core/master/DataMapper/Resource:save. Unfortunately returning 0 in LdapAdapter.update is not enough
The text was updated successfully, but these errors were encountered: