From: Johnson, B. K <bri...@lm...> - 2002-11-15 15:20:56
|
Hi, Netmeeting is an odd one. You might try the code below....it has worked for me with ILS servers....no I am not sure if they are W2k ILS servers. Strangely, % is the general wildcard NOT * with the ILS servers that I've mucked around with. ($server)=@ARGV; use Net::LDAP; $ldap = new Net::LDAP("$server",port => 389,debug => 0) or die "Connect failed $server"; $ldap->bind() || die "Bind failed $server"; $filter="(\&(objectClass=RTPerson)(cn=%))"; $mesg = $ldap->search(base => "c=-",filter => $filter) or die "search died"; foreach $entry ($mesg->all_entries) { $entry->dump; } -----Original Message----- From: Eric Nichols [mailto:eri...@di...] Sent: Friday, November 15, 2002 5:46 AM To: Rai...@bo... Cc: per...@li... Subject: Re: Perl-Ldap and Netmeeting ILS-Server Without being able to see your code I would try using cn=* rather than %... Hint: It would help if you posted your code <grin> Rai...@bo... <mailto:Rai...@bo...> wrote: Sorry, I didn't get this - I need some further help. I'm trying to access a W2K ILS-Server (Nettmeeting) with LDAP (please read below) - and I don't get any response. Connect to the ils-service works fine (port 1002), bind and or search stalls. I also tried to do a bind (to ILS Service) with credentials (administrator account). It didn't work - bind never returns without timeout. Querying an exchange 5.5 server with perl-ldap (with authentification) is working fine. A little bit strange seems to be, that a LDAP browser can do an anonymous bind to the ILS server and retrieve all needed data without any problem. So is there any perl-ldap guru, who can tell me what I'm doing wrong? Normally, this should be a simple task to do (do get any information in the first step...). This would be the connect URL used on an NT-Server (with ASP): LDAP://ilsserver:1002/o=intranet/ou=dynamic;(&(objectClass=RTPerson) (cn=%));cn,givenName,surName,location;subtree" Any idea, why a ldap browser can do an anon query, but perl-ldap not? Tnx for any hint in advance Rainer -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 11 Nov 2002 Rai...@bo... <mailto:Rai...@bo...> wrote: I need some help for a simple task: Has anyone managed in accessing the Netmeeting ILS-Service of Windows2K Advanced Server from ldap-perl (from an unix system)? Even basic connects are failing with perl-ldap (using a LDAP-Browser accessing the LDAP-Structure of the ils server works fine). ... The Perl-Script (basic code): $ldap = Net::LDAP->new($ServerName, port => 1002); $msg = ldap->bind; AD doesn't allow for searching using an anonymous bind. Other than the rootDSE of course. @attrs = [ "giveName" ]; $ldap_result = $ldap->search ( base => "o=IntraNet,ou=Dynamic", filter => "&(objectClass=RTPerson)(cn=%)", attrs => @attrs ); cheers, jerry ------------------------------------------------------- This sf.net email is sponsored by: To learn the basics of securing your web site with SSL, click here to get a FREE TRIAL of a Thawte Server Certificate: http://www.gothawte.com/rd524.html <http://www.gothawte.com/rd524.html> |