Exemple #1
0
/* read password data from an opened stream */
nss_status_t _nss_ldap_getpwent_r(
        struct passwd *result,
        char *buffer,size_t buflen,int *errnop)
{
  NSS_GETENT(pwentfp,NSLCD_ACTION_PASSWD_ALL,
             read_passwd(pwentfp,result,buffer,buflen,errnop));
}
Exemple #2
0
/* this function only returns addresses of the AF_INET address family */
nss_status_t _nss_ldap_gethostent_r(
        struct hostent *result,
        char *buffer,size_t buflen,int *errnop,int *h_errnop)
{
  NSS_GETENT(hostentfp,NSLCD_ACTION_HOST_ALL,
             read_hostent_nextonempty(hostentfp,AF_INET,result,buffer,buflen,errnop,h_errnop));
}
Exemple #3
0
/* read a single alias entry from the stream */
nss_status_t _nss_ldap_getaliasent_r(
        struct aliasent *result,
        char *buffer,size_t buflen,int *errnop)
{
  NSS_GETENT(aliasentfp,NSLCD_ACTION_ALIAS_ALL,
             read_aliasent(aliasentfp,result,buffer,buflen,errnop));
}
Exemple #4
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));
}
Exemple #5
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, args));
}
Exemple #6
0
static nss_status_t hosts_gethostent(nss_backend_t *be,void *args)
{
  NSS_GETENT(LDAP_BE(be)->fp,NSLCD_ACTION_HOST_ALL,
             READ_RESULT_NEXTONEMPTY(LDAP_BE(be)->fp));
}