Hi first thanks for the nice modul.

I cant get it to work. If iam testing i get the error message above in title.
If iam save the server configuration i get the message: Connection successful, bind failed.

I have one own written php7 script what works perfectly.. (not for drupal)
I think the problem ist just the username in sample: "ldap_bind($connect, $auth_user, $auth_pass)".
It need to be "ldap_bind($connect, 'domain\\'.$auth_user, $auth_pass)" but i dont find the code to change in code.

nice regards

Comments

ardonos created an issue. See original summary.

grahl’s picture

Issue tags: -ldap_search()

Hi

If you want to hardcode than in, you are free to change the bind() function in the Server class.

Nonetheless, I don't quite understand your problem. I believe you want the service account to be in the form of 'domain\\username'. Is there a problem why you can't just put that into the service account credentials fields?

P.S.: If you don't mind me asking, which directory service requires that formatting? I have mostly seen full DN or shorthands in OpenLDAP or AD.

ardonos’s picture

Hi grahl, thanks for the fast answer.
Okay sure i can use the formatting in service account.. i tried but dont work. Maybe iam do it false.
In server configuretion overview i get the code from funtion connected to server, bind failed.
I dont know where are my mistake, bad.

Edit: iam using php7. Maybe there is the problem?

Nice regards

grahl’s picture

Hi ardonos

Maybe an oversight on my part, but which bind method are you using? I just reread your question and you are probably using user account bind.

My answer assumed service account because it's the most common one. If that's the case, could you please try and hardcode your username as desired in the bind() function in Server.php? If the bind succeeds there would indeed be some filtering going on and I'd consider fixing that, if not you likely still have other problems in your LDAP server configuration.

If you are binding with user credentials, the table overview might give you a false negative, please use the server test form and verify that you cannot get a bind to succeed if you supply valid credentials in the form. (With and without domain prefix to be sure.)

grahl’s picture

Category: Bug report » Support request
Status: Active » Postponed (maintainer needs more info)

A fix was committed to DEV to hide the incorrect message regarding unsuccessful bind with user binding in the overview. Still need additional information to help here.

ardonos’s picture

Hi grahl, sorry that i dont reportet earlier.

Back to the/my problem. It was just my mistake!
I was with my brain in php code and always tried on the input in rendered drupal mask a "double \\" :P

I was wondering.. because in your module i cant find a mistake or bug. Now its so heavy clear ;)

Thanks for your nice work, thanks for your support and effort!

Nice regards.

ardonos’s picture

Status: Postponed (maintainer needs more info) » Closed (works as designed)