Re: LDAP Search for all attributes of a DN

2011-03-05 Thread Dieter Kluenter
Am Fri, 4 Mar 2011 13:38:56 -0500 schrieb Brian Gaber : > I have tried these two Net::LDAP approaches, but $numEnt is zero in > both cases: > > $mesg = $ldap->search( base => $dn ); > $numEnt = $mesg->count; you should add a scope, IFAIK default is base, so scope onelevel or subtree would presen

Re: Password modify

2011-02-18 Thread Dieter Kluenter
Am Thu, 17 Feb 2011 11:10:46 -0600 schrieb Robert Threet : > I have a working Net::LDAP::Entry program for adding users so I > decided to gut it to create a userPassword changer. > > I keep getting "Error changing password: no objectClass attribute". > > I cannot find examples doing simple one-a

Re: What's wrong with this code?

2011-02-17 Thread Dieter Kluenter
Am Thu, 17 Feb 2011 16:04:20 -0500 schrieb Prentice Bisbal : > Okay guys, I need another pair of eyes to try find an error in my > code. Can any of you see anything wrong with this bit of code? > > $mesg = $entry->add('objectClass' => 'ntUser', > 'ntUserDomainId' => $ntUserDomainId,

Re: SyncRequest and SASL EXTERNAL II

2010-09-10 Thread Dieter Kluenter
Mathieu Parent writes: > On Wed, Sep 8, 2010 at 12:54 PM, Dieter Kluenter wrote: >> Mathieu Parent writes: >> >>> On Mon, Sep 6, 2010 at 10:48 PM, Dieter Kluenter >>> wrote: >>>> Hi, >>>> after updating Authen::SASL to versio

Re: SyncRequest and SASL EXTERNAL II

2010-09-10 Thread Dieter Kluenter
Mathieu Parent writes: > On Wed, Sep 8, 2010 at 12:54 PM, Dieter Kluenter wrote: >> Mathieu Parent writes: >> >>> On Mon, Sep 6, 2010 at 10:48 PM, Dieter Kluenter >>> wrote: >>>> Hi, >>>> after updating Authen::SASL to versio

Re: SyncRequest and SASL EXTERNAL II

2010-09-08 Thread Dieter Kluenter
Mathieu Parent writes: > On Mon, Sep 6, 2010 at 10:48 PM, Dieter Kluenter wrote: >> Hi, >> after updating Authen::SASL to version 2.15 and Net::LDAP to version >> 0.4001, running http://pastebin.de/9737 >>  I get following warnings >> >>   Use of u

SyncRequest and SASL EXTERNAL II

2010-09-06 Thread Dieter Kluenter
Hi, after updating Authen::SASL to version 2.15 and Net::LDAP to version 0.4001, running http://pastebin.de/9737 I get following warnings Use of uninitialized value in numeric gt (>) at /usr/lib/perl5/site_perl/5.10.0/Authen/SASL/Perl.pm line 179, and Useless use of hash element in void c

SyncRequest and SASL

2010-09-06 Thread Dieter Kluenter
Hi, based on http://www.nntp.perl.org/group/perl.ldap/2009/12/msg3223.html I extended this script to startTLS and SASL, but when trying a sasl bind I get following error: Communication Error: disconnecting at /perlscripts/syncRequestTest-M.P.pl line 137 Line 137 is: elsif($message->code) {

Re: Having trouble with TLS and server verification

2010-07-14 Thread Dieter Kluenter
gt; -Original Message----- > From: Dieter Kluenter [mailto:die...@dkluenter.de] > Sent: July-13-10 2:38 AM > To: perl-ldap@perl.org > Subject: Re: Having trouble with TLS and server verification > > Paul Liu writes: > >> Hi, >> >> I'm trying to use Ne

Re: Having trouble with TLS and server verification

2010-07-12 Thread Dieter Kluenter
Paul Liu writes: > Hi, > > I'm trying to use Net::LDAP to do LDAPS authentication against my Server 2008 > Active Directory and I'm having a hard time getting server verification to > work. > > So far, my (super simple) code works if I use verify => none in start_tls, > but as soon as I set it

Re: perl-ad-manager

2010-02-06 Thread Dieter Kluenter
natx...@asenjo.nl (J.I. Asenjo) writes: > On Fri, 05 Feb 2010, 10:18:54AM +0100�, Buchan Milne said: >> On Tuesday, 19 January 2010 17:35:47 Young, Darren wrote: > > Am I the only one getting multiple times this same message? No, me too. -Dieter -- Dieter Klünter | Systemberatung http://dkl

Re: LDIF to LDAP data sync

2010-01-06 Thread Dieter Kluenter
subs writes: > Hi, > I have an LDIF with some user data. Now i want to write a script > to verify if the user in LDIF is present in LDAP, if yes, sync some > attributes from LDIF to LDAP for that user. If the user is not > present, then create the user in LDAP with the user values in LDIF. >

Re: Authen::SASL and Net::LDAP::LDAPI

2009-11-13 Thread Dieter Kluenter
Kartik Subbarao writes: > On 11/10/2009 04:32 PM, Graham Barr wrote: >> >> On Nov 10, 2009, at 2:46 PM, Kartik Subbarao wrote: >> >>> What is the right way to use SASL EXTERNAL authentication with >>> Net::LDAP::LDAPI? I'm trying to do the equivalent of: [...] > I downloaded the next branch and

Re: Control::VLV error

2009-09-22 Thread Dieter Kluenter
Graham Barr writes: > On Sep 22, 2009, at 11:29 AM, Dieter Kluenter wrote: > >> Graham Barr writes: >> >>> On Sep 22, 2009, at 4:35 AM, Dieter Kluenter wrote: [...] >> OK, here it is: >> >> 0087 28: SEQUENCE { >> 0089 23:

Re: Control::VLV error

2009-09-22 Thread Dieter Kluenter
Graham Barr writes: > On Sep 22, 2009, at 4:35 AM, Dieter Kluenter wrote: > >> Hi, >> my ldap server is OpenLDAP-2.4.18 with sssvlv overlay configured. >> Running my perl script, which is in principle based on >> Net::LDAP::Control::VLV, I get following errors: &

Control::VLV error

2009-09-22 Thread Dieter Kluenter
Hi, my ldap server is OpenLDAP-2.4.18 with sssvlv overlay configured. Running my perl script, which is in principle based on Net::LDAP::Control::VLV, I get following errors: slapd: > get_ctrls: oid="2.16.840.1.113730.3.4.9" (critical) <= get_ctrls: n=2 rc=2 err="vlv control value is absent" send_l

Re: Net::LDAP::Intermediate::SyncInfo

2009-07-08 Thread Dieter Kluenter
Mathieu Parent writes: > Hi, > > > On Tue, Jul 7, 2009 at 6:05 PM, Dieter Kluenter wrote: >> Hi, [...] > The example included in the doc is very simple and doesn't cover all > cases. For a working example (refreshOnly) see "sub searchCallback()" > i

Net::LDAP::Intermediate::SyncInfo

2009-07-07 Thread Dieter Kluenter
Hi, I want to set up perl based replication system. For this I just copied perldoc Net::LDAP::Intermediate::SyncInfo into my file, modified host name and search base. This script throws following error: die...@rubin:> perl synctest.pl Can't call method "isa" on an undefined value at synctest.pl li

Re: Net::LDAP->new connection timed out

2009-07-07 Thread Dieter Kluenter
Hi, "noemie.petig...@bluewin.ch" writes: > Hi All, > > I'm a beginner in Unix and LDAP and I have to create a LDAP directory > to store information. I have a ldap server on a machine which works (I > can make queries, adding entries on the LDAP, ...) Now, I try to > connect another machine to th

Re: LDAPcon 2009

2009-07-01 Thread Dieter Kluenter
Hi Quanah; Quanah Gibson-Mount writes: > --On Wednesday, July 01, 2009 7:58 PM +0200 Dieter Kluenter > wrote: > >> Hi, >> is there anybody on this list who could prepare a paper on 'triggering >> events on RFC 4533 enabled directories', based on >>

LDAPcon 2009

2009-07-01 Thread Dieter Kluenter
Hi, is there anybody on this list who could prepare a paper on 'triggering events on RFC 4533 enabled directories', based on Net::LDAP::Intermediate::SyncInfo ? Or some similar topic? http://www.symas.com/ldapcon2009/call-for-papers.shtml http://www.symas.com/ldapcon2009/ -Dieter -- Dieter Klün

LDAPcon 2009 CfP

2009-06-28 Thread Dieter Kluenter
To those who have missed the announcement on l...@umich.edu, this years LDAPcon will likely be helt at Portland, Oregon. The Call for Papers is out http://www.symas.com/ldapcon2009/call-for-papers.shtml LDAPcon will coincide with LinuxCon http://events.linuxfoundation.org/events/linuxcon -Dieter

Re: ldap-bind

2009-06-11 Thread Dieter Kluenter
Bryan Irvine writes: > I got around those problems but I'm still having problems binding to the DB. > > The script basically logs in and does a search for itself to make sure > all is well. > > I cannot bind with the credentials given me by the LDAP server admin, > but the search shows that the u

Re: strange behaviour of SetPassword

2009-03-20 Thread Dieter Kluenter
Kurt Zeilenga writes: > On Mar 20, 2009, at 7:44 AM, Kurt Zeilenga wrote: > >> On Mar 20, 2009, at 7:36 AM, Dieter Kluenter wrote: >> >>> Hi, >>> i just test PasswordPolicy and want to modify passwords with >>> Net::LDAP::Extension::SetPassword, but w

strange behaviour of SetPassword

2009-03-20 Thread Dieter Kluenter
Hi, i just test PasswordPolicy and want to modify passwords with Net::LDAP::Extension::SetPassword, but when i run this script, $msg->gen_password() creats a random password and modifies newpassword=> with the radom generated value instead of the defined password. Is this a bug or is my script bogu

Re: What can be the maximum size of a LDAP Name?

2009-03-17 Thread Dieter Kluenter
Chris Ridd writes: > On 16 Mar 2009, at 14:05, raga wrote: > >> I've to store LDAP Name in a database Column. What should be the >> minimum size of that column . And is there any rationale for that?. >> The Format of LDAP Name is like that of e-mail id. > > The mail attribute is defined in RFC 2

start:tls with sasl external

2009-02-03 Thread Dieter Kluenter
use strict; | use Net::LDAP; | use Authen::SASL qw(Perl); | my ($ldap,$sasl,$msg,$result,$entry); | my $host = 'localhost'; | my $basedn = 'cn=Mailinglisten,cn=Dieter Kluenter,ou=Partner,o=avci,c=de'; | my $filter = "(cn=$ARGV[0])"; | my $scope = 'one'; |

Re: strong bind fails

2009-01-20 Thread Dieter Kluenter
Quanah Gibson-Mount writes: > --On Monday, January 19, 2009 12:41 PM +0100 Dieter Kluenter > wrote: > > >> I tried starttls and EXTERNAL mechanism >> >> ,[ start_tls ] >>| my $ldap = Net::LDAP->new("$host", >>|

Re: strong bind fails

2009-01-19 Thread Dieter Kluenter
Graham Barr writes: > On Jan 18, 2009, at 8:37 AM, Dieter Kluenter wrote: > > >> >> OK, this is my complete script, >> >> ,[ searchList.pl ] > >> >> | $msg = $ldap->bind(sasl => $sasl); >> | $msg->code && $msg->er

Re: strong bind fails

2009-01-18 Thread Dieter Kluenter
Graham Barr writes: > On Jan 17, 2009, at 10:01 AM, Dieter Kluenter wrote: >> Hi, >> I'am using >> perl-5.10.0 >> Net::LDAP version 0.39 >> Authen::SASL version 2.12 > > You do not say how far your script gets, but if bind fails that is not > go

strong bind fails

2009-01-17 Thread Dieter Kluenter
5 ACCEPT from IP=127.0.0.1:59521 (IP=0.0.0.0:389) | conn=0 op=0 BIND dn="" method=163 | do_bind: dn () SASL mech DIGEST-MD5 | ==> sasl_bind: dn="" mech=DIGEST-MD5 datalen=0 | SASL [conn=0] Debug: DIGEST-MD5 server step 1 | send_ldap_sasl: err=14 len=185 | send_ldap_response:

Re: Net::LDAP with ldapi?

2008-12-14 Thread Dieter Kluenter
Quanah Gibson-Mount writes: > I'm trying to make an ldapi:/// connection using Net::LDAP, and it > doesn't seem to work right. > > First, I verified that my ldapi connection works just fine using the > command line tools: > > [zim...@freelancer tmp]$ ldapsearch -x -H ldapi:/// > # extended LDIF >

Re: Bad filter in Active Directory: (!company=mycompany)

2008-10-24 Thread Dieter Kluenter
"A. Farber" <[EMAIL PROTECTED]> writes: > Hello, > > I've written a short script to prepend "ext-" to mail addresses > of all external colleagues in Microsoft Active Directory: > > filter => '(&(objectCategory=Person)(objectClass=User))', > > $mail = "ext-$mail" > if $entry->

Re: BUG? add() fails with resultCode=>32, errorMessage=>''

2008-10-17 Thread Dieter Kluenter
Jason Vas Dias <[EMAIL PROTECTED]> writes: > Please excuse me if I am misunderstanding something (I'm an LDAP newbie) - > but is this a Net::LDAP bug: > > Supplying an extra attribute to the "dn" of a Net::LDAP::add request, > as with: > >$ldap->add( > 'cn='.$myUserObject{cn}.',uid='.${myUse