This patch works towards to goal of common code shared between idmap_ldap
[kai/samba.git] / source3 / include / smbldap.h
index 987206b45055d7899efa163b79f60fd46220c6cb..31f8d33b88c96dd649bfc57b696b2248fe3ae1b9 100644 (file)
@@ -92,6 +92,18 @@ typedef struct _attrib_map_entry {
        const char      *name;
 } ATTRIB_MAP_ENTRY;
 
+
+struct smbldap_state {
+       LDAP *ldap_struct;
+       time_t last_ping;
+       /* retrive-once info */
+       const char *uri;
+       char *bind_dn;
+       char *bind_secret;
+
+       unsigned int num_failures;
+};
+
 /* structures */
 
 extern ATTRIB_MAP_ENTRY attrib_map_v22[];
@@ -109,8 +121,7 @@ const char* get_attr_key2string( ATTRIB_MAP_ENTRY table[], int key );
 char** get_attr_list( ATTRIB_MAP_ENTRY table[] );
 void free_attr_list( char **list );
 BOOL fetch_ldap_pw(char **dn, char** pw);
-void ldap_set_mod (LDAPMod *** modlist, int modop, const char *attribute, const char *value);
-
+void smbldap_set_mod (LDAPMod *** modlist, int modop, const char *attribute, const char *value);
 
 #endif /* _SMBLDAP_H */