• 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
  • Liutauras Vilda
  • Tim Cooke
  • Paul Clapham
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Frank Carver
  • Junilu Lacar
Saloon Keepers:
  • Stephan van Hulst
  • Tim Moores
  • Tim Holloway
  • Al Hobbs
  • Carey Brown
Bartenders:
  • Piet Souris
  • Frits Walraven
  • fred rosenberger

JNDI Obtaining Last uidNumber

 
Ranch Hand
Posts: 49
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am using HP's Netscape Directory Server 6.22 and HP's LDAP-UX Client Services 3.30 on HP-UX 11.11. I have imported netscape.ldap.* as well as javax.naming.* and javax.naming.directory.*. I used their scripts which migrated NIS into LDAP. Much of the fields in a /etc/passwd user line are now attributes in LDAP.

Like in NIS or using just the plain /etc/passwd file for authentication, adding a new user would just increment the unique user ID number or UID number. In LDAP, the UID number is designated as the attribute uidNumber. To get the greatest uidNumber, would I have to loop through the entire LDAP directory of the user IDs just to get the largest uidNumber plus one just so I can assign it with LDAPAttributeSet and add it with LDAPEntry? Is there a more efficient way with using the Java's JNDI to get the greatest uidNumber attribute of all the LDAP users?
 
please buy my thing and then I'll have more money:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic