Tuesday, March 31, 2009

search ldap use command line

a lots of argument will post to ldap* command line

example:

output = os.popen("""ldapsearch -z 0 -l 0 -x -LLL -D "cn=kssldapLinker,ou=employees,ou=kss,ou=ZH,dc=kingsoft,dc=net" -w kss -b "ou=kss,ou=ZH,dc=kingsoft,dc=net" -h sso.rdev.kingsoft.net""").read()



question : -z and -l options not affect!

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.