need understanding of getpwnam_alloc

Gerald (Jerry) Carter jerry at samba.org
Fri Nov 9 03:14:55 GMT 2007


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

Dan Wong wrote:

> Can someone explain how getpwnam_alloc works?

Itr's just a getpwnam() call that allocated a struct passwd
rather than using static memory.

> My assumption is with winbind authentication, winbind 
> retrieves a user account security data structure(mem_ctx)
> from the domain controller. This structure is all the
> info related to the user (windows ACEs,etc).
>  The getpwnam_alloc just checks if this security data 
> structure belongs to user that is being authenticated.

The getpwnam() call is to obtain the uid, primary gid and
other UNIX attributes for the user.

> Please advise if I'm off track.

getpwnam() goes through NSS.  Mayke sure that nss_winbind
is installed and working properly.




cheers, jerry
- --
=====================================================================
Samba                                    ------- http://www.samba.org
Centeris                         -----------  http://www.centeris.com
"What man is a man who does not make the world better?"      --Balian
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHM9CvIR7qMdg1EfYRAvi+AJ9XCJ1VV9y5TDqTgnhUAMvRFNxb/ACfVgws
Tei6EmoDN9wzAOD+nyIeWsE=
=BIE+
-----END PGP SIGNATURE-----


More information about the samba-technical mailing list