Samba winbindd and Sun PC NetLink; SID_NAME_USE type == SID_NAME_USE_NONE
Arkadi E. Shishlov
arkadi at it.lv
Fri Mar 22 04:57:04 GMT 2002
Hi.
We have a Sun PC NetLink 1.2 PDC running on Sun SPARC Solaris.
I've tried to setup Samba 2.2.3a winbindd on Linux i386 to use
NetLink PDC and failed at first attempt.
wbinfo and getent works but authentication and uid translation
does not.
The problem: name_type, group_name_type, and similar variables
in winbindd_user.c, winbindd_group.c, wb_client.c are always
equal to SID_NAME_USE_NONE.
When I commented out all code that performs name_type checks
against SID_NAME_USER, SID_NAME_DOM_GRP, SID_NAME_ALIAS winbindd
become functional.
Like:
--- samba-2.2.3a/source/nsswitch/winbindd_user.c Sun Feb 3 02:46:46 2002
+++ /usr/src/samba-2.2.3a/source/nsswitch/winbindd_user.c Thu Mar 7 00:24:26 2002
@@ -143,14 +143,14 @@ enum winbindd_result winbindd_getpwnam_f
winbindd_store_user_cache_entry(domain, name_user, &negative_pw_cache_entry);
return WINBINDD_ERROR;
}
-
+/*
if (name_type != SID_NAME_USER) {
DEBUG(1, ("name '%s' is not a user name: %d\n", name_user,
name_type));
winbindd_store_user_cache_entry(domain, name_user, &negative_pw_cache_entry);
return WINBINDD_ERROR;
}
-
+*/
I don't understand Samba internals and can't undertand code in
cli_lsa_lookup_names() and at lower level, so any hints to debug
this problem?
Can it be NetLink bug (NT, 2k, XP works w/o problems) or endianess
problems?
Please, CC me, I'm not at list.
arkadi.
More information about the samba-technical
mailing list