Koozali.org: home of the SME Server

Obsolete Releases => SME Server 9.x => Topic started by: john56 on October 04, 2018, 11:16:47 AM

Title: not possible to join domain for a computer
Post by: john56 on October 04, 2018, 11:16:47 AM
I'm not able to join a domain for a computer (like if it has joined before but not completely)
Any idea ?


Hi

My log :

Oct  4 11:08:02 buzz esmith::event[3514]: Processing event: machine-account-create tab-acer08$
Oct  4 11:08:02 buzz esmith::event[3514]: Running event handler: /etc/e-smith/events/machine-account-create/S10create-machine-account
Oct  4 11:08:02 buzz esmith::event[3514]: Attempt to create account 'tab-acer08$' which already exists in passwd at /usr/share/perl5/vendor_perl/esmith/AccountsDB.pm line 494.
Oct  4 11:08:02 buzz esmith::event[3514]: Can't call method "prop" on an undefined value at /etc/e-smith/events/machine-account-create/S10create-machine-account line 62.
Oct  4 11:08:02 buzz esmith::event[3514]: S10create-machine-account=action|Event|machine-account-create|Action|S10create-machine-account|Start|1538644082 198088|End|1538644082 254967|Elapsed|0.056879|Status|65280
Oct  4 11:08:02 buzz esmith::event[3514]: Running event handler: /etc/e-smith/events/machine-account-create/S95ldap-update-simple
Oct  4 11:08:02 buzz esmith::event[3514]: Account tab-acer08$ not found.
Oct  4 11:08:02 buzz esmith::event[3514]: S95ldap-update-simple=action|Event|machine-account-create|Action|S95ldap-update-simple|Start|1538644082 255158|End|1538644082 355234|Elapsed|0.100076|Status|65280
Oct  4 11:08:02 buzz smbd[3512]: [2018/10/04 11:08:02.356655,  0] passdb/pdb_interface.c:476(pdb_default_create_user)
Oct  4 11:08:02 buzz smbd[3512]:   _samr_create_user: Running the command `/sbin/e-smith/signal-event machine-account-create 'tab-acer08$'' gave 1
Title: Re: not possible to join domain for a computer
Post by: Daniel B. on October 04, 2018, 12:02:07 PM
Looks like you messed up something manually: you have already tab-acer08$ in /etc/passwd but not in the AccountsDB. Quick fixe is to remove any entry for tab-acer08$ from files /etc/passwd /etc/group and /etc/samba/smbpasswd. But it'd be interresting to understand how you managed to reach this situation
Title: Re: not possible to join domain for a computer
Post by: john56 on October 04, 2018, 12:07:16 PM
Yes the problem come from etc/group (who had an entry for this computer.

I've joined a lot of computer in the same time, probably they have had the same ID during the operation.

Many thanks.