2003-08-13 05:53:07 +04: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 07:04:16 +04:00
* Free Software Foundation ; either version 3 of the License , or ( at your
2003-08-13 05:53:07 +04: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 09:23:25 +04:00
* this program ; if not , see < http : //www.gnu.org/licenses/>.
2003-08-13 05:53:07 +04:00
*/
2012-07-14 16:22:37 +04:00
# ifndef _SOURCE4_PARAM_SECRETS_H
# define _SOURCE4_PARAM_SECRETS_H
2003-08-13 05:53:07 +04:00
2005-01-21 14:31:35 +03:00
# define SECRETS_PRIMARY_DOMAIN_DN "cn=Primary Domains"
2005-10-20 07:55:35 +04:00
# define SECRETS_PRINCIPALS_DN "cn=Principals"
2005-03-23 04:30:43 +03:00
# define SECRETS_PRIMARY_DOMAIN_FILTER "(&(flatname=%s)(objectclass=primaryDomain))"
# define SECRETS_PRIMARY_REALM_FILTER "(&(realm=%s)(objectclass=primaryDomain))"
2005-10-20 07:55:35 +04:00
# define SECRETS_KRBTGT_SEARCH "(&((|(realm=%s)(flatname=%s))(samAccountName=krbtgt)))"
2005-10-20 09:08:24 +04:00
# define SECRETS_PRINCIPAL_SEARCH "(&(|(realm=%s)(flatname=%s))(servicePrincipalName=%s))"
2009-10-22 11:21:50 +04:00
# define SECRETS_LDAP_FILTER "(&(objectclass=ldapSecret)(cn=SAMDB Credentials))"
2005-03-23 04:30:43 +03:00
2007-11-29 18:01:16 +03:00
struct loadparm_context ;
2008-12-29 22:24:57 +03:00
struct tevent_context ;
2010-09-23 11:01:44 +04:00
struct ldb_message ;
struct ldb_context ;
2010-11-27 21:32:03 +03:00
# include "librpc/gen_ndr/misc.h"
2011-05-03 07:24:10 +04:00
bool randseed_init ( TALLOC_CTX * mem_ctx , struct loadparm_context * lp_ctx ) ;
2020-02-04 18:14:55 +03:00
struct ldb_context * secrets_db_create ( TALLOC_CTX * mem_ctx ,
struct loadparm_context * lp_ctx ) ;
2010-10-11 09:43:07 +04:00
struct ldb_context * secrets_db_connect ( TALLOC_CTX * mem_ctx , struct loadparm_context * lp_ctx ) ;
2010-02-18 02:54:53 +03:00
struct dom_sid * secrets_get_domain_sid ( TALLOC_CTX * mem_ctx ,
struct loadparm_context * lp_ctx ,
const char * domain ,
2010-09-13 06:15:52 +04:00
enum netr_SchannelType * sec_channel_type ,
2010-02-18 02:54:53 +03:00
char * * errstring ) ;
2010-09-23 11:01:44 +04:00
char * keytab_name_from_msg ( TALLOC_CTX * mem_ctx , struct ldb_context * ldb , struct ldb_message * msg ) ;
2007-09-08 17:34:42 +04:00
2006-03-07 16:36:26 +03:00
2012-07-14 16:22:37 +04:00
# endif /* _SOURCE4_PARAM_SECRETS_H */