OpenLDAP Prerequesite in Apache 2.4 to use LDAPRetries Directive

2014-10-09 Thread Brian Gaber
I have upgraded to Apache 2.4.10 and have added this directive to httpd.conf LDAPRetries 3 However the browser keeps prompting for username and password. I have OpenLDAP 2.4.21 installed. Thanks. Brian

RE: how to install or how to find NET::LDAP in unix server

2014-04-10 Thread Brian Gaber
At command prompt run: perl -MCPAN -e shell Then at the cpan> prompt run install Net::LDAP If you have never used cpan then there will be an initial setup routine that runs. From: devendar.reddy.ko...@accenture.com [mailto:devendar.reddy.ko...@accenture.com] Sent: Tuesday, April 08, 2014 6:2

RE: Modify only one attribute that has multiple values of the same name

2013-04-25 Thread Brian Gaber
Francis, I have read it on CPAN. I guess I missed that part. Thanks. Brian -Original Message- From: Francis Swasey [mailto:frank.swa...@uvm.edu] Sent: Thursday, April 25, 2013 1:09 PM To: Brian Gaber Cc: perl-ldap@perl.org Subject: Re: Modify only one attribute that has multiple

RE: Modify only one attribute that has multiple values of the same name

2013-04-25 Thread Brian Gaber
Or should the syntax be: $del_mesg = $ldap->modify( $dn, delete => { SFTrule => [ "$value" # Remove only this SFTrule value ], } ); This produces a LDAP Error Code: 16 - modify/delete: SFTrule: no such value -Original Message

RE: Modify only one attribute that has multiple values of the same name

2013-04-25 Thread Brian Gaber
r: LDAP Error Code: 21 - member: value #0 invalid per syntax Thanks. -Original Message- From: Francis Swasey [mailto:frank.swa...@uvm.edu] Sent: Thursday, April 25, 2013 12:04 PM To: Brian Gaber Cc: perl-ldap@perl.org Subject: Re: Modify only one attribute that has multiple values of th

Modify only one attribute that has multiple values of the same name

2013-04-25 Thread Brian Gaber
I have a LDAP object that contains an attribute SFTrule that can have multiple values. How do I change just one of the SFTrule attribute values? Thanks. Brian Gaber

Search for member of a groupOfNames group

2013-01-09 Thread Brian Gaber
I have OpenLDAP ldap with many groupOfNames groups. I want to determine if a user is a member of a specific group. I would like return a True or False whether user is a member of group or not. Thanks. Brian

Net::LDAP search of a DN

2011-05-18 Thread Brian Gaber
This dn search of dn=cn=name,o=org works from a command line and returns all the attributes of the dn: ldapsearch -h host -x -b "cn=name,o=org" However, this Net::LDAP does not return anything: $mesg = $ldap->search(base=>"cn=name,o=org"); I have also tried: $mesg = $ldap->search(

RE: LDAP Search for all attributes of a DN

2011-03-08 Thread Brian Gaber
Thanks for your help. The dn begins with the form cn=lastname, firstname, ou=... I had the dn in double quotes. When I put the dn in single quotes and escaped the comma after the lastname then the search worked.

RE: LDAP Search for all attributes of a DN

2011-03-08 Thread Brian Gaber
> Try using your second attempt but add a filter of "(objectClass=*)". I tried this and still do not get expected return $mesg = $ldap->search( base => $dn, scope => 'base', filter => '(objectClass=*)', ); Both of these command line

LDAP Search for all attributes of a DN

2011-03-04 Thread 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; $mesg = $ldap->search ( base => $dn, scope => 'base',); $numEnt = $mesg->count; A command line ldapsearch like so works fine: ldapsearch -h my_ldap_serve

How To Delete A Branch

2008-02-01 Thread Brian Gaber
This is probably a trivial question. How does one delete an entire branch? Thanks. Brian

RE: Ldap search does not return expected result

2007-12-06 Thread Brian Gaber
Don, Thanks, adding objectclass=* as a filter to my Net::LDAP search caused it to return results. Brian -Original Message- From: Don C. Miller [mailto:[EMAIL PROTECTED] Sent: Thursday, December 06, 2007 12:49 PM To: Brian Gaber; perl-ldap@perl.org Subject: RE: Ldap search does

RE: Ldap search does not return expected result

2007-12-06 Thread Brian Gaber
ay, December 06, 2007 12:37 PM To: Brian Gaber Cc: perl-ldap@perl.org Subject: Re: Ldap search does not return expected result On 6 Dec 2007, at 16:43, Brian G wrote: > I run this command and I get the expected result: > > ldapsearch -h 10.19.15.50 -x -b > ou=addresslist,ou=test,ou=

FW: Converting a ldapmodify command to Net::LDAP

2005-07-07 Thread Brian Gaber
Sorry, I should have provided more detail for my original post. The code below is a snippet from a cgi-bin script that allows an LDAP administrator to add a new ou via a webpage. The webpage just allows the admin to specify the new fully qualified ou, e.g. ou=test,ou=ncr,o=pwgsc. From that data

Converting a ldapmodify command to Net::LDAP

2005-07-07 Thread Brian Gaber
How would the following code be coverted to use Perl-LDAP? my $ldapmodify = "ldapmodify -h $ldap_master -x -c"; my $context = "ou=test,ou=ncr,o=pwgsc"; my $new_ou = "test"; open (LDAP, "|".$ldapmodify); print LDAP "dn: $context\n"; print LDAP "changetype: add\n"; print LDAP "objectclass: o