I would like to know how to use ldapsearch
filter for sort mail by gid
number. I tried several command and I don't get what I expected. I got all the entry without sorting or nothing.
Ldap – how to use ldapsearch for sort attributes filter
ldap
Related Topic
- Ldapsearch returning “success” but no data for groups
- Ldap – view all possible attributes of an objectClass for LDAP
- Ldap – the maximum value for a gid in OpenLDAP
- Linux – How to filter ldap user logins on linux
- Linux – How to use ldapsearch with SSL on different port (-p does not work)
- LDAP OpenLDAP – How to Filter One Attribute in ldapsearch Starting with Another’s Name
Best Answer
Use
-S
parameter (in your case,-S gid
) in ldapsearch command. From the ldapsearch man page: