unable to do samrqueryuserinfo from W2k

Jim McDonough jmcd at us.ibm.com
Mon Mar 5 21:33:26 GMT 2001


Apparently, W2k is pickier than NT, and a typo in passdb/smbpass.c filling
in some unknown fields causes User Manager for Domains to complain when
looking at a user (so does a NetUserGetInfo api).  Gives a 1734 return
code.

--- /samba/orig/samba-2.2/source/passdb/smbpass.c  Fri Mar  2 15:43:10 2001
+++ passdb/smbpass.c     Mon Mar  5 14:29:29 2001
@@ -527,7 +527,7 @@
     user.hours_len = 21; /* 21 times 8 bits = 168 */
     memset(user.hours, 0xff, user.hours_len); /* available at all hours */
     user.unknown_5 = 0x00020000; /* don't know */
-    user.unknown_5 = 0x000004ec; /* don't know */
+    user.unknown_6 = 0x000004ec; /* don't know */

     return &user;
 }

I'm sure it was just a fat finger...

Jim

----------------------------
Jim McDonough
Linux Technology Center
IBM Boulder

Notes: Jim McDonough/Boulder/IBM @ IBMUS
VNET: JMCD at IBMUSM54
Internet: jmcd at us.ibm.com

Phone: (303) 924-5822
T/L: 263-5822





More information about the samba-technical mailing list