From: César Omar Chiyeán Cámara (chcamara@tunku.uady.mx)
Date: Fri Feb 10 2006 - 13:39:08 EST
Hi Gurus..
This is the answer:
Graham Wood reply was:
getent passwd | cut -f 2 -d ':' | sort -n
Only i have to change field number, 3 instead 2.
So it become:
getent passwd | cut -f 3 -d ':' | sort -n
And thas was all.
Also Rodrick Brown reply this:
ldaplist -l passwd|perl -e 'while (<>) { chomp; next unless /uidNumber:
(\d+)/;
push @a, $1; }; @a = sort { $a <=> $b } @a; print $a[-1], "\n";'
In my system there was an error, file_client for ldap not found
But I think is a polite way to see the last UID.
And Finally, using myldap, I did a search through the ldap tree unit
searching with this criteria uid, uidNumber, but this doesn4t sort..
Thanks for your time.
Other problem solved!!!
-- (+--------------------------------+) | Omar Chiyean | | WebMaster de la UADY | | chcamara@tunku.uady.mx | | | | ( \ / ) | | ( \ \ \/ ) ( \/ / / ) | | \ \ /\ \ \/ /\ \ \/ /\ / / | | \ \/ \/ /\/ \/ /\/ \/ / | | \ /\ /\ /\ /\ /\ / | | \/ \/ \/ \/ \/ \/ | | | | http://www.uady.mx/index.html | | msn:omar.chiyean@gmail.com | | Tel +52 (999) 923 7428 ext 5 | | Fax +52 (999) 923 7428 ext 9 | | Msvil +52 (999) 174 3517 | | Calle 59 No. 490 x Av. Itzaes | | 97000, Mirida, Yucatan, Mixico | | DT - DGDA - UADY | (+--------------------------------+) _______________________________________________ sunmanagers mailing list sunmanagers@sunmanagers.org http://www.sunmanagers.org/mailman/listinfo/sunmanagers
This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:38:57 EDT