[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: compare uidNumber in LDAP



Hi,

(Anyone can follow up or correct me here...)

Derek Simkowiak wrote:
My LDAP server's objects contain attribute uidNumber and i want to find
out which is the maximum uidNumber.


This is accomplished with the integerOrderingMatch rule, which is supported by 2.1.x, and perhaps the very latest 2.0.x (I'm not sure on 2.0.x). Check servers/slapd/schema_init.c.


	Surely this is a common problem.  I imagine that the people who
came up with the posixAccount schema thought of a solution to this, or at
least, a "best practice".

What does everyone else do?

If you have support for the integerOrderingMatch rule, you could modify the uidNumber attribute in nis.schema to include the integerOrderingMatch rule. Theoretically that should do the trick, although I have yet to test this.


Regards,
Elliot