Ldaplist
From Wikitech
(Difference between revisions)
m (doc for ldaplist command line utility moved from svn.wikimedia.org) |
m |
||
| Line 27: | Line 27: | ||
ldaplist -l passwd <username> | ldaplist -l passwd <username> | ||
| + | |||
| + | To find a group: | ||
| + | |||
| + | ldaplist -l group <some group name> | ||
Revision as of 10:17, 13 March 2012
Usage: ldaplist [options] [database] [object-name]
example: ldaplist -l passwd ldap_user
Options:
--help show this help message and exit
-s, --self Use your credentials
-D BINDAS, --bindas=BINDAS
Specify user to bind as
-m, --directorymanager
Use the Directory Manager's credentials
--scriptuser Use the scriptusers' credentials
-v, --verbose Show the database and search filter used for this
search
-l, --longlisting List all the attributes for each entry matching the
search criteria. By default, ldaplist lists only the
Distiguished Name of the entries found.
-h Show available databases to search
-d, --showdatabase Show the base dn being used for this database
-a SHOWATTRIBUTES, --showattributes=SHOWATTRIBUTES
Show the given attributes
-r, --recursive Recurse netgroups
--like Search for objects that equal or sound like [object-
name]
For instance, to check a user's account:
ldaplist -l passwd <username>
To find a group:
ldaplist -l group <some group name>