Hallo,
das funktioniert nicht!
Das samba-tool läuft problemlos durch (0 errors).
Dann habe ich mir für den Host mittels ldapsearch auf dem “master” die objectGUID des Hosts geholt:
# root@ucs: ldbsearch -H /var/lib/samba/private/sam.ldb --cross-ncs
# record 3262
dn: DC=ucs2,DC=knebb.de,CN=MicrosoftDNS,CN=System,DC=knebb,DC=de
objectClass: top
objectClass: dnsNode
instanceType: 4
whenCreated: 20160829142427.0Z
whenChanged: 20160829142427.0Z
uSNCreated: 4156
uSNChanged: 4156
showInAdvancedViewOnly: TRUE
name: ucs2
objectGUID: fad6e888-6bee-4375-8110-5a026301f043
dnsRecord:: BAABAAXwAAABAAAAAAADhAAAAAAAAAAAwKgBCg==
objectCategory: CN=Dns-Node,CN=Schema,CN=Configuration,DC=knebb,DC=de
dc: ucs2
distinguishedName: DC=ucs2,DC=knebb.de,CN=MicrosoftDNS,CN=System,DC=knebb,DC=de
Und wollte dann mittles des Python-Skriptes den Host löschen. Nur findet er ihn nicht. Weder als “ucs2”, noch mit dem DN.
root@ucs:~# /usr/share/univention-samba4/scripts/purge_s4_computer.py --computername=ucs2
Samba 4 computer account 'ucs2' not found.
root@ucs:~# /usr/share/univention-samba4/scripts/purge_s4_computer.py --computername="DC=ucs2,DC=knebb.de,CN=MicrosoftDNS,CN=System,DC=knebb,DC=de"
Samba 4 computer account 'DC=ucs2,DC=knebb.de,CN=MicrosoftDNS,CN=System,DC=knebb,DC=de' not found.
Und nun?
/KNEBB