Re: Antw: [EXT] Re: Entering Multi-Byte Values for DirectoryString attributes

2023-02-22 Thread Ulrich Windl
>>> Ede Wolf schrieb am 22.02.2023 um 11:03 in >>> Nachricht <6ad6c4b7-3f7d-3e2b-b1bd-936bd6060...@nebelschwaden.de>: >> It seems the backslash notation is not actually defined for LDIF. > > That indeed is a valuable hint, out of curiosity I will test, wether > other ldap server implementation

Antw: [EXT] Re: Entering Multi-Byte Values for DirectoryString attributes

2023-02-22 Thread Ulrich Windl
>>> Ede Wolf schrieb am 21.02.2023 um 16:10 in >>> Nachricht <5fed02ec-1e12-5264-305f-a3f69a335...@nebelschwaden.de>: >> The same way you would enter Unicode in any other application. This is not > an LDAP- or LDIF-specific question. >> >> 1) use a terminal and locale that support UTF-8. >> 2)

Re: Antw: [EXT] Re: Entering Multi-Byte Values for DirectoryString attributes

2023-02-22 Thread Ede Wolf
Am 22.02.23 um 11:28 schrieb Howard Chu: The server doesn't do any reprocessing on the received strings. The escaping was done by the client (or libldap) when parsing your input. The server only processes UTF-8. You can see this in the slapd logs associated with the example ops I sent before:

Re: Antw: [EXT] Re: Entering Multi-Byte Values for DirectoryString attributes

2023-02-22 Thread Howard Chu
Howard Chu wrote: > Ede Wolf wrote: >> >>> Hi! >>> >>> I'd say: Get the proper app (eg. BabelPad on Windows, see attachment) and >>> then BASE64-encode the string. >>> >>> Regards, >>> Ulrich >>> >> >> Thanks, but windows is not an option. Again, base64 encoding is fine with >> echo -en "" | base

Re: Antw: [EXT] Re: Entering Multi-Byte Values for DirectoryString attributes

2023-02-22 Thread Howard Chu
Ede Wolf wrote: > >> Hi! >> >> I'd say: Get the proper app (eg. BabelPad on Windows, see attachment) and >> then BASE64-encode the string. >> >> Regards, >> Ulrich >> > > Thanks, but windows is not an option. Again, base64 encoding is fine with > echo -en "" | base64. > With a browser I can sea

Re: Antw: [EXT] Re: Entering Multi-Byte Values for DirectoryString attributes

2023-02-22 Thread Ede Wolf
It seems the backslash notation is not actually defined for LDIF. That indeed is a valuable hint, out of curiosity I will test, wether other ldap server implementations will also accept at least the \FF notation for the dn, but that is off topic here. RFC 2849 (LDAP Data Interchange For

Re: Antw: [EXT] Re: Entering Multi-Byte Values for DirectoryString attributes

2023-02-22 Thread Ede Wolf
Hi! I'd say: Get the proper app (eg. BabelPad on Windows, see attachment) and then BASE64-encode the string. Regards, Ulrich Thanks, but windows is not an option. Again, base64 encoding is fine with echo -en "" | base64. With a browser I can search for the symbol and do copy paste into t

Re: Entering Multi-Byte Values for DirectoryString attributes

2023-02-21 Thread Howard Chu
Ondřej Kuzník wrote: > On Tue, Feb 21, 2023 at 05:32:01PM +0100, Ede Wolf wrote: >> Hello Ondřej, >> >> Thanks very much! That is exactly the anwer I have been looking for - even >> more so in fact, as additionally I have been educated, that the dn is a >> different part from the rest of the ldif.

Re: Entering Multi-Byte Values for DirectoryString attributes

2023-02-21 Thread Ondřej Kuzník
On Tue, Feb 21, 2023 at 05:32:01PM +0100, Ede Wolf wrote: > Hello Ondřej, > > Thanks very much! That is exactly the anwer I have been looking for - even > more so in fact, as additionally I have been educated, that the dn is a > different part from the rest of the ldif. Makes sense, but I've never

Re: Entering Multi-Byte Values for DirectoryString attributes

2023-02-21 Thread Ede Wolf
Hi Ede, in a search filter you are dealing with RFC 4515 which describes how to escape values into that string, similar with URIs, which have their own escaping rules you can leverage for this. With LDIF, you are dealing with RFC 2849 which has no concept of escaping values: you can enter a val

Re: Entering Multi-Byte Values for DirectoryString attributes

2023-02-21 Thread Ondřej Kuzník
On Tue, Feb 21, 2023 at 04:10:53PM +0100, Ede Wolf wrote: >> The same way you would enter Unicode in any other application. This >> is not an LDAP- or LDIF-specific question. >> >> 1) use a terminal and locale that support UTF-8. >> 2) use whatever tools your OS provides for entering Unicode >> ch

Re: Entering Multi-Byte Values for DirectoryString attributes

2023-02-21 Thread Ede Wolf
The same way you would enter Unicode in any other application. This is not an LDAP- or LDIF-specific question. 1) use a terminal and locale that support UTF-8. 2) use whatever tools your OS provides for entering Unicode characters. Probably something named "Unicode character map" or similar.

Re: Entering Multi-Byte Values for DirectoryString attributes

2023-02-21 Thread Howard Chu
Ede Wolf wrote: > Am 20.02.23 um 18:06 schrieb Howard Chu: >> Ede Wolf wrote: >>> Hello, >>> >>> This is probably more a ldif than an OpenLDAP question, but still, maybe >>> somebody knows the answer: Is there a way to put multibyte characters into >>> an attribute >>> value and let the server kn

Re: Antw: [EXT] Entering Multi-Byte Values for DirectoryString attributes

2023-02-21 Thread Ede Wolf
Am 20.02.23 um 16:18 schrieb Ulrich Windl: Hi! Ever notices the "double-colons" "::"? For example: userPassword:: e1NTSEF9... Kind regards, Ulrich Windl Yes, but I am unaware, that those hint to something else than base64 encoding? I may stand more than happily corrected, tough My quest

Re: Entering Multi-Byte Values for DirectoryString attributes

2023-02-21 Thread Ede Wolf
Am 20.02.23 um 18:06 schrieb Howard Chu: Ede Wolf wrote: Hello, This is probably more a ldif than an OpenLDAP question, but still, maybe somebody knows the answer: Is there a way to put multibyte characters into an attribute value and let the server know, these are not to be treated literally

Re: Entering Multi-Byte Values for DirectoryString attributes

2023-02-20 Thread Howard Chu
Ede Wolf wrote: > Hello, > > This is probably more a ldif than an OpenLDAP question, but still, maybe > somebody knows the answer: Is there a way to put multibyte characters into an > attribute > value and let the server know, these are not to be treated literally, but are > utf8 character enco

Entering Multi-Byte Values for DirectoryString attributes

2023-02-20 Thread Ede Wolf
Hello, This is probably more a ldif than an OpenLDAP question, but still, maybe somebody knows the answer: Is there a way to put multibyte characters into an attribute value and let the server know, these are not to be treated literally, but are utf8 character encodings? I've tried to dig in