I wrote an app that manages some integration between a website and the Active Directory. Now I discover that I'm pulling from the wrong AD (apparently we have three). I modified the server address to point to the correct directory, but now the base dn is wrong. The guy who's in charge of the directory is gone all week, so I'm trying to figure out if there's any way I can discover the base dn of this directory.
Any ideas?
Programmatically Discover Base DN (PHP/LDAP)
Moderator: General Moderators
-
tomprogers
- Forum Commoner
- Posts: 50
- Joined: Fri Mar 17, 2006 5:17 pm
- Location: Minnesota
- Contact:
Whats the context your searching? If it's something like: ou=classes,ou=students,o=university, the basedn would be o=university. (I'm using NDS syntax, not ActiveDirectory - so some of my wording might be off).
Real programmers don't comment their code. If it was hard to write, it should be hard to understand.
-
tomprogers
- Forum Commoner
- Posts: 50
- Joined: Fri Mar 17, 2006 5:17 pm
- Location: Minnesota
- Contact:
It is a university, actually.
It's a good idea, but the problem is that the first AD I was connecting to was dc=MyU,dc=edu. This new one is something else, apparently. We publish our directory information in two formats: one that contains everyone in a deep tree (for internal use), and one that contains everyone who has not requested that their information be kept private, at a single level. I initially tried just altering the address of the ldap server (and it is binding properly), but the base dn is something else.
It's a good idea, but the problem is that the first AD I was connecting to was dc=MyU,dc=edu. This new one is something else, apparently. We publish our directory information in two formats: one that contains everyone in a deep tree (for internal use), and one that contains everyone who has not requested that their information be kept private, at a single level. I initially tried just altering the address of the ldap server (and it is binding properly), but the base dn is something else.
-
tomprogers
- Forum Commoner
- Posts: 50
- Joined: Fri Mar 17, 2006 5:17 pm
- Location: Minnesota
- Contact: