[Samba] Samba+PDC+LDAP+add user script - problem

IOhannes zmoelnig zmoelnig at iem.kug.ac.at
Fri Jul 5 03:23:07 GMT 2002

Markus Schabel wrote:
> What exactly happens is, that the smbldap-useradd.pl script creates the
> machine-trust-accounts correctly, but when the client generates the
> password-hashes for the PDC, samba inserts these hashes in the wrong LDAP-entry
> (based on a wrong rid). Any idea how I can solve this?

hi !
i'm not using 2.2.5 and not using the tools from idealx,
but 2.2.4 and a few very simple self-made scripts (it appeared to me, 
that i was faster writing my own shell-scripts than trying to figure out 
what those were doing and why they were not doing what i wanted)

it turned out for me, that my machine-adding would only work, if i 
created a machine-account that was only a posix-account (thus: NO 
the samba-fields are added automagically when joining the client to the 
my problem was: samba could create samba-machine-entries on the ldap-dir 
(or add samba-fields to already existing entries) but it could not 
modify existing (samba-)fields.
Since i didn't want my clients to appear in the root of the ldap-dir, i 
pre-created those posix-accounts (+additional info) where i wanted them 
to be. the samba-fields are added to the correct machines, buit they are 
  searched/found by UID, not by RID !


> greetz

More information about the samba mailing list