diff options
author | Arthur de Jong <arthur@arthurdejong.org> | 2006-12-25 21:30:19 +0100 |
---|---|---|
committer | Arthur de Jong <arthur@arthurdejong.org> | 2006-12-25 21:30:19 +0100 |
commit | 410b6fa99387e1fcfa786a571ac34f84547bfd1e (patch) | |
tree | fb626a86e6374164210718da1a2550e5d243396a /nslcd/ldap-nss.h | |
parent | 30263a59daa22a7f6814d36dde96e6f9d3188438 (diff) |
get rid of NSS_BUFSIZ, rename _nss_ldap_oc_check() to has_objectclass(), redo _nss_ldap_escape_string() with simpler logic and slightly different signature and redid layout of some code
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@203 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/ldap-nss.h')
-rw-r--r-- | nslcd/ldap-nss.h | 18 |
1 files changed, 3 insertions, 15 deletions
diff --git a/nslcd/ldap-nss.h b/nslcd/ldap-nss.h index b59d774..337de91 100644 --- a/nslcd/ldap-nss.h +++ b/nslcd/ldap-nss.h @@ -48,14 +48,6 @@ #include "ldap-schema.h" -#ifndef NSS_BUFSIZ -#define NSS_BUFSIZ 1024 -#endif - -#ifndef NSS_BUFLEN_GROUP -#define NSS_BUFLEN_GROUP LDAP_NSS_BUFLEN_GROUP -#endif - #ifndef LDAP_FILT_MAXSIZ #define LDAP_FILT_MAXSIZ 1024 #endif /* not LDAP_FILT_MAXSIZ */ @@ -544,11 +536,6 @@ enum nss_status _nss_ldap_getbyname (struct ldap_args * args, /* IN/OUT * enum ldap_map_selector sel, /* IN */ parser_t parser /* IN */ ); -int _nss_ldap_searchbyname(struct ldap_args *args, /* IN/OUT */ - const char *filterprot, /* IN */ - enum ldap_map_selector sel, /* IN */ - FILE *fp,NEWparser_t parser /* IN */ ); - /* parsing utility functions */ enum nss_status _nss_ldap_assign_attrvals (LDAPMessage * e, /* IN */ @@ -559,7 +546,6 @@ enum nss_status _nss_ldap_assign_attrvals (LDAPMessage * e, /* IN */ size_t * buflen, /* IN/OUT */ size_t * pvalcount /* OUT */ ); -int _nss_ldap_write_attrvals(FILE *fp,LDAPMessage *e,const char *attr); enum nss_status _nss_ldap_assign_attrval (LDAPMessage * e, /* IN */ const char *attr, /* IN */ @@ -576,7 +562,9 @@ enum nss_status _nss_ldap_assign_userpassword (LDAPMessage * e, /* IN */ char **buffer, /* IN/OUT */ size_t * buflen); /* IN/OUT */ -enum nss_status _nss_ldap_oc_check (LDAPMessage * e, const char *oc); +/* check that the entry has the specified objectclass + return 0 for false, not-0 for true */ +int has_objectclass(LDAPMessage *entry,const char *objectclass); int _nss_ldap_shadow_date(const char *val); void _nss_ldap_shadow_handle_flag(struct spwd *sp); |