1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54
|
#ifndef _LDAP_NSS_LDAP_LDAP_AUTOMOUNT_H
#define _LDAP_NSS_LDAP_LDAP_AUTOMOUNT_H
struct ldap_automount_context {
ent_context_t *lac_state;
char **lac_dn_list;
size_t lac_dn_size;
size_t lac_dn_count;
size_t lac_dn_index;
};
typedef struct ldap_automount_context ldap_automount_context_t;
NSS_STATUS _nss_ldap_am_context_alloc(ldap_automount_context_t **pContext);
void _nss_ldap_am_context_free(ldap_automount_context_t **pContext);
NSS_STATUS _nss_ldap_am_context_init(const char *mapname, ldap_automount_context_t **pContext);
#ifdef HAVE_NSS_H
NSS_STATUS _nss_ldap_setautomntent(const char *mapname, void **context);
NSS_STATUS _nss_ldap_getautomntent(void *context, const char **key, const char **value,
char *buffer, size_t buflen, int *errnop);
NSS_STATUS _nss_ldap_endautomntent(void **context);
NSS_STATUS _nss_ldap_getautomntbyname_r(void *private, const char *key,
const char **canon_key, const char **value,
char *buffer, size_t buflen, int *errnop);
#endif
#endif
|