You can query ldap in Windows using the following tool : curl
* I had to hide private information.
ldap Windows test : ldap url needs to be 'enclosed'
###bash
bin>curl.exe --user cn=bindusername,cn=Users,dc=na,dc=xx,dc=com:password"ldap://xx.xx.com:389/DC=NA,DC=pg,DC=com?memberOf,sAMAccountName?sub?(sAMAccountName=accountname)"
DN: CN=accountname,CN=Users,DC=na,DC=xx,DC=com
memberOf: CN=xxxx-SETUP,CN=Users,DC=na,DC=xx,DC=com
sAMAccountName: accountname
또, 여기서 한가지 tip은 어떤 유저의 모든 ldap 정보를 보고 싶다면 필터에다가 '*'를 넣어서 보내면 된다는 것.
'IT > etc' 카테고리의 다른 글
Shell tips in Linux (0) | 2012.02.07 |
---|---|
How to stop time sync when using XP in Virtualbox (2) | 2011.12.06 |
soapUI를 가지고 Web Service 테스트 해보기 (0) | 2011.11.23 |
inum 가지고 find를 해서 파일제거 하기 (0) | 2011.11.23 |
vi 에디터에서 특정 캐릭터를 가지고 개행을 할 경우 (0) | 2011.11.23 |