trust domain initialize

Lin Li linl at xandros.com
Thu Mar 24 14:28:41 GMT 2005


It seems the trusted domains may not be initialized in some situation so 
"wbinfo -u" failed to get users on the trusted domains.
I'm using 3.0.11. Here is my patch:
-----------------------------------------------------------
diff -u -w -r1.6 winbindd_group.c
--- winbindd_group.c    17 Mar 2005 15:56:51 -0000      1.6
+++ winbindd_group.c    24 Mar 2005 14:22:53 -0000
@@ -858,6 +858,9 @@
                if ( *which_domain && !strequal(which_domain, 
domain->name) )
                        continue;

+               if ( !domain->initialized )
+                               set_dc_type_and_flags( domain );
+
                ZERO_STRUCT(groups);

                /* Get list of sam groups */

diff -u -w -r1.5 winbindd_user.c
--- winbindd_user.c     17 Mar 2005 15:56:51 -0000      1.5
+++ winbindd_user.c     24 Mar 2005 14:22:53 -0000
@@ -616,6 +616,9 @@
                if ( *which_domain && !strequal(which_domain, 
domain->name) )
                        continue;

+               if ( !domain->initialized )
+                               set_dc_type_and_flags( domain );
+
                methods = domain->methods;

                /* Query display info */
-----------------------------------------------------------

Thanks,
Lin

-- 
Xandros Corporation
Simple. Powerful. Linux.
Visit us at http://www.xandros.com



More information about the samba-technical mailing list