2006-03-14 18:03:25 +03:00
/*
Unix SMB / CIFS implementation .
interface functions for the sam database
Copyright ( C ) Andrew Tridgell 2004
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 Free Software Foundation ; either version 2 of the License , or
( at your 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 this program ; if not , write to the Free Software
Foundation , Inc . , 675 Mass Ave , Cambridge , MA 0213 9 , USA .
*/
# ifndef __SAMDB_H__
# define __SAMDB_H__
struct auth_session_info ;
2007-01-11 13:21:38 +03:00
struct dsdb_extended_replicated_object ;
struct dsdb_extended_replicated_objects ;
# include "librpc/gen_ndr/security.h"
# include "lib/ldb/include/ldb.h"
# include "librpc/gen_ndr/samr.h"
# include "librpc/gen_ndr/drsuapi.h"
# include "librpc/gen_ndr/drsblobs.h"
# include "dsdb/schema/schema.h"
# include "dsdb/samdb/samdb_proto.h"
2006-03-14 18:03:25 +03:00
2007-01-06 13:15:02 +03:00
# define DSDB_EXTENDED_REPLICATED_OBJECTS_OID "1.3.6.1.4.1.7165.4.4.1"
2007-01-09 14:15:56 +03:00
struct dsdb_extended_replicated_object {
struct ldb_message * msg ;
2007-01-11 12:45:30 +03:00
struct ldb_val guid_value ;
2007-01-13 13:53:12 +03:00
const char * when_changed ;
2007-01-11 12:45:30 +03:00
struct replPropertyMetaDataBlob * meta_data ;
2007-01-09 14:15:56 +03:00
} ;
2007-01-06 13:15:02 +03:00
struct dsdb_extended_replicated_objects {
2007-01-13 14:37:13 +03:00
/*
* this is the version of the dsdb_extended_replicated_objects
* version 0 : initial implementation
*/
# define DSDB_EXTENDED_REPLICATED_OBJECTS_VERSION 0
uint32_t version ;
2007-01-07 22:11:27 +03:00
struct ldb_dn * partition_dn ;
2007-01-09 14:15:56 +03:00
2007-01-12 19:02:10 +03:00
const struct repsFromTo1 * source_dsa ;
2007-01-12 16:17:25 +03:00
const struct drsuapi_DsReplicaCursor2CtrEx * uptodateness_vector ;
2007-01-09 14:15:56 +03:00
uint32_t num_objects ;
struct dsdb_extended_replicated_object * objects ;
2007-01-06 13:15:02 +03:00
} ;
2006-03-14 18:03:25 +03:00
# endif /* __SAMDB_H__ */