Exemplo n.º 1
0
/* read password data from an opened stream */
static nss_status_t passwd_getpwent(nss_backend_t *be,void *args)
{
  NSS_GETENT(LDAP_BE(be)->fp,NSLCD_ACTION_PASSWD_ALL,
             READ_RESULT(LDAP_BE(be)->fp));
}
Exemplo n.º 2
0
static nss_status_t passwd_getpwnam(nss_backend_t UNUSED(*be),void *args)
{
  NSS_BYNAME(NSLCD_ACTION_PASSWD_BYNAME,
             NSS_ARGS(args)->key.name,
             READ_RESULT(fp));
}
Exemplo n.º 3
0
static nss_status_t passwd_getpwuid(nss_backend_t UNUSED(*be),void *args)
{
  NSS_BYTYPE(NSLCD_ACTION_PASSWD_BYUID,
             NSS_ARGS(args)->key.uid,uid_t,
             READ_RESULT(fp));
}
Exemplo n.º 4
0
static nss_status_t read_result(TFILE *fp, nss_XbyY_args_t *args)
{
  READ_RESULT(passwd, &args->erange);
}