LDAP with ActiveDirectory

Post general support questions here that do not specifically fall into the Linux or Windows categories.

Moderators: Developers, Moderators

Post Reply
thehemi
Posts: 32
Joined: Wed Jul 27, 2005 3:11 pm
Location: Texas

LDAP with ActiveDirectory

Post by thehemi »

Has anyone done this? Can we have a brief how-to? :)

I select the Use LDAP Authentication option.
I enter the LDAP server IP address and the DN.
(eg- CN=<username>,OU=Users,DC=domain,DC=com)

I get no login prompt at all, just dumped into Cacti.
Apparently it's not doing something right, because I
also get "Undefined index: sess_user_id" errors.

Has anyone integrated Cacti with AD? How did you do it?
(I checked the documentation first, but had no LDAP info.)
http://www.TheHEMI.com/
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

I'm using LDAP authentication with my Win2K3 domain just fine.

LDAP Server: zeus.domainname.com
LDAP DN: <username>@zeus.domainname.com
LDAP Cacti Template User: GuestLDAP

I think your syntax for the DN is wrong.
thehemi
Posts: 32
Joined: Wed Jul 27, 2005 3:11 pm
Location: Texas

Post by thehemi »

Excellent, thanks! My LDAP authentication is humming now.

Although if I disable the Built-In Authentication option, it does
not prompt me for login credentials. Otherwise it works great.
http://www.TheHEMI.com/
User avatar
BSOD2600
Cacti Moderator
Posts: 12171
Joined: Sat May 08, 2004 12:44 pm
Location: USA

Post by BSOD2600 »

LDAP in Cacti 0.9 will be a lot more robust. One of the devs posted a screen shot a while ago.... only if I could find the thread.
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Next version screen shot:

Image

I dug it up for you.. ;)
[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]
rpurcell
Posts: 4
Joined: Tue Aug 30, 2005 9:59 am

hoa

Post by rpurcell »

I have the same problem, I can't find any documentation on the cacti website about the ldap support in cacti... but I had try your syntax and it's not working for me I'm with a OpenLDAP acting as a PDC with samba I get no error just a blank page when I'm trying to log into cacti with ldap...
User avatar
rony
Developer/Forum Admin
Posts: 6022
Joined: Mon Nov 17, 2003 6:35 pm
Location: Michigan, USA
Contact:

Post by rony »

Well, to use with OpenLDAP, you need a properly format DN for authenication.

Something like:

Code: Select all

uid=<username>,ou=people,dc=domain,dc=com
Replace people with the container for our users, replace domain with your domain. So that "domain.com" = "dc=domain,dc=com".

Hope this helps.
[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]
rpurcell
Posts: 4
Joined: Tue Aug 30, 2005 9:59 am

hoa

Post by rpurcell »

as u can see below in this little screen shot this is my tree
and this is my setting
ip: 192.168.0.10
dn: uid=<username>,ou=Users,dc=rb3k,dc=com
template user: GuestLDAP

now I get a acces denied when I'm trying to authentify but how can I raise the debug level cuz I don't get anything in the log file of cacti

does I need to put the user in a special group ?
Attachments
ldap.JPG
ldap.JPG (20.05 KiB) Viewed 22462 times
rpurcell
Posts: 4
Joined: Tue Aug 30, 2005 9:59 am

ho

Post by rpurcell »

ok forget about that it's working now.. so I had to permit the user to acces console in the user management tab... hehe
thx a lot
Brainscanner
Posts: 24
Joined: Tue Oct 16, 2007 2:59 am

Post by Brainscanner »

Maybe someone can take a look at my post here: http://forums.cacti.net/about23948.html
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest