search for: last_to

Displaying 2 results from an estimated 2 matches for "last_to".

Did you mean: last_io
1998 Jun 15
0
Username map issue with 1.9.18p8
...1.9.18p8/source/username.c Fri Jun 12 18:44:21 1998 +++ username.c Mon Jun 15 14:51:32 1998 @@ -46,7 +46,6 @@ ********************************************************************/ BOOL map_username(char *user) { - static int depth=0; static BOOL initialised=False; static fstring last_from,last_to; FILE *f; @@ -54,7 +53,7 @@ pstring buf; char *mapfile = lp_username_map(); - if (!*mapfile || depth) + if (!*mapfile) return False; if (!*user) @@ -82,8 +81,6 @@ DEBUG(4,("Scanning username map %s\n",mapfile)); - depth++; - while((s=fgets_slash(buf,sizeo...
1999 Sep 21
0
FW: Kerberos 5 with Samba, Can you help?
...me to a unix name by looking in the username map ********************************************************************/ + +#ifdef KRB5_AUTH +pstring mappedfrom_user=""; +#endif + BOOL map_username(char *user) { static BOOL initialised=False; @@ -67,6 +72,10 @@ if (strequal(user,last_to)) return False; + +#ifdef KRB5_AUTH + fstrcpy(mappedfrom_user, user); /* save kerberos principal name */ +#endif if (strequal(user,last_from)) { DEBUG(3,("Mapped user %s to %s\n",user,last_to)); -------------- next part -------------- Richard Kandarian http://www.lanl.gov...