Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ldifde question

Status
Not open for further replies.

userldap

Technical User
Joined
Feb 1, 2010
Messages
2
Location
US
Hello,

I have an ldifde command as follows and i am trying to find an equivalent to it using 'ldapsearch'

ldifde -f c:/temp/output.txt -s server.company.com -a cn=abcd,cn=users,dc=company,dc=com "password" -r "(|(cn=user1)(cn=user2))" -l memberof

I need to run this command on a solaris box which has ldapsearch in '/usr/bin' but no ldifde. I have tried couple of options to get the same output using ldapsearch for the above but didnt quite work. I tried giving a file input instead of the string (as shown above) that did not work either.

Any ideas would be greatly helpful.

Thanks,
 
Hello,

I got it working.

ldapsearch -h host -p 3268 -D cn=abcd,cn=users,dc=company,dc=com -w "password" -f input.txt -b dc=company,dc=com -s subtree -v "(%s)" -l memberof > output.txt

Thanks,
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top