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

2003-08-14 Thread Dan Oscarsson
Peter Marschall wrote: >But IIRC this thread started with your complaint that perl-ldap does no >automatic conversion (controlled by parameters to Net::LDAP->new) >of string attributes from the local character set to UTF-8. >If I got that right, that means that you do not convert from your "local

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

2003-08-14 Thread Kurt D. Zeilenga
At 11:11 PM 8/11/2003, Dan Oscarsson wrote: >Kurt D. Zeilenga wrote: > >>At 04:27 AM 8/11/2003, Dan Oscarsson wrote: >>>All attributes in LDAPv3 uses UTF-8 encoding. >> >>I like to point out that this statement is not true. >>Encoding of attribute values depends on its syntax, >>sometimes dependen

Is there a direct way to return attributes from an entry w/o search?

2003-08-14 Thread markinpa
I know how to Access Individual attributes from a Returned Query http://www.sbfsbo.com/mike/NetldapTutorial/ I understand this does a ldap search, In my case, I know the DN of the entry I know the DN of the entry I want to return the attributes of, can someone tell me how to do this without perfo

Net::LDAP Bad hostname

2003-08-14 Thread CZachary
Hello all, I have written a script to add new entries in the LDAP directory service, but when I setup an array of hosts I get the following error when executing the script: "IO::Socket::INET: Bad hostname 'myhost1.ldap.com myhost2.ldap.com' at form_processor.cgi line 69" Could anyone explain what

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

2003-08-14 Thread Kurt D. Zeilenga
At 01:01 PM 8/13/2003, Graham Barr wrote: >On Wed, 2003-08-13 at 20:50, Kurt D. Zeilenga wrote: > >> I don't think the LDAP API should do any trancoding, the API should >> be a simple conduit between the application and the wire. Any >> transcoding desires should be done by the application (by dir

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

2003-08-14 Thread Graham Barr
On Wed, 2003-08-13 at 20:50, Kurt D. Zeilenga wrote: > I don't think the LDAP API should do any trancoding, the API should > be a simple conduit between the application and the wire. Any > transcoding desires should be done by the application (by directly > calling APIs specifically designed to d

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

2003-08-14 Thread Dan Oscarsson
Kurt D. Zeilenga wrote: >At 04:27 AM 8/11/2003, Dan Oscarsson wrote: >>All attributes in LDAPv3 uses UTF-8 encoding. > >I like to point out that this statement is not true. >Encoding of attribute values depends on its syntax, >sometimes dependent on transfer options. Some textual >string are not

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

2003-08-14 Thread Dan Oscarsson
Chris wrote: >>> Minor detail: Why is not deleteoldrdn=1 default in moddn? >>> I have never in any code I have using LDAP allowed old rdn to remain. >>> I would expect most people to want the old rnd to be deleted >>> automatically. > >There's no default specified in the ASN.1. It is probably dan

Question related to onerror in LDAP->new

2003-08-14 Thread Peter Sørensen
Hi, I am trying to get any error messages from add, delete and modify to a specific log file. I'm having problem with the correct syntax. I use perldap2701. I try following: $ldap = Net::LDAP>new('$myserver:$myport', onerror => $mysub) or die "$@"; where $mysub is a reference to a subrou

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

2003-08-14 Thread Graham Barr
From: Dan Oscarsson <[EMAIL PROTECTED]> Date: Wed Aug 6, 2003 12:34:54 Europe/London To: [EMAIL PROTECTED] Subject: How to handle character set in perl-ldap? Reply-To: Dan Oscarsson <[EMAIL PROTECTED]> Hi I have been using my own LDAP module in perl for many years. Now I am looking if I could use

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

2003-08-14 Thread Dan Oscarsson
> >I fully concur with Chris' opinion about APIs: >They have to be transparent. >Character set conversion should happen at the input side of the application, >not at the interface between application and API. >The API cannot guess what the application programmer wants. No, but the programmer can

Documentation Suggestion for Net::LDAP::LDIF

2003-08-14 Thread Jeremy Smith
I was using the Net::LDAP::LDIF to produce some LDIF's (obviously), and I was having trouble getting it to produce LDIF files in the modify format. After peeking around the source code, I worked my way around it via: $ldif = Net::LDAP::LDIF->new("file.ldif", "w"); $ldif->{change} = 1; # force

Re: Is there a direct way to return attributes from an entry w/o search?

2003-08-14 Thread Chris Ridd
On 6/8/03 4:55 pm, markinpa <[EMAIL PROTECTED]> wrote: > > I know how to Access Individual attributes from a Returned Query > http://www.sbfsbo.com/mike/NetldapTutorial/ I understand this does a ldap > search, > > In my case, I know the DN of the entry I know the DN of the entry I want to > retu

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

2003-08-14 Thread Peter Marschall
Hi, On Monday 11 August 2003 13:27, Dan Oscarsson wrote: > >At a first glance the second case seems easier for the application > >programmer, but it is really broken: > >Consider the following cases: > >1) A German and a Czech shall be added to the directory > >during the same connection. > >

OT: PHP Net_LDAP

2003-08-14 Thread Tarjei Huse
Hi, I just thought I'd mention that I've now uploaded a package into PEAR thats named Net_LDAP. It's a basic Net::LDAP clone so I thought I'd mention it here. Of course right now it only implements basic searching and modifying entries - not LDIFs or schemas or any other fancy features. Also I wou

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

2003-08-14 Thread Chris Ridd
On 7/8/03 9:28 am, Dan Oscarsson <[EMAIL PROTECTED]> wrote: > Chris wrote: >> This is a bad idea IMHO. >> >> Firstly, not everyone uses ISO 8859-1 as their local character set, so you'd >> have to make this switchable. > > In the general case it should be between UTF-8 and character set of local

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

2003-08-14 Thread Kurt D. Zeilenga
At 04:27 AM 8/11/2003, Dan Oscarsson wrote: >All attributes in LDAPv3 uses UTF-8 encoding. I like to point out that this statement is not true. Encoding of attribute values depends on its syntax, sometimes dependent on transfer options. Some textual string are not UTF-8 encoded Unicode (in real

Re: Net::LDAP Bad hostname

2003-08-14 Thread Graham Barr
On Thu, 2003-08-07 at 18:44, [EMAIL PROTECTED] wrote: > Hello all, > > I have written a script to add new entries in the LDAP directory service, > but when I setup an array of hosts I > get the following error when executing the script: "IO::Socket::INET: Bad > hostname 'myhost1.ldap.com myhost2.l

Net::LDAP based LDAP server available?

2003-08-14 Thread Enrik Berkhan
Hi, has anybody tried to build an LDAP server based on Net::LDAP or Convert::ASN1 yet? Thanks for any hint. Enrik