• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

active directory login problems

 
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,
I've installed an active directory (ADAM) on my windows XP system. Now i would like to use JNDI to connect to the directory. From the ADAM-ADSI-Editor i get a connection to the directory but if i try it with JNDI it doesn't work. I think it is a authentication problem.

What i don't understand is which user i have to take for the connection. Is it a user i've added to the active directory or is it the my windows user account.



I got an exception if i try to search for the results. Has anyone an idea what i made wrong???
 
Stefan Gerber
Ranch Hand
Posts: 33
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello
I hope somebody tell me what i make wrong



This works fine and i get the following out put:
{supportedcapabilities=supportedCapabilities: 1.2.840.113556.1.4.1851, 1.2.840.113556.1.4.1791, schemanamingcontext=schemaNamingContext: CN=Schema,CN=Configuration,CN={E8153BF9-1FF5-4E12-96CB-E159F1A659C4}, dsservicename=dsServiceName: CN=NTDS Settings,CN=CSEL12$Instanz1,CN=Servers,CN=Default-First-Site-Name,CN=Sites,CN=Configuration,CN={E8153BF9-1FF5-4E12-96CB-E159F1A659C4}, .......

but if i try this



i get the Error: [LDAP: error code 32 - 0000208D: NameErr: DSID-031521D2, problem 2001 (NO_OBJECT), data 0, best match of:

what's wrong???
[ March 10, 2008: Message edited by: Stefan Gerber ]
 
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The following base doesn't exist in the LDAP. Send me the tree hierarchy. I can help you out.

CN=Mary Baker,OU=ADAM users,O=Microsoft,C=COM
 
Swosti Dipan Pal
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Try giving base,o=Microsoft only.
 
Swosti Dipan Pal
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
The searchFilter and searchCtls are n't properly provided.

Try this in your first code in this post.

//specify the LDAP search filter
String searchFilter = "(&(objectClass=*))";

//Specify the Base for the search
String searchBase = "O=Microsoft,C=COM";

SearchControls searchCtls = new SearchControls();

//federationBoundary ,objectClass ,sn - These are the fields which are available in LDAP. You can provide your own fields.

String returnedAtts[] = { "federationBoundary", "objectClass","sn" };

searchCtls.setReturningAttributes(returnedAtts);

searchCtls.setSearchScope(SearchControls.SUBTREE_SCOPE);

NamingEnumeration answer = ctx.search(searchBase, searchFilter, searchCtls);
 
I guess everyone has an angle. Fine, what do you want? Just know that you cannot have this tiny ad:
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic