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

Re: ldapsearch output



* Tobias Rice
| 
| Is there a way to have ldapsearch return a single value? I'd like to
| give it a uid name and have it just return the uidNumber. If I enter
| this: ldapsearch -x "(uid=hsimpson)" uidNumber

Something like this?

$ ldapsearch -LLL -x '(uid=terjeros)' uidNumber
dn: uid=terjeros,ou=Users,dc=example,dc=com
uidNumber: 1708


 - Terje