samba 2.2.5-pre pdb_nisplus.c patch

Toomas Soome Toomas.Soome at microlink.ee
Fri Jun 7 02:32:01 GMT 2002


Indexed nisnane syntax is wrong in current code, there is patch. the
syntax is:
[colname=value, ... ],tablename. Also, make_nisname_from_uid() is not in
use.

cvs server: Diffing .
Index: pdb_nisplus.c
===================================================================
RCS file: /cvsroot/samba/source/passdb/pdb_nisplus.c,v
retrieving revision 1.1.2.19
diff -u -r1.1.2.19 pdb_nisplus.c
--- pdb_nisplus.c       2 May 2002 16:47:58 -0000       1.1.2.19
+++ pdb_nisplus.c       7 Jun 2002 09:28:53 -0000
@@ -130,19 +130,7 @@
 {
        static pstring nisname;
 
-       slprintf(nisname, sizeof(nisname)-1, "[user_rid=%d]%s", rid,
pfile);
-
-       return nisname;
-}
-
-/***************************************************************
- make_nisname_from_uid
- ****************************************************************/
-static char *make_nisname_from_uid(int uid, char *pfile)
-{
-       static pstring nisname;
-
-       slprintf(nisname, sizeof(nisname)-1, "[uid=%d]%s", uid, pfile);
+       slprintf(nisname, sizeof(nisname)-1, "[user_rid=%d],%s", rid,
pfile);
 
        return nisname;
 }
@@ -154,7 +142,7 @@
 {
        static pstring nisname;
 
-       slprintf(nisname, sizeof(nisname)-1, "[name=%s]%s", user_name,
pfile);
+       slprintf(nisname, sizeof(nisname)-1, "[name=%s],%s", user_name,
pfile);
 
        return nisname;
 }


toomas
-- 
In the Spring, I have counted 136
different kinds of weather inside of 24 hours.
		-- Mark Twain, on New England weather




More information about the samba-technical mailing list