How to fix PHPBB connect to LDAP (AD on Win2003)

bxglxbxglx2000
bxglxbxglx2000 used Ask the Experts™
on
I need config PHPBB authenticate with user in AD of Win2003
My server ip is 10.0.0.9, and I test connect LDAP OK (with LdapAdmin )

But I have problem with LDAP parameters:

 1
If I type real administrator password of server 2003 to LDAP password box,  result is:
 2
If I type wrong administrator password of server 2003 to LDAP password box,  result is:
 3
How can I fix it ?
Thank you!
Comment
Watch Question

Do more with

Expert Office
EXPERT OFFICE® is a registered trademark of EXPERTS EXCHANGE®
Chris DentPowerShell Developer
Top Expert 2010

Commented:

Mostly fine, I think your real problem is 4.

4. Should be SamAccountName, but it depends on what you use as the logon name. Start with SamAccountName

6. mail

Chris

Author

Commented:
I already fill "SamAccountName" in 4 and mail in 6, but still error

"Could not find a login identity for administrator"
PowerShell Developer
Top Expert 2010
Commented:

Do you have the Windows support tools installed anywhere?

Perhaps run:

dsquery user -samid administrator

That'll do to confirm the value for LDAP User DN.

We might also find it has an odd default LDAP Filter, so lets change that to:

(&(objectClass=user)(objectCategory=person))

While you're here, I advise you do not use administrative accounts for LDAP authentication mechanisms. Instead create another, non-privileged, account for the task.

Chris
Exploring ASP.NET Core: Fundamentals

Learn to build web apps and services, IoT apps, and mobile backends by covering the fundamentals of ASP.NET Core and  exploring the core foundations for app libraries.

Author

Commented:
Thank you, But Not success!
(I only user administrator account for test now, not use in production!)

This is result of your command:
C:\Documents and Settings\Administrator>dsquery user -samid administrator
"CN=Administrator,CN=Users,DC=home,DC=hht"

And I already filled it
also your line in fillter (5): (&(objectClass=user)(objectCategory=person))

If I change to WRONG password of Administrator, It say:
Binding to LDAP server failed with specified user/password.

If I change to TRUE password of Administrator, It say:
 "Could not connect to LDAP server"




Chris DentPowerShell Developer
Top Expert 2010

Commented:

I recommend Delete - Refund.

Chris

Author

Commented:
I already fix this problem:

4: SamAccountName

7, 8: Account login to Window Server (AD)
Or Account login to admin AD.

Thanks!

Do more with

Expert Office
Submit tech questions to Ask the Experts™ at any time to receive solutions, advice, and new ideas from leading industry professionals.

Start 7-Day Free Trial