From: Lakshmi M. <lm...@fl...> - 2001-07-11 15:45:58
|
Knut Sander wrote: > Hi Lakshmi, > > Lakshmi Marellapudy wrote: > > I have openldap running on my server(192.104.61.84), under my home > > directory. > > I assumed that it is on port 389. > > when I tried to connect through perldap I got an error. > > assumptions may be wrong, it's much better to proof them =) > > Which host and port did you specify at startup? > > Your commandline shold look like: > > slapd -f /opt/openldap/etc/openldap/slapd.conf -h ldap://localhost:389/ > > This starts slapd on port 389 and binds only to localhost, so it is only > reachable via ldapsearch -h localhost -p 389 ... > > You can also use netstat to list all open sockets on your host and hav a > look into the slapd.args file (near slapd.pid). > > regards, > Knut Knut: I got "$ldap = new Net::LDAP" working. It is working with 1) slapd -f /opt/openldap/etc/openldap/slapd.conf -h ldap://0.0.0.0:3890/ $ldap = new Net::LDAP('0.0.0.0', port => 3890); 2) slapd -f /opt/openldap/etc/openldap/slapd.conf -h ldap://192.014.61.84:3890/ $ldap = new Net::LDAP('192.104.61.84', port => 3890); Somehow it didnot work with port 389. Thanks a lot, Lakshmi |