Search Results

Search: Posts Made By: Scrutinizer
1,406
Posted By Scrutinizer
Hi, like this, I'd say: newuidnr=$( ldapsearch...
Hi, like this, I'd say:
newuidnr=$( ldapsearch -x -b 'dc=beasty,dc=netlab,dc=albury,dc=tafe' '(objectclass=posixAccount)' uidnumber | awk '/uidNumber/&&$2>t{t=$2}END{print t+1}')
you can leave out...
1,406
Posted By Scrutinizer
You can try this: newuidnr=$( ldapcommand bla...
You can try this:
newuidnr=$( ldapcommand bla bla ... uidnumber | awk '/uidNumber/&&$2>t{t=$2}END{print t+1}')Which will add 1 to the highest uid so far (uidnumber is LDAP speak ;) )
Showing results 1 to 2 of 2

 
All times are GMT -4. The time now is 11:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy