2003-08-13 01:53:07 +00:00
/*
* Unix SMB / CIFS implementation .
* secrets . tdb file format info
* Copyright ( C ) Andrew Tridgell 2000
*
* This program is free software ; you can redistribute it and / or modify it
* under the terms of the GNU General Public License as published by the
2007-07-10 03:04:16 +00:00
* Free Software Foundation ; either version 3 of the License , or ( at your
2003-08-13 01:53:07 +00:00
* option ) any later version .
*
* This program is distributed in the hope that it will be useful , but WITHOUT
* ANY WARRANTY ; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE . See the GNU General Public License for
* more details .
*
* You should have received a copy of the GNU General Public License along with
2007-07-10 05:23:25 +00:00
* this program ; if not , see < http : //www.gnu.org/licenses/>.
2003-08-13 01:53:07 +00:00
*/
2012-07-14 22:22:37 +10:00
# ifndef _SOURCE4_PARAM_SECRETS_H
# define _SOURCE4_PARAM_SECRETS_H
2003-08-13 01:53:07 +00:00
2005-01-21 11:31:35 +00:00
# define SECRETS_PRIMARY_DOMAIN_DN "cn=Primary Domains"
2005-10-20 03:55:35 +00:00
# define SECRETS_PRINCIPALS_DN "cn=Principals"
2005-03-23 01:30:43 +00:00
# define SECRETS_PRIMARY_DOMAIN_FILTER "(&(flatname=%s)(objectclass=primaryDomain))"
# define SECRETS_PRIMARY_REALM_FILTER "(&(realm=%s)(objectclass=primaryDomain))"
2005-10-20 03:55:35 +00:00
# define SECRETS_KRBTGT_SEARCH "(&((|(realm=%s)(flatname=%s))(samAccountName=krbtgt)))"
2005-10-20 05:08:24 +00:00
# define SECRETS_PRINCIPAL_SEARCH "(&(|(realm=%s)(flatname=%s))(servicePrincipalName=%s))"
2009-10-22 18:21:50 +11:00
# define SECRETS_LDAP_FILTER "(&(objectclass=ldapSecret)(cn=SAMDB Credentials))"
2005-03-23 01:30:43 +00:00
2007-11-29 16:01:16 +01:00
struct loadparm_context ;
2008-12-29 20:24:57 +01:00
struct tevent_context ;
2010-09-23 17:01:44 +10:00
struct ldb_message ;
struct ldb_context ;
2010-11-27 19:32:03 +01:00
# include "librpc/gen_ndr/misc.h"
2011-05-03 13:24:10 +10:00
bool randseed_init ( TALLOC_CTX * mem_ctx , struct loadparm_context * lp_ctx ) ;
2020-02-04 16:14:55 +01:00
struct ldb_context * secrets_db_create ( TALLOC_CTX * mem_ctx ,
struct loadparm_context * lp_ctx ) ;
2010-10-11 16:43:07 +11:00
struct ldb_context * secrets_db_connect ( TALLOC_CTX * mem_ctx , struct loadparm_context * lp_ctx ) ;
2010-02-18 10:54:53 +11:00
struct dom_sid * secrets_get_domain_sid ( TALLOC_CTX * mem_ctx ,
struct loadparm_context * lp_ctx ,
const char * domain ,
2010-09-13 12:15:52 +10:00
enum netr_SchannelType * sec_channel_type ,
2010-02-18 10:54:53 +11:00
char * * errstring ) ;
2010-09-23 17:01:44 +10:00
char * keytab_name_from_msg ( TALLOC_CTX * mem_ctx , struct ldb_context * ldb , struct ldb_message * msg ) ;
2007-09-08 13:34:42 +00:00
2006-03-07 13:36:26 +00:00
2012-07-14 22:22:37 +10:00
# endif /* _SOURCE4_PARAM_SECRETS_H */