Bonjour,
Je dispose d'un active directory et un serveur Microsoft Exchange. Je souhaiterais pouvoir récupérer les adresses mails des utilisateurs à partir du nom du compte.
Est-ce possible ?
Merci d'avance.
Bonjour,
Je dispose d'un active directory et un serveur Microsoft Exchange. Je souhaiterais pouvoir récupérer les adresses mails des utilisateurs à partir du nom du compte.
Est-ce possible ?
Merci d'avance.
Bonjour,
Je ne connais pas très bien le fonctionnement active directory + Exchange mais tu peut essayer avec LDAPListeAttribut() (http://doc.pcsoft.fr/fr-FR/?3032104&...ribut_fonction)
bon dev
Bonjour,
J'ai bien récupéré la attributs AD mais je ne sais pas lequel correspond à l'adresse mail ni comment l'exploiter ensuite...
Code : Sélectionner tout - Visualiser dans une fenêtre à part
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50 objectClass<\r><\n> distinguishedName<\r><\n> instanceType<\r><\n> whenCreated<\r><\n> whenChanged<\r><\n> subRefs<\r><\n> uSNCreated<\r><\n> dSASignature<\r><\n> repsTo<\r><\n> repsFrom<\r><\n> uSNChanged<\r><\n> name<\r><\n> objectGUID<\r><\n> replUpToDateVector<\r><\n> creationTime<\r><\n> forceLogoff<\r><\n> lockoutDuration<\r><\n> lockOutObservationWindow<\r><\n> lockoutThreshold<\r><\n> maxPwdAge<\r><\n> minPwdAge<\r><\n> minPwdLength<\r><\n> modifiedCountAtLastProm<\r><\n> nextRid<\r><\n> wdProperties<\r><\n> pwdHistoryLength<\r><\n> objectSid<\r><\n> serverState<\r><\n> uASCompat<\r><\n> modifiedCount<\r><\n> auditingPolicy<\r><\n> nTMixedDomain<\r><\n> rIDManagerReference<\r><\n> fSMORoleOwner<\r><\n> systemFlags<\r><\n> wellKnownObjects<\r><\n> objectCategory<\r><\n> isCriticalSystemObject<\r><\n> gPLink<\r><\n> dSCorePropagationData<\r><\n> otherWellKnownObjects<\r><\n> masteredBy<\r><\n> ms-DS-MachineAccountQuota<\r><\n> msDS-Behavior-Version<\r><\n> msDS-PerUserTrustQuota<\r><\n> msDS-AllUsersTrustQuota<\r><\n> msDS-PerUserTrustTombstonesQuota<\r><\n> msDs-masteredBy<\r><\n>msDS-IsDomainFor<\r><\n> msDS-NcType<\r><\n> dc<\r><\n>
Merci encore
Dans ce cas, il faut mettre une valeur dans le champ mail de l'AD et tu sauras auquel il faut faire référence. Ceci dit, cela dépend de la version de l'AD aussi ... donc pour t'aider il faudrait plus d'informations.
Vous avez un bloqueur de publicités installé.
Le Club Developpez.com n'affiche que des publicités IT, discrètes et non intrusives.
Afin que nous puissions continuer à vous fournir gratuitement du contenu de qualité, merci de nous soutenir en désactivant votre bloqueur de publicités sur Developpez.com.
Partager