directory-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cook, Lee (IS) (Contr)" <R.Lee.C...@ngc.com>
Subject RE: first small ldap java design
Date Thu, 11 Mar 2010 18:23:22 GMT
a simpler question.
if i authenticate by getting an InitialDirContext with a user as principal,
how can i use the context to pull this users attributes?
Context.getAttributes() expects a Name, confused...
Lee!

________________________________

From: Cook, Lee (IS) (Contr) [mailto:R.Lee.Cook@ngc.com]
Sent: Wed 3/10/2010 9:42 PM
To: users@directory.apache.org
Subject: first small ldap java design



Hi,

Im new to LDAP Java and need to provide code for the following usecase.

Wondering if anyone might review my initial logic notes writen in novice terms

perhaps offer some advice, pseudo or even real LDAP Java code examples.

taking first baby steps...

Thks, Lee!



1- connect to the customer's LDAP Directory service

  LDAPAPI: 

   get a new InitialDirContext() with customer's LDAP Directory service

   hostname:port, Bind principal and Bind principal password

   ? supply base DN ?

   

2- authenticate simple mode LDAP username/password credentials

  LDAPAPI:

   uid = username,  userpassword = password

   ? user password stored in UNIX crypt format ?

   Bind ?

   Search user uid, userpassword?

   

3- if authenticated, retrieve membership of 3 possible role groups,

   and the personname attribute value

  LDAPAPI:

  Search and return attributes ?

 

4- Close the LDAP service connection

  LDAPAPI:

  Unbind

 *  




Mime
  • Unnamed multipart/mixed (inline, None, 0 bytes)
View raw message