Active directory, DN was wrongly extracted.
Merge pull request #913 from emmanuel-keller/1.5

Active directory, DN was wrongly extracted.