diff options
author | Gerald Carter <jerry@samba.org> | 2003-04-29 15:27:06 +0000 |
---|---|---|
committer | Gerald Carter <jerry@samba.org> | 2003-04-29 15:27:06 +0000 |
commit | 4ae2e47b93c7f07fb395139d9614f0a90dbb8560 (patch) | |
tree | 026c8166e45f296f6c48a12b64243709f07f46bc /source3/nsswitch/winbindd_sid.c | |
parent | 7b126ce7a0061c717b1561adf3ad06811ddb936d (diff) | |
download | samba-4ae2e47b93c7f07fb395139d9614f0a90dbb8560.tar.gz samba-4ae2e47b93c7f07fb395139d9614f0a90dbb8560.tar.bz2 samba-4ae2e47b93c7f07fb395139d9614f0a90dbb8560.zip |
remove convert_smbpasswd and addtosmbpass from tree; people can get them from 2.2. if they still need them
(This used to be commit 237857a760974bb02000e5d3a776240ec73ca6b6)
Diffstat (limited to 'source3/nsswitch/winbindd_sid.c')
-rw-r--r-- | source3/nsswitch/winbindd_sid.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_sid.c b/source3/nsswitch/winbindd_sid.c index 6ab2eaa646..41bda7e5bc 100644 --- a/source3/nsswitch/winbindd_sid.c +++ b/source3/nsswitch/winbindd_sid.c @@ -98,6 +98,11 @@ enum winbindd_result winbindd_lookupname(struct winbindd_cli_state *state) name_domain = state->request.data.name.dom_name; name_user = state->request.data.name.name; + /* fail if we are a PDC and this is our domain; should be done by passdb */ + + if ( lp_server_role() == ROLE_DOMAIN_PDC && 0==StrCaseCmp( name_domain, lp_workgroup()) ) + return WINBINDD_ERROR; + if ((domain = find_domain_from_name(name_domain)) == NULL) { DEBUG(0, ("could not find domain entry for domain %s\n", name_domain)); |