LDAP Search command option to sort the entries

5 pts.
Tags:
LDAP
Lightweight Directory Access Protocol
Sort LDAP search result
Below is the information getting stored in LDAP: ----------------------- dn: cn=999,dc=toshiba-addressbook,dc=com objectClass: LocalAddressBookEntry cn: 999 id: 999 givenName: abc sn: xyz fullName: abc xyz mail: t@toshiba-tesi.com facsimileTelephoneNumber: 081235 attenuation: 14 corp: jhhg dept: jhh ecm: true fax2: 456789 keyword: reew lineselect: LINE1 pwd: 4456 qutytx: false sep: 4566 sid: 9566 sub: 123 txtype: DIRECTTX ---------------------- i am using the below command to search the LDAP & sorth the results at server ./ldapsearch -h localhost -D "cn=Manager,dc=toshiba-addressbook,dc=com" -b "dc=toshiba-addressbook,dc=com" -S cn -S id -w secret -x 'objectclass=LocalAddressBookEntry' I want the entries to be sorted on cn or id attributes but the results are not getting sorted. So please let me know what other options need to be added. Thanks in advance.

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question:  

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following