Re: Read LDIF from Perl variable

2005-01-12 Thread Don C. Miller
Reinhard, you may want to take a look at the IO::Scalar module in IO-stringy. It allows you to perform I/O on strings. Don [EMAIL PROTECTED] wrote: I tried this also, does not work. In your opinion is it worthwhile to hack the Net::LDAP::LDIF module in order to have the possibility to convert

Re: Net::LDAP

2006-05-05 Thread Don C. Miller
Chris, just an FYI. Active Directory allows you to bind with standard windows authentication credentials including the "domain\username" and upn. Don Chris Ridd wrote: On 4/5/06 10:41, Scott Hegel <[EMAIL PROTECTED]> wrote: Hi, I am wondering if someone can help me out. I am trying to

RE: Have to use DEBUG 1 to make Net::LDAPS work??

2006-05-16 Thread Don C. Miller
Dennis, when you run it from the command line what is the output using both methods? It could be that part of the extra output provided by debug provides enough "header" information for the web server in question. By the way, what web server are you using and what version? Don -Original Mes

RE: Have to use DEBUG 1 to make Net::LDAPS work??

2006-05-16 Thread Don C. Miller
al Message- From: dennis [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 12:51 PM To: perl-ldap@perl.org Cc: Don C. Miller Subject: Re: Have to use DEBUG 1 to make Net::LDAPS work?? On Tuesday 16 May 2006 14:13, Don C. Miller wrote: > Dennis, when you run it from the command line what is t

RE: Have to use DEBUG 1 to make Net::LDAPS work??

2006-05-16 Thread Don C. Miller
dennis [mailto:[EMAIL PROTECTED] Sent: Tuesday, May 16, 2006 3:19 PM To: perl-ldap@perl.org Subject: Re: Have to use DEBUG 1 to make Net::LDAPS work?? On Tuesday 16 May 2006 16:12, Don C. Miller wrote: > The output should not just be the html page. Hi Don, I ran reset.cgi from cmd line in bo

RE: GSSAPI programming help

2006-05-18 Thread Don C. Miller
Achim, or anyone, have you been able to get GSSAPI to work using activestate perl on a windows system? What requirements are there? Thanks, Don -Original Message- From: Achim Grolms [mailto:[EMAIL PROTECTED] Sent: Thursday, May 18, 2006 11:52 AM To: Dennis Putnam; Graham Barr Cc: perl-l

Re: Connecting to Active Directory

2006-05-29 Thread Don C. Miller
Ronald, it is not necessary to bind with the complete DN to AD. You can use the domain\username structure or the UPN. Don Ronald wrote: Hi everyone I seem to recall reading somewhere it is not necessary to use a complete DN when binding to AD - does anyone know if this is the case (Yes - I

RE: Net::LDAP search - active directory not returning member list for large group

2006-12-11 Thread Don C. Miller
Megan, I hope everything is going well for you. The trick for getting this to work is to request the attribute 'member;Range=0-*' and then get_value('member;Range=0-*'). This should work on a group any size although I haven't tested on enormous groups. The 'Range' is case sensitive when requesti

RE: Net::LDAP search - active directory not returning member list for large group

2006-12-12 Thread Don C. Miller
0)->get_value('member;Range=0-*'); print $#members; $ad_ldap->unbind; -Original Message- From: Megan Kielman [mailto:[EMAIL PROTECTED] Sent: Monday, December 11, 2006 9:58 PM To: Don C. Miller Cc: Perl-LDAP Mailing List Subject: Re: Net::LDAP search - active directory n

RE: Net::LDAP search - active directory not returning member list for large group

2006-12-13 Thread Don C. Miller
Megan, a search will only return one range. You need to do a separate search for each loop of your code requesting each different range until you hit *. Don -Original Message- From: Megan Kielman [mailto:[EMAIL PROTECTED] Sent: Tuesday, December 12, 2006 3:01 PM To: Don C. Miller Cc

RE: Net::LDAP search - active directory not returning member list for large group

2006-12-13 Thread Don C. Miller
uest a range that exceeds the number of users, and the wild card apparently doesn't work for me, is the best way to handle it to continue to request a smaller range until I hit the exact number of users? If that is the case, it seems like I would be storming the DC with requests. On 12/13

RE: openldap and LDAP_CONTROL_PAGED

2007-03-19 Thread Don C. Miller
Vincent, I am not sure if anyone has responded to you yet but this *is* expected behavior. Even though you are paging the search you may still be hitting a limit on the search results. The search results should still contain the additional ~100 entries returned before you hit the limit. Don

Re: Transactional Net::LDAP?

2007-12-04 Thread Don C. Miller
Oliver, is this only a single ldap server or does it replicate to additional systems and is there ever the possibility two scripts could be using more than one of the systems at once? If so you would need a server side solution as well as possibly something with your script. A simple hokey solu

RE: Ldap search does not return expected result

2007-12-06 Thread Don C. Miller
Brian, depending on your ldapsearch tool you will want to take a look at the default search filter. This usually is objectclass=*. My openldap ldapsearch 2.3.36 defaults to this and puts the search filter used at the top of the ldif output. Don -Original Message- From: Brian G [mailto:[

RE: Problem with big entries

2007-12-17 Thread Don C. Miller
Didi, by default the search will return all attributes '*'. Depending on the ldap server you can increase the efficiency by returning only the attributes required. $ldap->search( filter=>"(&(objectClass=posixAccount)(uid=*))", base=>"ou=People,dc=example,dc=edu", attrs => [ 'userPassword',

RE: stupid problem with Net::LDAP

2007-12-20 Thread Don C. Miller
J.I. the parent while loop/for loop is not the reason the second version works and the first does not. The solution is in the line: print "$_\n" for $entry->get_value( "$_[1]" ); # this will work in either loop get_value returns an array in a list context or the first attribute in a scalar contex

RE: Line ending problem while search Active Directory

2008-01-07 Thread Don C. Miller
Robin, take a look at the get_value documentation about what is returned in a list context vs. a scalar context. Without seeing the code I assume you are returning this in scalar. Try: print "$attribute: ",join("\n$attribute: ",$object->get_value($attribute)),"\n"; Don -Original Message---

RE: Can't locate object method "disconnect" via package "Net::LDAP"

2008-01-09 Thread Don C. Miller
Praveen, use these methods to destroy the object. undef($ldap); $ldap = undef; -Original Message- From: Tyagi, Praveen (GE, Corporate, consultant) [mailto:[EMAIL PROTECTED] Sent: Wednesday, January 09, 2008 12:12 PM To: Chris Ridd; Sweeny, Jonny Cc: perl-ldap@perl.org Subject: RE: Can't