Fix bug in AD group extraction
Merge pull request #916 from emmanuel-keller/1.5

Fix bug in AD group extraction