LDAP

Post support questions that directly relate to Linux/Unix operating systems.

Moderators: Developers, Moderators

sewkol
Posts: 14
Joined: Tue Mar 06, 2007 5:57 am
Location: Poland/Rzeszów

LDAP

Post by sewkol »

Hello

I have problem with authentication to MS AD 2003. I read posts and test various options, but still have error:

Code: Select all

LDAP Error: Unable to create LDAP object
What can be wrong ???

SK
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Um...

That is one of the generic error message I put in there that you should never get... :o

What method are you using in LDAP, No Searching, Anonymous Searching or Specific Searching?

Also, try another version either 2 or 3 in the settings and see if that works.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
sewkol
Posts: 14
Joined: Tue Mar 06, 2007 5:57 am
Location: Poland/Rzeszów

Post by sewkol »

I tried all 3 modes (No Searching, Anonymous Searching and Specific Searching) and versions (2 and 3).

In Distinguished Name (DN) tried:
<username>
<username>@xxx
<username>@xxx.xxx.xx

In Search Distingished Name (DN):
someuser
someuser@xxx
someuser@xxx.xxx.xx

and password.

Search Base and Search Filter i left empty.

SK
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

ADS will not allow Anonymous searching.

Try version 2 protocol and no TLS/SSL.

No Searching

And set your DN to "<username>@<domain>"

Replace <domain> with the domain that is located on the ADS users Account tab under "User logon name:".
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
sewkol
Posts: 14
Joined: Tue Mar 06, 2007 5:57 am
Location: Poland/Rzeszów

Post by sewkol »

I tried this. The same error still ocours :(

SK
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Email me a screen shot of what your setting are. Don't post them unless you don't care.. :)
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
sewkol
Posts: 14
Joined: Tue Mar 06, 2007 5:57 am
Location: Poland/Rzeszów

Post by sewkol »

Could this by problem of using newest programs (PHP 5.2.5 especially)?

SK
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Maybe, um....

I will have to test.
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
sewkol
Posts: 14
Joined: Tue Mar 06, 2007 5:57 am
Location: Poland/Rzeszów

Post by sewkol »

I tried once again reinstall system and all programs:
Solaris 10 x86 (07/08 - u4) - Local UTF-8
PERL 5.10.0
PHP 5.2.5
mod_perl 2.0.3
Net-SNMP 5.4.1
Apache 2.0.63 (default charset - utf-8 )
mysql-5.0.51a (default charset - utf-8 )


I configure guest account:
Enabled it
User Must Change Password at Next Login - no
Allow this User to Keep Custom Graph Settings -no
Rest options is default (Authentication Realm - Local)


And Authentication in settings:
Authentication Method: LDAP
Guest User: No user
User Template: guest
Server: IP address of my DC
Standard TCP Port: 389
Protocol Version: Version 3 (i tried Version 2 too)
Encryption: None
Referrals: Disabled
Mode: No searching
Distinguished Name: <username>@domain.xxx.xx (i have tried <username>@domain too )
Rest options is blank


And problem still ocours (LDAP Error: Unable to create LDAP object) :(

SK
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Sounds like a php problem and solaris, have you looked at the error log for the apache web server to determine what might be happening?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
sewkol
Posts: 14
Joined: Tue Mar 06, 2007 5:57 am
Location: Poland/Rzeszów

Post by sewkol »

No errors in apache log. I turn on php errors log - nothing too :(

SK
sewkol
Posts: 14
Joined: Tue Mar 06, 2007 5:57 am
Location: Poland/Rzeszów

Post by sewkol »

I think that problem is in parameters of LDAP connection. When I edit cacti/lib/ldap.php and insert there instead of parameters ($ldap_host,$ldap_port) values ("10.5.1.102","389") i can login to Cacti...

111 /* Connect to LDAP server */
112 $ldap_conn = @ldap_connect("10.5.1.102","389");



Where is a problem??

SK
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Um....

Do you have SSL/TLS not selected and the correct ports set?
[size=117][i][b]Tony Roman[/b][/i][/size]
[size=84][i]Experience is what causes a person to make new mistakes instead of old ones.[/i][/size]
[size=84][i]There are only 3 way to complete a project: Good, Fast or Cheap, pick two.[/i][/size]
[size=84][i]With age comes wisdom, what you choose to do with it determines whether or not you are wise.[/i][/size]
sewkol
Posts: 14
Joined: Tue Mar 06, 2007 5:57 am
Location: Poland/Rzeszów

Post by sewkol »

Yes - port is 389 and encryption set to None.

SK
paul.lessard
Posts: 2
Joined: Thu Mar 20, 2008 11:09 am

Perhaps a fix?

Post by paul.lessard »

I was receiving a similar error message, but I've fixed it by installing openldap. It seems I was able to build php with LDAP even though I didn't have openldap installed, so perhaps you've reached the same issue?
Post Reply

Who is online

Users browsing this forum: No registered users and 3 guests