linux-c-programming.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: "Darío Mariani" <dmarian@fi.uba.ar>
To: linux-c-programming@vger.kernel.org
Subject: Creating an NSS module
Date: Mon, 28 Apr 2003 15:54:41 -0300	[thread overview]
Message-ID: <3EAD78F1.9050408@fi.uba.ar> (raw)

  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

             reply	other threads:[~2003-04-28 18:54 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-04-28 18:54 Darío Mariani [this message]
2003-04-28 23:09 ` Creating an NSS module 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

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=3EAD78F1.9050408@fi.uba.ar \
    --to=dmarian@fi.uba.ar \
    --cc=linux-c-programming@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).