linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* Creating an NSS module
@ 2003-04-28 18:54 Darío Mariani
  2003-04-28 23:09 ` Glynn Clements
  0 siblings, 1 reply; 5+ messages in thread
From: Darío Mariani @ 2003-04-28 18:54 UTC (permalink / raw)
  To: linux-c-programming

  Hello:
  I'm creating an NSS module for the passwd and group databases. I 
implemented the following functions:

nss_status _nss_authon_setgrent()
nss_status _nss_authon_endgrent()
nss_status _nss_authon_getgrent_r (group * gr, char * buffer, size_t 
buflen, int * errnop)
nss_status _nss_authon_getgrnam_r (const char * name, struct group * gr, 
char * buffer, size_t buflen, int * errnop)
nss_status _nss_authon_getgrgid_r (const gid_t gid, struct group * gr, 
char * buffer, size_t buflen, int *errnop)

nss_status _nss_authon_setpwent()
nss_status _nss_authon_endpwent()
nss_status _nss_authon_getpwent_r (passwd * pw, char * buffer, size_t 
buflen, int * errnop)
nss_status _nss_authon_getpwnam_r (const char * name, struct passwd * 
result, char * buffer, size_t buflen, int * errnop)
nss_status _nss_authon_getpwuid_r (uid_t uid, passwd * result, char * 
buffer, size_t buflen, int * errnop)

The libc functions getgrent(), getgrnam(), getgrgid() and the finger 
command work, but the groups command doesn't and also the chgrp doesn't 
work for an user other than root. Any ideas on what happens? Am I 
missing some function?
Thanks,
            Darío

-
To unsubscribe from this list: send the line "unsubscribe linux-c-programming" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2003-08-05 17:00 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2003-04-28 18:54 Creating an NSS module Darío Mariani
2003-04-28 23:09 ` Glynn Clements
2003-05-21 15:05   ` Interprocess communication through stdin Darío Mariani
2003-05-21 17:43     ` Glynn Clements
2003-08-05 17:00   ` MIME library Darío Mariani

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).