ropnop / go-windapsearch

Utility to enumerate users, groups and computers from a Windows domain through LDAP queries
BSD 3-Clause "New" or "Revised" License
348 stars 46 forks source link

Antibackslash format for username does not work #17

Open maaaaz opened 2 years ago

maaaaz commented 2 years ago

Hello dear @ropnop,

Thanks for making a Go program for windapsearch !

As I am trying to use it, I saw a bug related to the parsing of the "username" parameter :

I had to specify it like this to make it work, by using an arobase notation:

$ ./windapsearch-linux-amd64 --debug --dc 1.2.3.4 -u "user1@adyolo" -m users
INFO[2022-06-04T14:42:25+02:00] Saving output to STDOUT                       package=windapsearch
Password for [user1@adyolo]: 

FYI, all these tries did not work either:

-u 'adyolo\user1'
-u adyolo\user1
-u adyolo\\user1

Cheers !