German special characters cause problems with Net::LDAP

2007-02-08 Thread Christian Felsing
Hello, I experienced a strange problem with following function and Net::LDAP --- cut here --- sub CreateLDAPentry { my ($uid,$name,$vorname,$st) = @_; my $salt="/%"; my $pwd=crypt($word, $salt); my $ldap = Net::LDAP->new ("localhost",async => 0) or die "$@"; my $mesg = $ldap->bind ( "$LDAP_ADM

Re: German special characters cause problems with Net::LDAP

2007-02-08 Thread Chris Ridd
On 8/2/07 8:53, "Christian Felsing" <[EMAIL PROTECTED]> wrote: > Hello, > > I experienced a strange problem with following function and Net::LDAP > > --- cut here --- > > sub CreateLDAPentry { > my ($uid,$name,$vorname,$st) = @_; > my $salt="/%"; > my $pwd=crypt($word, $salt); > > my $ldap = N

Only two issues Now.

2007-02-08 Thread Jeff Kalbfleisch
I think I have answered 1 and 3 on my own by reading newsgroups. But I would still like an easy way to convert the pwdLastSet attribute and know how to set the password in active directory. My program now looks like this. #!/usr/bin/perl -w use strict; my $perllib; BEGIN { $

Re: German special characters cause problems with Net::LDAP

2007-02-08 Thread Svend Sorensen
On 2/8/07, Chris Ridd wrote: You should definitely set version => 3 when you create the Net::LDAP object, as that will allow you to use UTF-8 later on. The default is to use LDAPv2, and you're at the mercy of your server vendor as to what character set they decided to implement instead of the st

Re: German special characters cause problems with Net::LDAP

2007-02-08 Thread Chris Ridd
On 8/2/07 7:46, "Svend Sorensen" <[EMAIL PROTECTED]> wrote: > On 2/8/07, Chris Ridd wrote: >> >> You should definitely set version => 3 when you create the Net::LDAP object, >> as that will allow you to use UTF-8 later on. The default is to use LDAPv2, >> and you're at the mercy of your server ve

Re: German special characters cause problems with Net::LDAP

2007-02-08 Thread Andrej Ricnik-Bay
Any hints ? Could be a data related issue? Since UTF seems to be the default the question would be whether what you enter is UTF or rather ASCII with a German character set ... best regards Christian Cheers, Andrej

Ldap filter problem

2007-02-08 Thread Victor Zhestkov
When I try to search using binary filter which contains \ac directly or this symbol, Filter->parse exclud this from filter at all. It's a shit, I can't use such filter (&(objectClass=inetOrgPerson)(networkAddress=1#\0a\00\01\ac)) it will be converted through this function, exactly Filter->_escap

LDAP_EXTENSION_PASSWORD_MODIFY (1.3.6.1.4.1.4203.1.11.1)

2007-02-08 Thread Jeff Kalbfleisch
$secureLDAP->root_dse->supported_extension(1.3.6.1.4.1.4203.1.11.1); $secureLDAP->root_dse->supported_extension("LDAP_EXTENSION_PASSWORD_MODI FY"); my $dse = $secureLDAP->root_dse; my @extn = $dse->get_value('supportedExtension'); print "\n[" . join("::",@extn) .

Re: Ldap filter problem

2007-02-08 Thread Graham Barr
On Feb 8, 2007, at 7:48 AM, Victor Zhestkov wrote: When I try to search using binary filter which contains \ac directly or this symbol, Filter->parse exclud this from filter at all. It's a shit, I can't use such filter (&(objectClass=inetOrgPerson) (networkAddress=1#\0a\00\01\ac)) it will be c

Re: LDAP_EXTENSION_PASSWORD_MODIFY (1.3.6.1.4.1.4203.1.11.1)

2007-02-08 Thread Graham Barr
On Feb 7, 2007, at 1:09 PM, Jeff Kalbfleisch wrote: $secureLDAP->root_dse->supported_extension (1.3.6.1.4.1.4203.1.11.1); perl -le 'print(1.3.6.1.4.1.4203.1.11.1)' Wide character in print at -e line 1. ၫ $secureLDAP->root_dse->supported_extension ("LDAP_EXTENSION_PASSWORD_MODIFY

Re: Only two issues Now.

2007-02-08 Thread Graham Barr
On Feb 7, 2007, at 12:09 PM, Jeff Kalbfleisch wrote: use strict; my $perllib; BEGIN { $ENV{PERL_LIB} =~ m/(.*)/; $perllib = $1 } # untaint PERL_LIB use lib $perllib; Ever thought of just using the PERL5LIB environment variable, or if you must use your own use lib ($ENV{PERL_LIB} =~ m/