summaryrefslogtreecommitdiff
path: root/nslcd/ldap-nss.h
diff options
context:
space:
mode:
authorArthur de Jong <arthur@arthurdejong.org>2007-07-26 16:00:59 +0000
committerArthur de Jong <arthur@arthurdejong.org>2007-07-26 16:00:59 +0000
commit0f64fdb18864f3211844742029c5b94c5b6c48c2 (patch)
tree4dae6f35148cfa061f314eca1b23a2231a6a18bc /nslcd/ldap-nss.h
parente89ff82e87617f17091212a512f11666b931623a (diff)
get rid of default and override attribute value mappings and remove host and port configuration options
git-svn-id: http://arthurdejong.org/svn/nss-pam-ldapd/nss-ldapd@330 ef36b2f9-881f-0410-afb5-c4e39611909c
Diffstat (limited to 'nslcd/ldap-nss.h')
-rw-r--r--nslcd/ldap-nss.h45
1 files changed, 9 insertions, 36 deletions
diff --git a/nslcd/ldap-nss.h b/nslcd/ldap-nss.h
index 5a86eb5..28c9c59 100644
--- a/nslcd/ldap-nss.h
+++ b/nslcd/ldap-nss.h
@@ -52,10 +52,6 @@
#define LDAP_FILT_MAXSIZ 1024
#endif /* not LDAP_FILT_MAXSIZ */
-#ifndef LDAPS_PORT
-#define LDAPS_PORT 636
-#endif /* not LDAPS_PORT */
-
#ifdef __GNUC__
#define alignof(ptr) __alignof__(ptr)
#elif defined(HAVE_ALIGNOF_H)
@@ -88,27 +84,11 @@ enum ldap_map_selector
LM_PROTOCOLS,
LM_RPC,
LM_ETHERS,
- LM_NETMASKS,
- LM_BOOTPARAMS,
LM_ALIASES,
LM_NETGROUP,
LM_NONE
};
-enum ldap_userpassword_selector
-{
- LU_RFC2307_USERPASSWORD,
- LU_RFC3112_AUTHPASSWORD,
- LU_OTHER_PASSWORD
-};
-
-enum ldap_shadow_selector
-{
- LS_RFC2307_SHADOW,
- LS_AD_SHADOW,
- LS_OTHER_SHADOW
-};
-
/*
* POSIX profile information (not used yet)
* see draft-joslin-config-schema-00.txt
@@ -125,13 +105,6 @@ struct ldap_service_search_descriptor
struct ldap_service_search_descriptor *lsd_next;
};
-#include "cfg.h"
-
-#if defined(__GLIBC__) && __GLIBC_MINOR__ > 1
-#else
-#define ss_family sa_family
-#endif /* __GLIBC__ */
-
enum ldap_session_state
{
LS_UNINITIALIZED = -1,
@@ -162,20 +135,14 @@ enum ldap_args_types
LA_TYPE_STRING_AND_STRING,
LA_TYPE_NUMBER_AND_STRING,
LA_TYPE_TRIPLE,
- LA_TYPE_STRING_LIST_OR,
- LA_TYPE_STRING_LIST_AND,
- LA_TYPE_NONE
+ LA_TYPE_STRING_LIST_OR
};
enum ldap_map_type
{
MAP_ATTRIBUTE = 0,
MAP_OBJECTCLASS,
- MAP_OVERRIDE,
- MAP_DEFAULT,
- MAP_ATTRIBUTE_REVERSE,
- MAP_OBJECTCLASS_REVERSE, /* XXX not used yet? */
- MAP_MAX = MAP_OBJECTCLASS_REVERSE
+ MAP_MAX = MAP_OBJECTCLASS
};
struct ldap_args
@@ -225,7 +192,7 @@ struct ldap_args
* or per-subsystem/per-thread, depending on the OS). State is the state
* of a particular lookup, and is only concerned with resolving and enumerating
* services. State is represented as instances of struct ldap_state; context as
- * instances of struct ent_context. The latter contains the former.
+ * instances of struct ent_context. The context contains the state.
*/
struct ldap_state
{
@@ -333,6 +300,12 @@ enum nss_status _nss_ldap_search_s (const struct ldap_args * args, /* IN */
int sizelimit, /* IN */
LDAPMessage ** res /* OUT */ );
+
+int _nss_ldap_searchbyname(
+ struct ldap_args *args,const char *filterprot,
+ enum ldap_map_selector sel,TFILE *fp,NEWparser_t parser);
+
+
/*
* Emulate X.500 read operation.
*/