コード例 #1
0
ファイル: passwd.c プロジェクト: silkentrance/nss-pam-ldap
/* 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));
}
コード例 #2
0
ファイル: hosts.c プロジェクト: silkentrance/nss-pam-ldap
/* 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));
}
コード例 #3
0
ファイル: aliases.c プロジェクト: silkentrance/nss-pam-ldap
/* 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));
}
コード例 #4
0
ファイル: passwd.c プロジェクト: silkentrance/nss-pam-ldap
/* 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));
}
コード例 #5
0
ファイル: passwd.c プロジェクト: cqcallaw/nss-pam-ldapd
/* 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));
}
コード例 #6
0
ファイル: hosts.c プロジェクト: silkentrance/nss-pam-ldap
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));
}