Hi: You must add machine account into ldap first, run pdbedit -L -d 0 find out if there exist you computer name with a $ suffix. here is my working example ldif use device and ipHost Class, you may use others as well. it just work for me.
dn: cn=statation.aaa.com,ou=Hosts,o=aaa objectClass: top objectClass: device objectClass: sambaSamAccount objectClass: ipHost uid: statation$ uid: statation ou: sysadmin sambaSID: S-1-5-21-111111111-1111111111-1111111111-111111 sambaLMPassword: 842ED29E8B0AA719464905569BB447AE sambaNTPassword: C759AE76899C698BCB247E29072CA82D sambaPwdLastSet: 1071823632 sambaPwdCanChange: 1071823632 sambaPwdMustChange: 2147483647 sambaAcctFlags: [W ] displayName: statation sambaPrimaryGroupSID: S-1-5-21-104386597-1723736802-2492567804-2999 ipHostNumber: 192.168.100.101 manager: uid=usera,ou=People,o=aaa owner: uid=usera,ou=People,o=aaa cn: statation.aaa.com cn: statation -- To unsubscribe from this list go to the following URL and read the instructions: http://lists.samba.org/mailman/listinfo/samba