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

Rowland Penny repenny241155 at gmail.com
Mon Aug 31 11:07:49 UTC 2015


On 31/08/15 11:42, Lokeshbabu Haribabu -X (lharibab - HCL TECHNOLOGIES 
LIMITED at Cisco) wrote:
> Hi Rowland,
>
> Thank you for your response.

Please keep posts on list.

>
> My query is that when we have % in the username, net ads join is not working. I gave that bug because it seems like a similar issue of what I am seeing.
>
> For example -
>
> net ads join -s XYZ.conf -U "test%user"%"password" createcomputer= Computers hostnames=abc-proxy.com
>
> Will this work?

I do not think it will, I think the username/password will get expanded 
to 'test%user%password' and it will be read as the user test with a 
password of user%password or just user.

I would never use '%' in a username, samba & windows both use it as a 
delimiter, but if you must use it, then this *may* work:

net ads join -U test\%user%password

As long as everything else is set up correctly, the machine should get 
joined to the AD domain, if it isn't set up correctly, you shouldn't be 
trying to join the domain. If this doesn't work, you may have to accept 
you cannot use '%' in a username.

Rowland

>
> In my case it is not working.
>
> Please let me know your thoughts on this.
>
> Thanks,
> Lokesh
>
> -----Original Message-----
> From: samba-technical [mailto:samba-technical-bounces at lists.samba.org] On Behalf Of Rowland Penny
> Sent: Monday, August 31, 2015 3:50 PM
> To: samba-technical at lists.samba.org
> Subject: Re: Need help on "net ads join" fails when we have "%" in the username - 2nd Try........
>
> 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 https://bugzilla.samba.org/show_bug.cgi?id=8758
>>
>> 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.
>
> Rowland
>
>




More information about the samba-technical mailing list