diff options
author | Andrew Tridgell <tridge@samba.org> | 2001-12-03 11:11:14 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 2001-12-03 11:11:14 +0000 |
commit | 6f907af4e73b53c3ddab934ba954788a2134b913 (patch) | |
tree | 03298800cbb068993d1650813e7d54db610780ab /source3/torture/nsstest.c | |
parent | c868fe502bb9ea2b5c5452a49f89ec19ab58f2ba (diff) | |
download | samba-6f907af4e73b53c3ddab934ba954788a2134b913.tar.gz samba-6f907af4e73b53c3ddab934ba954788a2134b913.tar.bz2 samba-6f907af4e73b53c3ddab934ba954788a2134b913.zip |
put sid_to_name behind the winbindd backend interface
I spent quite a while trying to work out how to make this call
via ldap and failed. I then found that MS servers seem use rpc
for sid_to_name, and it works even when in native mode, I ended
up just implementing it via rpc
(This used to be commit 789833b44e342c0b5de463ed8f9b5f7474a99f27)
Diffstat (limited to 'source3/torture/nsstest.c')
-rw-r--r-- | source3/torture/nsstest.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source3/torture/nsstest.c b/source3/torture/nsstest.c index 76108876df..8b40eaa163 100644 --- a/source3/torture/nsstest.c +++ b/source3/torture/nsstest.c @@ -262,10 +262,10 @@ static void nss_test_users(void) while ((pwd = nss_getpwent())) { printf("Testing user %s\n", pwd->pw_name); printf("getpwent: "); print_passwd(pwd); - pwd = nss_getpwnam(pwd->pw_name); - printf("getpwnam: "); print_passwd(pwd); pwd = nss_getpwuid(pwd->pw_uid); printf("getpwuid: "); print_passwd(pwd); + pwd = nss_getpwnam(pwd->pw_name); + printf("getpwnam: "); print_passwd(pwd); printf("initgroups: "); nss_test_initgroups(pwd->pw_name, pwd->pw_gid); printf("\n"); } |