On 6/6/05, Markus Natter <markus.natter@gmail.com> wrote:
On 6/6/05, Ti Kan <ti@amb.org> wrote:
Markus Natter writes:
... What does "ls" do to? I think it uses a kind of an abstraction layer, as it seems to ask any underlieing authentication mechanism and nscd..
The ls command does a stat(2) system call on each file or directory, gets the uid from the returned data, and then calls the getpwuid(3) to get the passwd data, which contains the login name. The getpwuid() function is NIS-aware (and I think LDAP as well).
-Ti
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
Ah ok.. I see,
I just expected a direct connection to PAM somehow..
Maybe I'd find some perl bindings to the getpwuid function. Looks like I'm the only one who's trying to get the username out of the UID..
Thanks a lot!
Markus
Cool, there a built-in perl function of the same name. And it's obviously LDAP aware.. it works.. :-) once again, thanks to all of you. Markus