Need help on "net ads join" fails when we have "%" in the username - 2nd Try........

Andrew Bartlett abartlet at
Tue Sep 1 22:39:06 UTC 2015

On Mon, 2015-08-31 at 09:26 +0000, Lokeshbabu Haribabu -X (lharibab -
> Hi All
> I am working on critical bug and I need your help on the below query
> We are unable to join the domain and create computer account when 
> username contains % in it.
> I found this bug in samba website.  I believe this is the issue that 
> we are seeing now
> I believe the issue could be that we use "%" as the delimiter between 
> username and password
> net ads join -s XYZ.conf -U "username%"%"password" createcomputer= 
> If you have seen this issue earlier if so please let me how to 
> overcome this or any available workaround for it
> Is there a way to change the delimiter from % to any other character?
> Thank you for your help and support in advance.

The best option would be use use the -A option to get credentials from
a file.  This avoids putting the username and password on the command
line, and avoids the % delimiter issue. 


Andrew Bartlett

Andrew Bartlett
Authentication Developer, Samba Team
Samba Development and Support, Catalyst IT

More information about the samba-technical mailing list