Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

#save always return true #12

Open
krissi opened this issue Nov 3, 2011 · 0 comments
Open

#save always return true #12

krissi opened this issue Nov 3, 2011 · 0 comments

Comments

@krissi
Copy link
Contributor

krissi commented Nov 3, 2011

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 warning
WARN -- 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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant