Richmond Dyes
2005-Jul-05 13:53 UTC
[Samba] Invalid user name when adding machine to domain
I am getting an error when trying to add a machine to my domain. I look at the log for that machine and this is what I get [2005/07/02 20:54:51, 2] smbd/sesssetup.c:setup_new_vc_session(608) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2005/07/02 20:54:51, 2] smbd/sesssetup.c:setup_new_vc_session(608) setup_new_vc_session: New VC == 0, if NT4.x compatible we would close all old resources. [2005/07/02 20:54:51, 2] auth/auth.c:check_ntlm_password(305) check_ntlm_password: authentication for user [admin] -> [root] -> [root] succeeded [2005/07/02 20:54:52, 2] rpc_server/srv_samr_nt.c:_samr_lookup_domain(2482) Returning domain sid for domain XXXXXXX -> S-1-5-21-1984118162-790530758-327830036 useradd: invalid user name 'paulgrav$' [2005/07/02 20:54:53, 2] smbd/server.c:exit_server(571) Closing connections Any ideas of what could be causing this?
Jim McDonough
2005-Jul-06 17:02 UTC
[Samba] Invalid user name when adding machine to domain
>useradd: invalid user name 'paulgrav$' > >Any ideas of what could be causing this?Your version of useradd doesn't allow '$'. This keeps getting fixed and then reverted on many distros...what are you using? ---------------------------- Jim McDonough IBM Linux Technology Center Samba Team 6 Minuteman Drive Scarborough, ME 04074 USA jmcd at us dot ibm dot com jmcd at samba dot org Phone: 1-877-228-1846 IBM tie-line: 349-5335
On Jul 5, 2005, at 6:53 AM, Richmond Dyes wrote:> I am getting an error when trying to add a machine to my domain. I > look at the log for that machine and this is what I get > ><SNIP>> useradd: invalid user name 'paulgrav$' > [2005/07/02 20:54:53, 2] smbd/server.c:exit_server(571) >Perhaps the computer account was not created on the server. In smb.conf, the "add machine script" directive is not set, or is failing because the script is broken. Or, if you are not using this directive, you did not first manually create a machine account at the server