smbpasswd PROBLEM IDENTIFIED

Esh, Andrew AEsh at tricord.com
Wed Dec 5 08:49:01 GMT 2001


The problem I am having with the latest SAMBA_2_2 smbpasswd has been traced
to a change in the function "modify_trust_password", in
rpc_client/cli_trust.c. The new version of the routine starts out by trying
to read the domain SID from the secrets database, and fails if it doesn't
find it. (If the database is new, it won't have that key entered yet, so
smbpasswd can't deal with a new database.)

In the release-2-2-2 code, in the same routine, later on toward the end,
there is a call to  "cli_lsa_get_domain_sid", which connects via the network
to the PDC and gets the domain SID. That function, in
"rpc_client/cli_lsarpc.c", stores the SID in the secrets database.

The file "rpc_client/cli_lsarpc.c" doesn't even exist in the new code, and
the "cli_lsa_get_domain_sid" function isn't found anywhere else.

I don't see any way for the new code to ever query the PDC and get the
domain SID. Without that, Samba can't join the domain, and won't run in
domain mode.

Obviously this is an absurd conclusion. What is the real problem?

---
Andrew C. Esh                mail:Andrew.Esh at tricord.com
Tricord Systems, Inc.
2905 Northwest Blvd., Suite 20        763-557-9005 (main)
Plymouth, MN 55441-2644 USA      763-551-6418 (direct)
http://www.tricord.com - Tricord Home Page

-------------- next part --------------
HTML attachment scrubbed and removed


More information about the samba-technical mailing list