[Date Prev][Date Next]
[Chronological]
[Thread]
[Top]
RE: able to connect to LDAP server with perl, but not ldapsearch
tir, 20.01.2004 kl. 15.53 skrev Jeffrey Marans:
> Kurt D. Zeilenga pointed out it was likely the ldapsearch syntax I was
> using, and he was right.
> In the end, this command worked, with or without an /etc/ldap/ldap.conf.
> ldapsearch -x -H ldap://localhost:389 -D
> 'cn=admin,dc=ncr,dc=pwgsc,dc=gc,dc=ca' -W \
> -b 'dc=ncr,dc=pwgsc,dc=gc,dc=ca'
> "(&(objectclass=posixAccount)(gidNumber=100))"
If you'd have had a correctly configured ldap.conf, you could have *cut
out 90% of your command line parameters* . Irrespective of who told you
what.
--Tonni
--
mail: billy - at - billy.demon.nl
http://www.billy.demon.nl