LDAP operation [add] failed. #480
Unanswered
sabbath1989
asked this question in
Q&A
Replies: 2 comments 1 reply
-
Hi @sabbath1989, I'm going to need to see the code that's creating the user to be able to assist you further 👍 |
Beta Was this translation helpful? Give feedback.
0 replies
-
steven thanks for the quick response, I managed to solve it, the $model->save() method didn't work, I used create([]), and it's working, for the save to work it needs to be completely inside the try, if the code is split presents problems. |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi, i'm with problem, when i try create a new user, error: LDAP operation [add] failed.
i'm usering laravel 8 with ssl, php artisan ldap:test i have a return ok.
Log:
[2022-06-23 09:44:46] local.INFO: LDAP (ldaps://x.x.x.x:636) - Operation: Binding - Username: cn=administrator,cn=Users,dc=xxx,dc=com,dc=br
[2022-06-23 09:44:46] local.INFO: LDAP (ldaps:///x.x.x.x.86:636) - Operation: Bound - Username: cn=administrator,cn=Users,dc=xxx,dc=com,dc=br
[2022-06-23 09:44:46] local.INFO: LDAP (ldaps:///x.x.x.x.86:636) - Operation: Search - Base DN: dc=xxx,dc=com,dc=br - Filter: (&(objectclass=\74\6f\70)(objectclass=\70\65\72\73\6f\6e)(objectclass=\6f\72\67\61\6e\69\7a\61\74\69\6f\6e\61\6c\70\65\72\73\6f\6e)(objectclass=\75\73\65\72)(samaccountname=\74\65\73\74\65)(!(objectclass=\63\6f\6d\70\75\74\65\72))) - Selected: (objectguid,*) - Time Elapsed: 756.73
[2022-06-23 09:44:46] local.INFO: LDAP (ldaps:///x.x.x.x:636) - Operation: Saving - On: LdapRecord\Models\ActiveDirectory\User - Distinguished Name:
[2022-06-23 09:44:46] local.INFO: LDAP (ldaps:///x.x.x.x:636) - Operation: Creating - On: LdapRecord\Models\ActiveDirectory\User - Distinguished Name: cn=teste teste,ou=Users,dc=xxx,dc=com,dc=br
[2022-06-23 09:44:47] local.ERROR: LDAP operation [add] failed. {"userId":3,"exception":"[object] (Exception(code: 0): LDAP operation [add] failed. at /app/vendor/directorytree/ldaprecord/src/HandlesConnection.php:182)
[stacktrace]
Beta Was this translation helpful? Give feedback.
All reactions