ClearFoundation Tracker - ClearOS
View Issue Details
0020201ClearOSapp-samba - Windows Networkingpublic2018-05-21 07:372020-03-03 03:21
NickH 
 
normalminoralways
closedsuspended 
7.4.0 
 
0020201: Deleting a Computer from the Webconfig means Computer can no longer be re-added to Webconfig
If you delete a Domain computer from the Windows Networking webconfig while it is still a Domain Member, it means that, even if it rejoins the domain, it will no longer show in the Webconfig.

This could be the scenario if one of your computers goes missing and you want to delete it from the Domain. If you then find it, you can re-add it but it will never show in the webconfig.

It appears that the computer is deleted in LDAP by the webconfig and "pdbedit -L" comes up with nothing for the computer. In this state, when you re-join the Domain, Windows Networking does not show the computer although "pdbedit -L" does. If you subsequently leave the domain, "pdbedit -L" shows the computer with an id of and "pdbedit -Lv" shows something like:

Unix username: BLACK$
NT username: BLACK$
Account Flags: [W ]
User SID: S-1-5-21-3307318640-3208748685-2086284823-20000003
Failed to find a Unix account for BLACK$
Primary Group SID: (NULL SID)
Full Name: BLACK$
Home Directory: \\myserver\black_
HomeDir Drive: U:
Logon Script: logon.cmd
Profile Path:
Domain: CLEARSYSTEM
Account desc:
Workstations:
Munged dial:
Logon time: 0
Logoff time: never
Kickoff time: never
Password last set: Mon, 21 May 2018 14:03:05 BST
Password can change: Mon, 21 May 2018 14:03:05 BST
Password must change: never
Last bad password : 0
Bad password count : 0
Logon hours : FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF

Note the two lines:
Failed to find a Unix account for BLACK$
Primary Group SID: (NULL SID)

At this point the only way to recover is to do a "pdbedit -x BLACK$" which will allow you to rejoin.

It may be that the delete operation should be a "pdbedit -x" operation rather than an LDAP operation.
No tags attached.
Issue History
2018-05-21 07:37NickHNew Issue
2018-06-25 14:42user2Statusnew => confirmed
2020-03-03 03:21NickHNote Added: 0013301
2020-03-03 03:21NickHStatusconfirmed => closed
2020-03-03 03:21NickHResolutionopen => suspended

Notes
(0013301)
NickH   
2020-03-03 03:21   
Migrated to https://gitlab.com/clearos/clearfoundation/app-samba/issues/22 [^]