How can i get my user's info from win2000 active dir server using jndi ?
3 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Mohammed_Amin
Posted On:   Wednesday, August 22, 2001 09:06 AM

Dear All,

I've a problem with JNDI and still can't solve it :

with windows2000 Active Directory Server i created a new user called
"Mohammed" within a domain called "vas.com"
and i want to use
jndi & ldap to retreive any information about this new user but i failed.
I
need any help that guide me to my target

Re: How can i get my user's info from win2000 active dir server using jndi ?

Posted By:   Liam_Schneider  
Posted On:   Saturday, September 29, 2001 09:39 PM

Try formatting your DN in this fashion: "cn=Mohammed,cn=users,dc=vas,dc=com"
Every LDAP query I have done against AD is similar to the above and I am also assuming that your user account exists in the users container under the root of your windows 2000 domain.

Re: How can i get my user's info from win2000 active dir server using jndi ?

Posted By:   Kian_Parsee  
Posted On:   Wednesday, September 19, 2001 07:05 AM

Actually, what you have to do is use the samAccountName in ADSI. That's the field that contains the user name.

Re: How can i get my user's info from win2000 active dir server using jndi ?

Posted By:   Anonymous  
Posted On:   Wednesday, August 22, 2001 05:16 PM

AD is different from other LDAP providers in that you must use the correct attributes. It is more likely that your DN is incorrect. Try this:-

cn=Mohammed

cn=user // yes! cn again!

DC=vas.com // TRY to play around with this or ask your administrator

Good luck.
About | Sitemap | Contact