1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-26 21:57:41 +03:00

smbldap: Move ldapsam_privates to pdb_ldap.h

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>

Autobuild-User(master): Andreas Schneider <asn@cryptomilk.org>
Autobuild-Date(master): Tue Apr 18 22:52:03 CEST 2017 on sn-devel-144
This commit is contained in:
Volker Lendecke 2017-04-17 17:12:27 +02:00 committed by Andreas Schneider
parent 91e9ff9975
commit 4fe2b24b34
2 changed files with 30 additions and 30 deletions

View File

@ -58,36 +58,6 @@ struct smbldap_state {
struct timeval last_rebind; /* monotonic */
};
/* struct used by both pdb_ldap.c and pdb_nds.c */
struct ldapsam_privates {
struct smbldap_state *smbldap_state;
/* Former statics */
LDAPMessage *result;
LDAPMessage *entry;
int index;
const char *domain_name;
struct dom_sid domain_sid;
/* configuration items */
int schema_ver;
char *domain_dn;
/* Is this NDS ldap? */
int is_nds_ldap;
/* ldap server location parameter */
char *location;
struct {
char *filter;
LDAPMessage *result;
} search_cache;
};
/* The following definitions come from lib/smbldap.c */
NTSTATUS smbldap_init(TALLOC_CTX *mem_ctx,

View File

@ -26,6 +26,36 @@
#ifndef _PASSDB_PDB_LDAP_H_
#define _PASSDB_PDB_LDAP_H_
/* struct used by both pdb_ldap.c and pdb_nds.c */
struct ldapsam_privates {
struct smbldap_state *smbldap_state;
/* Former statics */
LDAPMessage *result;
LDAPMessage *entry;
int index;
const char *domain_name;
struct dom_sid domain_sid;
/* configuration items */
int schema_ver;
char *domain_dn;
/* Is this NDS ldap? */
int is_nds_ldap;
/* ldap server location parameter */
char *location;
struct {
char *filter;
LDAPMessage *result;
} search_cache;
};
/* The following definitions come from passdb/pdb_ldap.c */
const char** get_userattr_list( TALLOC_CTX *mem_ctx, int schema_ver );