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

Rowland Penny repenny241155 at
Mon Aug 31 10:19:45 UTC 2015

On 31/08/15 10:26, Lokeshbabu Haribabu -X (lharibab - HCL TECHNOLOGIES 
LIMITED at Cisco) wrote:
> 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= XXXXXXXX hostnames=XXXXXXX
> 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.
> Regards,
> Lokesh

The bug your refer to is for mount.cifs and (I don't think) doesn't have 
anything to do with your problem.
I think your problem is that you are over thinking the join command, 
this works:

net ads join -U username%password

Note there are *no* quote marks or extra commands, if the client is set 
up correctly the server will be found for you and if the join succeeds 
(and it should) the computer will be created in AD for you.


More information about the samba-technical mailing list