diff options
author | Volker Lendecke <vlendec@samba.org> | 2004-01-04 11:59:11 +0000 |
---|---|---|
committer | Volker Lendecke <vlendec@samba.org> | 2004-01-04 11:59:11 +0000 |
commit | 612a97f84535c2d2b397f7a1b3941f7f6f602b27 (patch) | |
tree | e8158166910bd9be81912eb18bdd1f9821b59c88 /source3/nsswitch/winbindd_misc.c | |
parent | 60639680195015739909ea7a2be032bdbab4f76c (diff) | |
download | samba-612a97f84535c2d2b397f7a1b3941f7f6f602b27.tar.gz samba-612a97f84535c2d2b397f7a1b3941f7f6f602b27.tar.bz2 samba-612a97f84535c2d2b397f7a1b3941f7f6f602b27.zip |
Commit the translation of the realm to the netbios domain name in the kerberos
session setup. After talking to jht and abartlet I made this unconditional, no
additional parameter.
Jerry: This is a change in behaviour, but I think it is necessary.
Volker
(This used to be commit d32f47fedcff3fdf46f42926d1cd84433e7ab487)
Diffstat (limited to 'source3/nsswitch/winbindd_misc.c')
-rw-r--r-- | source3/nsswitch/winbindd_misc.c | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/source3/nsswitch/winbindd_misc.c b/source3/nsswitch/winbindd_misc.c index 88fbb5ee00..1a5ecb56c7 100644 --- a/source3/nsswitch/winbindd_misc.c +++ b/source3/nsswitch/winbindd_misc.c @@ -202,6 +202,35 @@ enum winbindd_result winbindd_show_sequence(struct winbindd_cli_state *state) return WINBINDD_OK; } +enum winbindd_result winbindd_domain_info(struct winbindd_cli_state *state) +{ + struct winbindd_domain *domain; + + DEBUG(3, ("[%5lu]: domain_info [%s]\n", (unsigned long)state->pid, + state->request.domain_name)); + + domain = find_domain_from_name(state->request.domain_name); + + if (domain == NULL) { + DEBUG(3, ("Did not find domain [%s]\n", + state->request.domain_name)); + return WINBINDD_ERROR; + } + + fstrcpy(state->response.data.domain_info.name, domain->name); + fstrcpy(state->response.data.domain_info.alt_name, domain->alt_name); + fstrcpy(state->response.data.domain_info.sid, + sid_string_static(&domain->sid)); + + state->response.data.domain_info.native_mode = domain->native_mode; + state->response.data.domain_info.primary = domain->primary; + + state->response.data.domain_info.sequence_number = + domain->sequence_number; + + return WINBINDD_OK; +} + enum winbindd_result winbindd_ping(struct winbindd_cli_state *state) { |