Split d’un Distinguished Name.

Comment faire un split d’un Distinguished Name pour en extraire le nom des OU.

$dn = "CN=Groupe_Compta,OU=Groups,OU=Paris,OU=France,DC=domain,DC=local"

Extraire la ville:

$dn.split(",")[2].split("=")[1]

Extraire le pays:

$dn.split(",")[3].split("=")[1]



No related posts.



2 Comments to “Split d’un Distinguished Name.”

  1. By average cost of breast implants, 3 février 2012 @ 12:05

    Hi, i feel that i noticed you visited my website thus i came to go back the choose?.I am trying to in finding issues to enhance my web site!I assume its adequate to make use of a few of your ideas!!

  1. iPhone 5 Release Date — 16 janvier 2012 @ 3:43

Flux RSS des commentaires de cet article. TrackBack URI

Leave a Reply