-
Notifications
You must be signed in to change notification settings - Fork 448
ldapmodify works, but ldapjs client.modify() does't work as expected and return No Such Object #950
Comments
This sounds very much like issue #940. We have an integration test that covers it https://github.com/ldapjs/node-ldapjs/blob/bec2ff8e7399155ebdcbf86eec2077a792b8510b/test-integration/client/issue-940.test.js Can you point out where the integration test is different from what you are trying to accomplish? |
Pudiste resolverlo?. Tengo el mismo problema, desde la utilidad ldap se puede modificaro a los usuarios pero desde el código con la función modify, no se puede. Da ese error |
I couldn't make it work. I ended up using another stack with a different language and framework to solve my problem. Maybe the issue is that my DN contains white spaces, I don't know, I tried everything. |
I'm encountering a similar problem as this and issue #940. I'm able to search and locate the user, but when attempting to modify a attribute of the distinguished name (DN) containing Latin characters, it returns "No Such Object" error. Below are some examples of adjustments made to the DN accurately to modify the user (that have the following characters) in a correct way:
The code tested is more and less https://github.com/ldapjs/node-ldapjs/blob/bec2ff8e7399155ebdcbf86eec2077a792b8510b/test-integration/client/issue-940.test.js but on line 52, I have tried to use both dn directly and dn.toString(). |
The issue is very likely as described in ldapjs/filter#9 (comment) |
I'm triyng to update, a user. When I use ldapmodify from ldap-utils it works as expected.
ldapmodify -x -H ldap://grupoatto.corp:389 -D user -W -f modificacoes.ldif
my file has that content
But, when I use the same dn with client.modify()
I see that error
I don't know if it's a bug or if I'm making something wrong.
here is my code
The text was updated successfully, but these errors were encountered: