Deleting a Samba machine account


(Davide Principi) #1

Continuing the discussion from Openldap administration:


Openldap administration
(Davide Principi) #2

I’d give a try to luserdel :wink:

Let me know how it goes!


#3

hmm, that does not work…
[root@pdc01 ~]# luserdel testmachine$ User testmachine$ does not exist.
But user is definetly there:

[root@pdc01 ~]# getent passwd | grep testmachine
testmachine$:*:5006:504:testmachine$ Samba machine account:/none:

does the ldap way work?


(Davide Principi) #4

Bash requires $ escaped, so

luserdel testmachine\$

Or

luserdel 'testmachine$'

(Wolfgang Höfer) #5

Hi,

did you try with the user “libuser”?
The password can be found in /var/lib/nethserver/secrets/libuser

(It ist the user i use to query the ldap at the moment, but I don’t know (and cannot test) if there is an ACL for write-access in the DIT)


(Davide Principi) #6

Indeed the luserdel command comes with libuser :blush: and does the LDAP wodoo by itself!