1. 查找用户
ldapsearch -x -LLL -b dc=cscw 'uid=Jane' cn mail
输出结果类似于:
dn: uid=Jane,ou=Users,dc=cscw
cn: Jane
mail: jenyzhang@163.com
开关的解释:
-
-x: “simple” binding; will not use the default SASL method
-
-LLL: disable printing extraneous information
-
uid=Jane a “filter” to find the john user