Foreign Principal Mapping

Gerald (Jerry) Carter jerry at samba.org
Thu Oct 30 15:38:34 GMT 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Benjamin Bennett wrote:
| Hi Eric,
|   Shortly after setting foreign to true in source/smbd/sesssetup.c there
| is the following:
|     pw = Get_Pwnam(user);
|         if (!pw && !foreign) {
|                 pw = Get_Pwnam(client);
|                 SAFE_FREE(user);
|                 user = smb_xstrdup(client);
|         }
|
|    So in your case what is happening is this:
|     A) UREL\user lookup doesn't succeed.
|     B) foreign is false so realm is disregarded and
|        there's a lookup of user.

I recenly changed this code to match 'user' from foreign
realms as well based on compatibility with 2.2 installations.
Just so you know.




cheers, jerry
~ ----------------------------------------------------------------------
~ Hewlett-Packard            ------------------------- http://www.hp.com
~ SAMBA Team                 ---------------------- http://www.samba.org
~ GnuPG Key                  ---- http://www.plainjoe.org/gpg_public.asc
~ "You can never go home again, Oatman, but I guess you can shop there."
~                            --John Cusack - "Grosse Point Blank" (1997)

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQE/oTB5IR7qMdg1EfYRAp0/AJ9pHwEN3LisnuXWjSIMk1GZltO7mgCeId7+
74MkMq+Dpv0DSUawDgkCTd0=
=W7Dh
-----END PGP SIGNATURE-----




More information about the samba-technical mailing list