HP CIFS Server 3.0b Administrator's Guide version A.02.01.01

NT Style Domains
Create the Machine Trust Accounts
Chapter 490
For ldapsam backend:
$ /opt/samba/bin/smbpasswd -a -m client1
An example of the associated machine entry in the LDAP
directory server for a client machine named “client1” would be:
objectClass: posixAccount
objectClass: sambaSamAccount
cn: client1$
uid: client1$
uidNumber: 1000
gidNumber: 200
homeDirectory: /home/temp
loginShell: /bin/false
gecos: Samba_Server
description: Samba_Server
userPassword: {crypt}x
pwdLastSet: 1076466492
logonTime: 0
logofftime: 2147483647
kickoffTime: 2147483647
pwdCanChange: 0
pwdMustChange: 2147483647
rid: 1206
primaryGroupID: 1041
lmPassword: E0AFF63989B8FA6576549A685C6AFAF1
ntPassword: E0AFF63989B8FA6576549A685C6AFAF1
acctFlags: [W ]
displayName: client1$
NOTE You can also use utilities including pdbedit, net commands to
create the machine trust accounts. The net commands provide
numerous new utility operations. For more information on how to
create machine trust accounts using pdbedit and net commands,
see SWAT help text for pdbedit, net commands.