Re: [PERL-LDAP-DEV] [Fwd] Perl LDAP / Accents

2003-06-16 Thread Chris Ridd
On 16/6/03 11:50 am, Ziya Suzen [EMAIL PROTECTED] wrote: I had the same problem before and have seen a few posts about this since. May be it's worth putting it in the FAQ. Good idea. I've moved the text to under the what is an attribute heading, but we can move it if it doesn't make sense.

Re: utf8

2003-06-19 Thread Chris Ridd
On 19/6/03 12:09 pm, Phillip E. Thomas [EMAIL PROTECTED] wrote: Figured out my own problem.. removing use utf8 from the script allows it to work properly. Did it cause the result of: latin1($name)-utf8 to be encoded in UTF-8 again (ie double UTF-8 encoding)? Cheers, Chris

Re: help me on a filter LDAP syntax

2003-07-02 Thread Chris Ridd
On 2/7/03 2:21 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: or try filter = pwdexpire=20030629*, B Bob Goolsby [EMAIL PROTECTED] Attributes using the GeneralizedTime syntax may not have a substring matching rule, so this is not likely to work. It is particularly hard to do a

Re: LDAP timeout parameter not functioning?

2003-07-04 Thread Chris Ridd
On 4/7/03 5:54 pm, JPrimant [EMAIL PROTECTED] wrote: I have written a Perl/Tk program for Windows/UNIX clients that queries a Microsoft Active Directory (AD) domain controller running LDAP. Typical ends with type query filters, i.e. sAMAccountName\=*userid, can take several minutes to

Re: Fw: Memory Leak

2003-07-17 Thread Chris Ridd
On Wednesday, July 16, 2003, at 12:53PM, Steven Carr [EMAIL PROTECTED] wrote: Doh, Im very sorry, I forgot to attach the script. Thanks in advance, Steve. -- #!/opt/perl5.8.0/bin/perl # ISH Authenticaiton script # External

Re: Schema.pm Confusion

2003-07-21 Thread Chris Ridd
On Monday, July 21, 2003, at 10:57PM, Sante Jonker [EMAIL PROTECTED] wrote: I am new to LDAP. While reading the documentation and the source I became confused concerning some functions in Schema.pm. Perhaps my lack of knowledge concerning LDAP or perl is causing my confusion. The functions

Re: How to handle character set in perl-ldap?

2003-08-14 Thread Chris Ridd
be in UTF-8, what shouldn't be?? Should 'cn=Chris Ridd' as a value of seeAlso be encoded in UTF-8 or sent raw? In this case it doesn't make a difference, but you can see how it might. I cannot see that it would be confusing. Everything that is a string is passed between user code and LDAP module

Re: What's wrong with Net::LDAP::Schema?

2003-08-16 Thread Chris Ridd
On 16/8/03 3:53 am, Darryl C Price [EMAIL PROTECTED] wrote: I'm trying to use the Net::LDAP::Schema with perl-ldap 0.29 can't figure out how the heck the must method works now. It use to turn a list of scalar variables. Now it returns hash references. What happened? How am I supposed

Re: Decoding a subjectAltName using Convert::ASN1?

2003-09-30 Thread Chris Ridd
On 30/9/03 8:01 pm, Paul Bearer [EMAIL PROTECTED] wrote: Friends, I am trying to decode a sample subjectAltName extension provided to me in base64. Here it is: MDUwMwYDVR0RBCwwKoIMdGVzdDEuaHAuY29tggx0ZXN0Mi5ocC5jb22CDHRlc3QzLmhwLmNvbQ== Using the x509decode sample script that came

Re: Encoding/Decoding a subjectAltName using Convert::ASN1?

2003-10-01 Thread Chris Ridd
On 1/10/03 6:58 pm, Graham Barr [EMAIL PROTECTED] wrote: On 1 Oct 2003, at 18:10, Chris Ridd wrote: extnValue [UNIVERSAL 4] EXPLICIT ANY DEFINED BY extnID But that causes a parse error as it is expecting the tag to have the constructor bit set :( Maybe I could add an extension so we can

Re: Using Net::LDAPS

2003-10-03 Thread Chris Ridd
On 3/10/03 6:19 pm, Dan Swanson [EMAIL PROTECTED] wrote: OK. I tried it with error checking and got the following message when it died: IO::Socket::SSL: at ./ldaps.pl line 7. So the error seems to be occurring in the IO::Socket::SSL when calling new LDAPS, but not much detail into why.

Re: Using Net::LDAPS

2003-10-03 Thread Chris Ridd
On 3/10/03 6:50 pm, Dan Swanson [EMAIL PROTECTED] wrote: I am on Unix (Solaris 2.8). When I add the -w and the use strict I get one additional error message. IO::Socket::SSL: at /usr/perl5/site_perl/5.005/Net/LDAPS.pm line 20 IO::Socket::SSL: at ./ldaps.pl line 6. Line 20 of LDAPS.pm is

Re: [Fwd: question about ldap module]

2003-10-06 Thread Chris Ridd
On 6/10/03 7:51 pm, Bruce Bahlmann [EMAIL PROTECTED] wrote: This is perl, v5.8.0 built for MSWin32-x86-multi-thread (with 1 registered patch, see perl -V for more detail) Copyright 1987-2002, Larry Wall Binary build 806 provided by ActiveState Corp. http://www.ActiveState.com Built

Re: Error Adding entry

2003-11-04 Thread Chris Ridd
On 4/11/03 5:50 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello everyone, I am using Net::LDAP to add some entries to my LDAP directory server(OpenLDAP 2.1.23). When I execute the script I get the following error message: The request violates the structure of the DIT. Could anyone

Re: Error in LDAP.html/LDAP.pod

2003-11-10 Thread Chris Ridd
On 10/11/03 5:04 pm, Graham Barr [EMAIL PROTECTED] wrote: Begin forwarded message: From: Bruno Grossmann [EMAIL PROTECTED] Date: November 10, 2003 16:41:58 GMT To: [EMAIL PROTECTED] Subject: Error in LDAP.html/LDAP.pod Message-Id: [EMAIL PROTECTED] Hello, I am happily and extensively

Re: range-upper/range-lower

2003-11-25 Thread Chris Ridd
On 25/11/03 10:56 am, Hirmke Michael [EMAIL PROTECTED] wrote: Hi, thx for your answer. [...] However that shouldn't affect the parsing. Have you got an example of the raw AD attribute value? What does the returned schema hash look like? It is I used Data::Dumper to inspect the

Re: range-upper/range-lower

2003-11-26 Thread Chris Ridd
On 26/11/03 12:15 pm, Hirmke Michael [EMAIL PROTECTED] wrote: Hi, [...] Everything looks OK, except for the missing stuff. Are you certain the server's actually returning the missing stuff? uhm, sorry, perhaps I asked the wrong question 8-( I'm quite sure, that the actual answer does

Re: binary AD attributes?

2003-11-29 Thread Chris Ridd
On 29/11/03 5:53 pm, Diffenderfer, Randy [EMAIL PROTECTED] wrote: Folks, This should be simple, but I can't find the answer in the FM's... I do a search, get a set of entries as a result. Now I want to dump them. When printing, how do I simply distinguish a binary attribute? There are a

Re: Maximum value count for multivalued attributes

2003-12-02 Thread Chris Ridd
On 1/12/03 11:53 pm, Fox Flanders [EMAIL PROTECTED] wrote: I'm trying to retrieve the list of members in an AD group using perl-ldap. It works fine with a small number of people in a group. But when doing a get_value() on an attribute with say 1000 values, like a large Active Directory group

Re: Maximum value count for multivalued attributes

2003-12-02 Thread Chris Ridd
On 2/12/03 5:57 pm, Johnson, Brian K [EMAIL PROTECTED] wrote: Active Directory, stangely, also imposes the 1000 limit on the number of entries returned in a multivalued attribute. So, if you have a group with 2000 members you will only get the first 1000 users back on the initial call. Below

Re: Net::LDAP sorting

2003-12-08 Thread Chris Ridd
On 8/12/03 5:04 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, Could anyone tell me if there is a way to perform a sorted of entries returned from a search in Net::LDAP? If yes, how would I do this? Yes. The Net::LDAP::Search class has a sorted() method that may do what you want.

Re: Saving entry in ldif file.

2003-12-10 Thread Chris Ridd
On 9/12/03 4:06 pm, Benoit Plessis [EMAIL PROTECTED] wrote: Hello, I'm using Net::LDAP for handling a LDAP connection in some perl script and i'm quite pleased by is way of working. but actually i wan't to do something but i don't know how: could Net::LDAP::LDIF::write_entry() write only

SASL PLAIN mechanism broken

2003-12-10 Thread Chris Ridd
The Authen::SASL::Perl::PLAIN mechanism (perl 5.8.0, Authen-SASL-2.06) seems to be sending the authorization ID and the authentication ID in the wrong order, which causes obvious bind problems. $sasl = Authen::SASL-new(mechanism = 'PLAIN', callback = {

Re: Net::LDAP data accessors

2003-12-10 Thread Chris Ridd
On 10/12/03 6:55 pm, Graham Barr [EMAIL PROTECTED] wrote: Begin forwarded message: From: D.Kreft [EMAIL PROTECTED] Date: 10 December 2003 18:44:25 GMT To: Graham Barr [EMAIL PROTECTED] Subject: Net::LDAP data accessors Message-Id: [EMAIL PROTECTED] Hey Graham, One tiny suggestion

Re: Net::LDAP data accessors

2003-12-10 Thread Chris Ridd
On 10/12/03 7:58 pm, D.Kreft [EMAIL PROTECTED] wrote: On Wed, 10 Dec 2003, Chris Ridd did scribble: $ldap-socket-peername returns the peer address and port. $ldap-socket's documented as well ;-) I just grepped the perldocs for Net::LDAP (v0.2701) and didn't see any mention of 'peername

Re: Net::LDAP data accessors

2003-12-10 Thread Chris Ridd
On 10/12/03 8:36 pm, D.Kreft [EMAIL PROTECTED] wrote: On Wed, 10 Dec 2003, Chris Ridd did scribble: On 10/12/03 7:58 pm, D.Kreft [EMAIL PROTECTED] wrote: On Wed, 10 Dec 2003, Chris Ridd did scribble: $ldap-socket-peername returns the peer address and port. $ldap-socket's documented

Re: LDAP_PARTIAL_RESULTS handling

2003-12-12 Thread Chris Ridd
On 12/12/03 10:56 pm, D.Kreft [EMAIL PROTECTED] wrote: Could someone provide for me an example of what $message-error() would return if the result of a query were LDAP_PARTIAL_RESULTS? I'd like to know precisely what to look for (i.e. regex) when searching for referral urls. The code that

Re: LDAP_PARTIAL_RESULTS handling

2003-12-13 Thread Chris Ridd
On 13/12/03 5:19 pm, Kurt D. Zeilenga [EMAIL PROTECTED] wrote: Note that few (if anyone) really implements LDAPv2 as specified in its IETF technical specification (RFC 1777, etc.). When version 2 is selected, you really get generally get something which I call LDAPv2+ (LDAPv2 with U-Mich

Re: unsupported extension

2003-12-16 Thread Chris Ridd
On 15/12/03 9:24 pm, D.Kreft [EMAIL PROTECTED] wrote: So I'm busily working away making optimizations to my code, but now when I try to start_tls(), I get the dreaded unsupported extended operation error. I googled for Net::LDAP 'unsupported extended operation' and saw a reply from Chris

FW: NET::LDAP:search

2003-12-17 Thread Chris Ridd
-Original Message- From: Chris Ridd [mailto:[EMAIL PROTECTED] Sent: 16. joulukuuta 2003 21:07 To: Niva Tapio; [EMAIL PROTECTED] Subject: Re: NET::LDAP:search On 16/12/03 7:06 am, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hello, following perl script, using Net::LDAP 0.30 , sometimes causes

Re: following referrals

2003-12-17 Thread Chris Ridd
On 17/12/03 12:20 am, David Syzdek [EMAIL PROTECTED] wrote: Chris Ridd wrote: Net::LDAP should not be caching credentials. Any caching should be down to the caller. By caller do you mean the the script or module that is actually calling Yes. a function such as $ldap-modify

Re: unstable openldap after using Net::Ldap perl module

2003-12-29 Thread Chris Ridd
On 29/12/03 3:09 pm, Jim Harle [EMAIL PROTECTED] wrote: Chris, Two things might be an issue. First (and less likely) check to see that you are binding as an account with sufficient priveleges to delete users. The more probable thing is that you are choking the server by sending too many

Re: unstable openldap after using Net::Ldap perl module

2003-12-29 Thread Chris Ridd
On 29/12/03 8:07 pm, Diffenderfer, Randy [EMAIL PROTECTED] wrote: You might also need to worry about referential integrity, although I have only seen this hose up secondary objects that referred to the now-deleted dn. Examples include the manager=, secretary=, or owner= attributes, for

Re: multivalued add?

2003-12-29 Thread Chris Ridd
On 29/12/03 8:29 pm, Kevin Skelton [EMAIL PROTECTED] wrote: my $result = $ldap-add ( $dn, attrs = [ @$whatToCreate ] ); Since I think you've defined $CreateArray as a reference to an array, you should be able to say: my $result = $ldap-add ( $dn, attrs = $CreateArray );

Re: Net::LDAP::Compare facsimileTelephoneNumber

2003-12-29 Thread Chris Ridd
On 29/12/03 6:51 pm, Marco van Beek [EMAIL PROTECTED] wrote: Hi, Merry pagan festival time to all! I am using $ldap-compare in a script to synchronise an LDAP database from a MySQL database (http://ssis.sourceforge.net/), and am getting a return error code of 18

Re: unsupported extension

2003-12-31 Thread Chris Ridd
On 31/12/03 9:45 pm, D.Kreft [EMAIL PROTECTED] wrote: On Wed, 31 Dec 2003, Chris Ridd did scribble: There's at least one way where these methods return a non-object. Mostly they call _error() to set an error code in a message object, but this isn't always true - if $ldap-socket fails

Re: Problem adding non-ascii characters to Active Directory

2004-01-09 Thread Chris Ridd
On 8/1/04 9:29 pm, Ricardo Encarnação Carraretto [EMAIL PROTECTED] wrote: Hey folks, I'm kinda new to Perl-LDAP and I'm having some problems to add attributes with non-ascii values into Active Directory. For example, setting and user geographic location attribut to: l = 'Vitória',

Re: a few patches for perl-ldap 0.31

2004-01-20 Thread Chris Ridd
On 18/1/04 8:33 pm, Peter Marschall [EMAIL PROTECTED] wrote: We've avoided adding proprietary attributes to the core Net::LDAP so far... Is this defined in some RFC or draft? Yup, it's RFC3674. Did you expect anything different form Kurt Zeilenga ;-) Kurt's normally pretty good about not

Re: converting dsml schema to ldapv3 ldif format?

2004-01-30 Thread Chris Ridd
On 30/1/04 9:59 am, Mike Jackson [EMAIL PROTECTED] wrote: Hi, Is Net::LDAP capable of doing the above task? If not, then can somebody point me to some tools (no java, please) that can do the task? Net::LDAP has a DSML reader class (which relies on some other perl XML classes), and an LDIF

Re: AD useraccountcontrol attribute

2004-02-03 Thread Chris Ridd
On 3/2/04 5:28 pm, Squibb Stuart [EMAIL PROTECTED] wrote: Dear all, I'm a little out of my depth here. Microsoft documentation claims that including useraccountcontrol:1.2.840.113556.1.4.803:=2 in an LDAP search filter will identify disable Active Directory accounts. This seems to

Re: TLS or SSL problems.

2004-03-31 Thread Chris Ridd
On 31/3/04 2:15 pm, Danny Carroll [EMAIL PROTECTED] wrote: On 31 Mar 2004, at 11:12, Danny Carroll wrote: I am at a loss trying to figure out why my perl script wont talk TLS or SSL. I have told openldap to force TLS with the security tls = 56 line in slapd.conf Here is the output form

Re: retrieve jpegPhoto

2004-04-01 Thread Chris Ridd
On 1/4/04 10:55 am, jehan.procaccia [EMAIL PROTECTED] wrote: I can assure you that it didn't worked without binmode(TMP) ! and now it works fine with it ! I run a Red Hat Linux release 9 (Shrike) and perl v5.8.0. ?? It wouldn't be a problem with something trying to utf8 encode the data

Re: Multi-homed host

2004-04-05 Thread Chris Ridd
On 5/4/04 6:01 pm, Graham Barr [EMAIL PROTECTED] wrote: No, thats not what multihomed does. multihomed has nothing todo with passing an array of hosts, that is always possible. multihomed is passed to IO::Socket::INET. The result will be that if the host has multiple IP addresses returned

Re: Multi-homed host

2004-04-05 Thread Chris Ridd
On 5/4/04 5:32 pm, Safford, Brian [EMAIL PROTECTED] wrote: Is that LocalAddr something that other folks might find useful enough to have it included in perl-ldap? It isn't a *desperately* useful feature for most people, but then again it should be easy enough to add the feature to help in

Re: more question about modifyTimestamp attribute

2004-04-06 Thread Chris Ridd
On 6/4/04 12:40 pm, Claude [EMAIL PROTECTED] wrote: I need to create a search filter containing comparaison to a modifyTimestamp value. Someting like: ((modifyTimestamp=20040325161257Z)(|(objectClass=XX)(objectClass=YY))) The data type syntax (Generalized Time) is close to what 'date' can

Re: parse does not return false when it should

2004-04-22 Thread Chris Ridd
On 22/4/04 4:34 pm, Peter Marschall [EMAIL PROTECTED] wrote: Hi, On Tuesday 20 April 2004 11:39, Claude wrote: I tried this code which, IMO, confirms that parse wrongly does not return undef in case of error. I think this is the correct diagnosis. Can you try the attached version of

Re: handling multiple jpegPhoto values

2004-05-13 Thread Chris Ridd
On 13/5/04 1:42 pm, Jama Poulsen [EMAIL PROTECTED] wrote: Hi, Is there a way to refer to a specific jpegPhoto value of an LDAP entry without giving all the base64 encoded data? It is a bit hard to do this, because there are no guarantees that if you retrieve the same attribute twice the

Re: Printing out operational attributes specific to LDAP server

2004-05-14 Thread Chris Ridd
On 14/5/04 4:04 am, Gerry Smyth [EMAIL PROTECTED] wrote: Qu: Do I need to increase access in slapd.conf at dn.base to return my output. - I will get an LDAP browser to help me here hopefully. You should probably ask on an list dedicated to your server. Your perl looks to be doing the right

Re: comparing updating an LDAP entry

2004-04-26 Thread Chris Ridd
On 26/4/04 12:08 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Hi, folks I'm writing a script that takes a bunch of user entries from LDAP[0] directory, massages them into a form suitable for LDAP[2] directory, and then saves the newly made entries to LDAP[1]. Obviously(*) I only want

Re: bulk deleting entries

2004-04-29 Thread Chris Ridd
On 29/4/04 2:29 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I'm playing with the callbacks, and decided to do a mass extinction on my directory, by doing a search and delete operation. So I try: my $res=$ldap-search(callback=\myCallback); sub myCallback { my $mesg = shift; my

Re: search returns code 0 instead of referal

2004-05-06 Thread Chris Ridd
On 5/5/04 10:49 pm, Mark Menke [EMAIL PROTECTED] wrote: I am searching an active directory ldap server, and I can see the response with a packet sniffer. It contains a referal to 3 servers. When I actually look at the $response-code, it is a 0. Am I missing something about how to detect a

Re: Potential bug in Net::LDAP (with binary data)

2004-06-06 Thread Chris Ridd
On 6/6/04 2:29 pm, Peter Marschall [EMAIL PROTECTED] wrote: On Thursday 03 June 2004 19:01, Douglas Gray Stephens wrote: Since you're sending junk to the servers, the server's *should* be rejecting your modify operations. That they're not is a defect in each of the servers, and you can't

Re: Net::LDAP incorrectly requires bind DN for SASL binds

2004-06-11 Thread Chris Ridd
On 11/6/04 6:44 am, Quanah Gibson-Mount [EMAIL PROTECTED] wrote: --On Friday, June 11, 2004 6:36 AM +0100 Chris Ridd [EMAIL PROTECTED] wrote: This isn't really a bug, as LDAP does require a DN to be passed in all forms of bind operation. RFC 2251: - name: The name

Re: Net::LDAP incorrectly requires bind DN for SASL binds

2004-06-11 Thread Chris Ridd
On 11/6/04 7:14 am, Kurt D. Zeilenga [EMAIL PROTECTED] wrote: The revised LDAP technical specification (a work in progress), in draft-ietf-ldapbis-authmeth-xx.txt, currently says: Clients sending a bind request with the sasl choice selected SHOULD NOT send a value in the name field.

Re: Net::LDAP incorrectly requires bind DN for SASL binds

2004-06-11 Thread Chris Ridd
On 11/6/04 7:46 am, Chris Ridd [EMAIL PROTECTED] wrote: On 11/6/04 6:44 am, Quanah Gibson-Mount [EMAIL PROTECTED] wrote: --On Friday, June 11, 2004 6:36 AM +0100 Chris Ridd [EMAIL PROTECTED] wrote: This isn't really a bug, as LDAP does require a DN to be passed in all forms of bind

Re: how to delete entry like this?

2004-06-22 Thread Chris Ridd
On 22/6/04 11:20 am, news.hinet.net [EMAIL PROTECTED] wrote: uid=,ou=people,dc=program,dc=com,dc=tw Since that isn't a valid DN, you may not be able to remove it over protocol. You may need to look at your server's documentation to find out how to remove it from the database. Cheers, Chris

Re: how to delete entry like this?

2004-06-22 Thread Chris Ridd
On 22/6/04 12:01 pm, news.hinet.net [EMAIL PROTECTED] wrote: hi !! do you see that? http://211.22.252.67/KMSprite/1.gif I really create an entry like that using net::ldap. Net::LDAP just passes the string you sent to the server. If your server thinks that uid=,ou=people... is a valid DN then

Re: changetype parsing bug in Net::LDAP::LDIF

2004-06-22 Thread Chris Ridd
On 22/6/04 12:24 pm, Mike Jackson [EMAIL PROTECTED] wrote: Hi, There is a bug in Net::LDAP::LDIF when parsing change records. Refer to RFC 2849, Pages 9 and 10: --- # Modify an entry's relative distinguished name dn: cn=Paul

Re: Anyone here. . .

2004-07-01 Thread Chris Ridd
On 30/6/04 6:32 pm, Alex Laughlin-Dendy [EMAIL PROTECTED] wrote: Could you point me to some info about test.cfg? Thanks. :-) There isn't any really. If you look at the top of t/common.pl you'll see how it is used, and I would guess that you just set $SERVER_EXE in there to your slapd

Re: perl-ldap with ADAM

2004-07-16 Thread Chris Ridd
On 16/7/04 5:03 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: Good morning, I have set up a MS ADAM instance named cn=examplename,st=wv,c=us. On install, the LostAndFound, Roles, and NTDS Quotas objects were created with dn's CN=LostAndFound,CN=examplename,ST=wv,C=us, CN=NTDS

Re: Authen::SASL documentation patches

2004-07-17 Thread Chris Ridd
On 17/7/04 8:07 pm, Peter Marschall [EMAIL PROTECTED] wrote: Hi Graham, hi list, the attached patch adds documetnation to the SASL machanisms in Authen::SASL. Thanks, I've committed these. It may not be perfect as I am no naticve english speaker but better than nothing. *Any*

Re: Net::LDAPS

2004-09-06 Thread Chris Ridd
On 6/9/04 9:24 pm, Vladimir Levijev [EMAIL PROTECTED] wrote: On Monday 16 August 2004 08:57, Chris Ridd wrote: I had working LDAP over SSL connection to an AD server from my GNU/Linux box for about a year when suddenly it stopped working. Perl scripts to manage users data (including

Re: LDAP.pm

2004-09-08 Thread Chris Ridd
On 8/9/04 2:06 am, Eddie C. Pagaduan Jr. [EMAIL PROTECTED] wrote: Hi Mr. Graham Barr,   I am currently using your LDAP.pm perl module. I would like to perform LDAP searches on scope='sub' and deref='always'. But it looks like these cannot be modified.   I ran an Ethereal trace and noticed

Re: From clear to crypted passwords

2004-09-08 Thread Chris Ridd
On 8/9/04 7:04 pm, Hutchins, Mike [EMAIL PROTECTED] wrote: Can anyone point me in the correct direction? When 18,000 users got imported, all the passwords were clear and not crypted. I need to change all of them to crypted. Any clues on a fast way to do this? Bummer. If you can persuade your

Re: AD Authentication

2004-10-13 Thread Chris Ridd
On 13/10/04 10:59 pm, Barrett, John [EMAIL PROTECTED] wrote: I've written a script (below) that runs on a Unix server and modifies AD attributes. It works fine if the user I'm binding as is given Domain Admin privileges. The AD admins don't want to give me that much power (and I really

Re: ldifde compliant changetype: modify in ldif ?

2004-10-04 Thread Chris Ridd
On 4/10/04 4:00 pm, Marc Chantreux [EMAIL PROTECTED] wrote: Chris Ridd wrote: The separator is not optional according to RFC 2849: change-modify= modify SEP *mod-spec mod-spec = (add: / delete: / replace:) FILL

Re: perl - Net::LDAP::LDIF - mozilla address book

2004-10-09 Thread Chris Ridd
On 8/10/04 8:38 pm, Douglas E. Hopley Jr. [EMAIL PROTECTED] wrote: let me know if I need to provide more details I think you need to show us what the description (or come to that the entire LDIF record) actually looks like, for the benefit of those of us who don't use Mozilla! Cheers, Chris

Re: How to determine if ObjectClass value exists in LDAP record?

2004-10-21 Thread Chris Ridd
On 21/10/04 6:19 pm, Jesse, Rich [EMAIL PROTECTED] wrote: Yes, I thought of that too, after some RTFMing. The kicker is that the LDAP record could exist, but without that particular ObjectClass. If I used the filter, I would have to report such a record as non existant, when actually it's

Re: How to determine if ObjectClass value exists in LDAP record?

2004-10-21 Thread Chris Ridd
On 21/10/04 7:11 pm, Jesse, Rich [EMAIL PROTECTED] wrote: Hey Chris, Hmmm...very interesting! I tried the first one and it works (I was worried about partial matches, but now I see the start/end word regexp), and yes, asref and the second would probably be better for my program. I'm sure

Re: Perl : LDAP : Authorize user for a service

2004-10-28 Thread Chris Ridd
On 28/10/04 10:41 am, Asu Vohra [EMAIL PROTECTED] wrote: Hi, I am new to LDAP. Can anyone tell me how can I authorize a user in LDAP for a particular service using Perl? Thanks, Asu You're looking at this the wrong way around ;-) LDAP servers do not know anything about other services

Re: decode error

2004-10-29 Thread Chris Ridd
On 29/10/04 1:22 pm, Roman Baumer [EMAIL PROTECTED] wrote: Hi, I got this decode error in a search using Net::LDAP: decode error 7b=30 at /usr/local/home/dsamgr/mdstools/lib/site_perl/5.6.1/Convert/ASN1/_decode.pm line 110, DATA line 283 How do I track down to problem to the source?

Re: Multivalue fields

2004-11-04 Thread Chris Ridd
On 4/11/04 9:58 am, Joachim Denil [EMAIL PROTECTED] wrote: Hi, I'm trying to read multi-valued fields ( my e-mail alias field ). So far I can only read the first value of the field. This is what I do: my @alias = $entry-get_value(alias, alloption =1); Try my (@alias) =

Re: inserting references into entries

2004-11-04 Thread Chris Ridd
On 4/11/04 11:08 am, Mike Jackson [EMAIL PROTECTED] wrote: Hi, Is there a technique to insert search references into entries, for the explicit purpose of prototyping some new application? I could imagine something like this: $ref = new

Re: Adding an attribute with multiple values.

2004-11-11 Thread Chris Ridd
On 11/11/04 8:15 pm, Relho de Couro [EMAIL PROTECTED] wrote: Hi, It maybe a simple question. But I'm having some troubles with it. I'm using Net::LDAP::Entry and I'm trying to add an attribute with multiple values. Unfortunately, until now it didn't work out. A simple example: attr:

Re: Attribute with value of any kind.

2004-11-11 Thread Chris Ridd
On 11/11/04 9:36 pm, Relho de Couro [EMAIL PROTECTED] wrote: Hi, Does anyone know how to define (in a LDAP schema) an attribute of any kind? I would like to create an attribute that supports any kind of symbol contained in a keyboard or even binary data. Example of values for the desired

Re: Attribute with value of any kind.

2004-11-12 Thread Chris Ridd
On 12/11/04 7:14 am, Mike Jackson [EMAIL PROTECTED] wrote: ext Relho de Couro ([EMAIL PROTECTED]) wrote: Hi, Does anyone know how to define (in a LDAP schema) an attribute of any kind? I would like to create an attribute that supports any kind of symbol contained in a keyboard or even

Re: Problem with Net::LDAP and $mesg-code

2004-11-16 Thread Chris Ridd
On 16/11/04 8:10 pm, [EMAIL PROTECTED] [EMAIL PROTECTED] wrote: I am using Net::LDAP (p5-perl-ldap-0.28) on a FreeBSD 4.9 server with Perl That's pretty old - can you try 0.3202? There's a change in 0.30 which looks as though it might be relevant, but it was over a year ago so I could be wrong:

Re: parsing filters?

2004-11-16 Thread Chris Ridd
On 16/11/04 8:48 pm, John Woodell [EMAIL PROTECTED] wrote: Is there already a function that will parse this filter? ldap:///ou=People,o=acme,c=us?uid?one?((mail=*)(c=CA)) I can write one, but I was just wondering URI::ldap should be able to split the whole thing up into bits, and surely

Re: atomic incriment...

2004-11-22 Thread Chris Ridd
On 22/11/04 11:52 pm, John Woodell [EMAIL PROTECTED] wrote: I'm trying to create a way of provisioning numbers. I want to do something likr the command-line code below. Any suggestions? - my $ldap = Net::LDAP-new(localhost) or die $@; assign_number(cn=John Doe); sub

Re: SVN perl-ldap: r441 - trunk/lib/Net/LDAP

2004-11-23 Thread Chris Ridd
On 21/11/04 6:02 pm, Peter Marschall [EMAIL PROTECTED] wrote: Hi Chris, On Sunday 21 November 2004 10:06, Chris Ridd wrote: Modified: trunk/lib/Net/LDAP/Entry.pod === --- trunk/lib/Net/LDAP/Entry.pod 2004-10-17 13:24:02 UTC

Re: debug function

2004-11-25 Thread Chris Ridd
On 25/11/04 10:51 am, Francisco Jose Bernabe Pellicer [EMAIL PROTECTED] wrote: Hello everybody, what's the function debug supposed to do? what does the second parameter (a number) stand for? It enables different levels of protocol debugging, which can be useful when trying to work out what

Re: debug function

2004-11-25 Thread Chris Ridd
On 25/11/04 11:38 am, Francisco Jose Bernabe Pellicer [EMAIL PROTECTED] wrote: And what does the '5' stand for? debug( \n\nFinished Updating res\n\n, 5); Cheers, Francisco. You're calling a debug *function* in your example, not Net::LDAP's debug method.. Net::LDAP's debug method

Re: ldap add dynamic list

2004-12-10 Thread Chris Ridd
On 10/12/04 4:17 am, Wai Oi [EMAIL PROTECTED] wrote: Hi, I am struggling with perl, would like to know how to constuct a dynamic list of array for the add function? $mesg = $ldap-add( $dn, attrs = [ name = 'Graham Barr',

Re: Hi! (troubles changing userPassword)

2005-01-05 Thread Chris Ridd
On 5/1/05 9:41 pm, NYARLATHOTEP El Caos Reptante [EMAIL PROTECTED] wrote: If i do the same using the Manager dn, the script works right ($dn=cn=Manager,dc=misitio,dc=cl) what about my slapd.conf file look: access to attr=userPassword by self write by anonymous auth

Re: Hi! (troubles changing userPassword)

2005-01-05 Thread Chris Ridd
On 6/1/05 6:49 am, Vladimir Levijev [EMAIL PROTECTED] wrote: On Wednesday 05 January 2005 23:41, NYARLATHOTEP El Caos Reptante wrote: Hello, what about my slapd.conf file look: access to attr=userPassword by self write by anonymous auth by * none access to * by

Re: LDAP search - How do you set size limit on returned values from search

2005-01-07 Thread Chris Ridd
On 8/1/05 7:46 am, abdul mulla [EMAIL PROTECTED] wrote: Greetings Folks, I am using perl LDAP package to construct a similar search that I am able to construct using ldapsearch utility that comes with most LDAP servers. I would like to set a size limit of returned values from the client

Re: trying to add a mailing list to the directory

2005-01-11 Thread Chris Ridd
On 11/1/05 2:07 pm, Christopher A Bongaarts [EMAIL PROTECTED] wrote: In the immortal words of Ronan McGlue: Hi all, problem as follows... (im not subscribed so could you reply directly to me... thanks) i create an LDAP:Entry object as follows $list{'entry'} = { 'objectClass' = ['top'

Re: trying to add a mailing list to the directory

2005-01-17 Thread Chris Ridd
On 17/1/05 12:31 pm, ronan [EMAIL PROTECTED] wrote: LDAP::NET LDAP::NETapi the directory is using NETapi can someone point me to a documet(s) where the differences betwween thsse two modules are hightlighted specifically in the writing of an entry to the directory... I have created

Re: ldap search filter

2005-01-19 Thread Chris Ridd
On 19/1/05 8:09 pm, sharib [EMAIL PROTECTED] wrote: Hi, I am having a weird problem with the ldap search filter. Here it is when using the filter ((Title=training*)(Owner=*e7001*)), i get 1 result out of the total of 2 entries that i should get. One entry that is being missed is

Re: write_version() routine in Net::LDAP::LDIF

2005-01-28 Thread Chris Ridd
On 28/1/05 6:02 pm, Peter Marschall [EMAIL PROTECTED] wrote: Hi, I'd like to add a write_version() routine to Net::LDAP::LDIF that writes the version to the file (provded it is legal to do so) If the routine is not called by the user, it should be called automatically when writing the

Re: Net::LDAP (DirSync control)

2005-03-02 Thread Chris Ridd
On 2/3/05 10:38 am, Alexey Kravchuk [EMAIL PROTECTED] wrote: Hi, Based on the Net::LDAP::Control::Paged, I created a module for DirSync control, allowing to synchronize application data with MS Active Directory via an incremental search: Good work :-)

Re: ldaps

2005-03-11 Thread Chris Ridd
On 11/3/05 1:09 pm, sujatha [EMAIL PROTECTED] wrote: when i run a simple program use Net::LDAPS; $url=test.com; $username=sona; $password=sona; $a=Net::LDAPS-new($url)||die cannot connect; $a-bind($usename,$password)||die cannot bind; the error shown is Can't locate loadable object

Re: bug while reading on an Active Directory ?

2005-03-11 Thread Chris Ridd
On 11/3/05 4:16 pm, Marc Chantreux [EMAIL PROTECTED] wrote: Net::LDAP=HASH(0x844bb28) received: 00 84 00 00 00 35 02 01 02 64 84 00 00 00 2C 04 .5...d,. 24 43 4E 3D 32 6C 73 65 67 75 79 2C 4F 55 3D 75 $CN=2lseguy,OU=u 6D 62 2C 44 43 3D 55 6E 69 76 2D 52 2C 44 43 3D mb,DC=Univ-R,DC=

Re: How do I retrieve operational attributes for an LDAP entry using Net::LDAP?

2005-03-12 Thread Chris Ridd
On 12/3/05 8:57 am, news.hinet.net [EMAIL PROTECTED] wrote: how do I retrieve the values for 'creatorsName','createTimestamp', 'modifiersName', 'modifyTimestamp' using Net::LDAP module? pleae help There are some examples of doing this in the Net::LDAP man page. Search

Re: bug while reading on an Active Directory ?

2005-03-14 Thread Chris Ridd
On 14/3/05 9:49 am, Marc Chantreux [EMAIL PROTECTED] wrote: Hi Chris and thanks for help again ! Chris Ridd wrote: The bytes we're logging are garbage, which is why the decode is failing. hm ? is there an unexpected disconnection ? I was thinking that the bytes we received were fine

Re: query timeout

2005-03-17 Thread Chris Ridd
On 17/3/05 11:13 pm, Chris Masters [EMAIL PROTECTED] wrote: Thanks Chris, that looks much simpler than an external timeout mechanism. Only if it fools your firewall ;-) The default timeout for SO_KEEPALIVE seems to be 2 hours. Any ideas how I can change this to 30 mins for example? This

Re: Documentation Bug

2005-04-05 Thread Chris Ridd
On 5/4/05 11:01 am, Erik Ableson [EMAIL PROTECTED] wrote: Greetings, Just came across a minor (but annoying) bug in the documentation. The following extract : CONSTRUCTOR encode = 'none' | 'canonical' | 'base64' Some values in LDIF cannot be written verbatim and

Re: Search case sensitivity

2005-05-17 Thread Chris Ridd
On 17/5/05 6:16, Elliot Foster [EMAIL PROTECTED] wrote: hmarshal wrote: Are the search functions for Net::LDAP and Net::LDAP::LDIF case sensitive? No. LDAP searches are not case sensitive. The Directory remembers case, and returns entries as they were put into the Directory, but searches

Re: [cpan #13172] Cannot bind with password with £ sign to AD

2005-06-10 Thread Chris Ridd
On 10/6/05 12:07, Graham Barr [EMAIL PROTECTED] wrote: I got this ticket via CPAN RT. Anyone with AD knowledge have any idea ? I'd wonder what octets were actually sent over the wire as the bind password. The character set and encoding used for simple passwords is considered a local matter, so

Re: Converting a ldapmodify command to Net::LDAP

2005-07-07 Thread Chris Ridd
On 7/7/05 3:22, Brian Gaber [EMAIL PROTECTED] wrote: 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

  1   2   3   >