Clever-Excel-Forum

Normale Version: VBA - LDAP-Abfrage
Du siehst gerade eine vereinfachte Darstellung unserer Inhalte. Normale Ansicht mit richtiger Formatierung.
Seiten: 1 2 3
Ich habe noch bei der recherche noch folgenden Hinweis gelesen:



Code:
LDAP filters can be specified by unicode characters. You may, for example, use German umlauts - if it makes sense (if the filtered attribute is an unicode string). However, the characters ( ) & | = ! > < ~ * / \ play a special role for the declaration of LDAP filters.

If you search for or want to compare these characters within an attribute string, you'll have to use a prefixed backslash and the corresponding hexadecimal ASCII code:

(    \28         )    \29         &    \26
|    \7c         =    \3d         >    \3e
<    \3c         ~    \7e         *    \2a
/    \2f         \    \5c              

An example: We want to retrieve all objects whose attributes "displayName" start with "*" :

   (displayName=\2a)

The character zero (\00) may also be required occasionally.



aber das bekomme ich auch nicht hin.



@schauan
ich werde deinen Code übermorgen auf der Arbeit testen :) ... danke für deine Mühen!
Seiten: 1 2 3