[Samba] Problem joining a domain.

Craig White craigwhite at azapple.com
Tue Mar 21 14:28:19 GMT 2006


On Tue, 2006-03-21 at 10:41 +0100, David Moron wrote:
> Hi,
> 
> I've just tried to fix the SID for my domain and actually both have the 
> same value, but still doesn't work:
> 
> SID for domain PDC-SRV is: S-1-5-21-27105391-1648776033-2601101416
> SID for domain OPENWIRED is: S-1-5-21-27105391-1648776033-2601101416
> 
> I also want to know the correct syntax for the file smb.conf, i mean, in 
> the smb logs apears these lines when i try to log from my windows machine:
> 
> [...]
> [2005/03/21 10:21:29, 2] rpc_server/srv_samr_nt.c:_samr_lookup_domain(2580)
>    Returning domain sid for domain OPENWIRED -> 
> S-1-5-21-27105391-1648776033-2601101416
> sh: -c: line 0: unexpected EOF while looking for matching `''
> sh: -c: line 1: syntax error: unexpected end of file
> [2005/03/21 10:21:29, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2324)
>    _samr_create_user: Running the command 
> `/usr/local/sbin/smbldap-useradd -w 'pc4$' gave 2
> [2005/03/21 10:21:29, 2] smbd/server.c:exit_server(609)
>    Closing connections
> 
> Those errors are from this line in smb.conf:
> 
> add machine script = /usr/local/sbin/smbldap-useradd -w '%u
> 
> there is a missing ' at the end of the line but when i add it:
> 
> [...]
> [2005/03/21 10:29:07, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2324)
>    _samr_create_user: Running the command 
> `/usr/local/sbin/smbldap-useradd -w 'pc4$'' gave 9
> [2005/03/21 10:29:07, 2] smbd/server.c:exit_server(609)
>    Closing connections
> 
> and if i use " the log is:
> 
> [...]
> [2005/03/21 10:33:56, 2] rpc_server/srv_samr_nt.c:_samr_lookup_domain(2580)
>    Returning domain sid for domain OPENWIRED -> 
> S-1-5-21-27105391-1648776033-2601101416
> [2005/03/21 10:33:57, 0] rpc_server/srv_samr_nt.c:_samr_create_user(2324)
>    _samr_create_user: Running the command 
> `/usr/local/sbin/smbldap-useradd -w "pc4$"' gave 9
> [2005/03/21 10:33:57, 2] smbd/server.c:exit_server(609)
>    Closing connections
> 
> 
> I think all the problem came from this file, so i would like to know the 
>   correct syntax for it.
> 
> Thank you in advance.
----
first of all...I can't think of a single system that would require
unbalanced quotes so it would be either 'value' or "value"

Generally the difference in most languages/interpreters is variables
inside of single quotes are expanded while those inside double quotes
can.

>From your explanation, it would appear that you have edited your smbldap
configuration file but lost one of the quotation marks inside of the
configuration file and thus have created a problem. If you aren't
capable of examining the configuration file that you edited, you might
want to obtain another copy (hopefully you made a copy of the original
before you hacked it).

In short - you need to fix your smbldap configuration file.

Craig



More information about the samba mailing list