diff options
author | Luke Leighton <lkcl@samba.org> | 1999-11-24 22:45:09 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 1999-11-24 22:45:09 +0000 |
commit | 2803a72751cf511aa0b5e6745e1b169faa66f68a (patch) | |
tree | e93ae3fb9694c457c004600b2a0e58ec051d4bad /source3/lib/domain_namemap.c | |
parent | f8b82a7b9507e11595bc924def179dc1d7d79a54 (diff) | |
download | samba-2803a72751cf511aa0b5e6745e1b169faa66f68a.tar.gz samba-2803a72751cf511aa0b5e6745e1b169faa66f68a.tar.bz2 samba-2803a72751cf511aa0b5e6745e1b169faa66f68a.zip |
ok. *whew*. this is the first completed part of the restructure.
verified that lsaquery, lsalookupsids work, and found some bugs in the
parameters of these commands :-)
soo... we now have an lsa_* api that has the same arguments as the nt
Lsa* api! cool!
the only significant coding difference is the introduction of a
user_credentials structure, containing user, domain, pass and ntlmssp
flags.
(This used to be commit 57bff6fe82d777e599d535f076efb2328ba1188b)
Diffstat (limited to 'source3/lib/domain_namemap.c')
-rw-r--r-- | source3/lib/domain_namemap.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/source3/lib/domain_namemap.c b/source3/lib/domain_namemap.c index 51fcd2467a..551c7290ea 100644 --- a/source3/lib/domain_namemap.c +++ b/source3/lib/domain_namemap.c @@ -882,7 +882,8 @@ static BOOL lookup_remote_ntname(const char *ntname, DOM_SID *sid, uint8 *type) struct cli_state cli; POLICY_HND lsa_pol; fstring srv_name; - extern struct cli_state *rpc_smb_cli; + extern struct user_credentials *usr_creds; + struct user_credentials usr; BOOL res3 = True; BOOL res4 = True; @@ -891,7 +892,10 @@ static BOOL lookup_remote_ntname(const char *ntname, DOM_SID *sid, uint8 *type) uint8 *types; char *names[1]; - rpc_smb_cli = &cli; + usr_creds = &usr; + + ZERO_STRUCT(usr); + pwd_set_nullpwd(&usr.pwd); DEBUG(5,("lookup_remote_ntname: %s\n", ntname)); |