~ubuntu-branches/ubuntu/lucid/samba/lucid-proposed

« back to all changes in this revision

Viewing changes to source/passdb/pdb_tdb.c

  • Committer: Bazaar Package Importer
  • Author(s): Adam Conrad
  • Date: 2005-07-21 17:53:23 UTC
  • mfrom: (0.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20050721175323-m3oh6aoigywohfnq
Tags: 3.0.14a-6ubuntu1
Resynchronise with Debian, resolving merge conflicts (#12360)

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
 * Unix SMB/CIFS implementation. 
3
3
 * SMB parameters and setup
4
4
 * Copyright (C) Andrew Tridgell   1992-1998
5
 
 * Copyright (C) Simo Sorce        2000-2002
 
5
 * Copyright (C) Simo Sorce        2000-2003
6
6
 * Copyright (C) Gerald Carter     2000
7
7
 * Copyright (C) Jeremy Allison    2001
8
8
 * Copyright (C) Andrew Bartlett   2002
42
42
#define PASSDB_FILE_NAME        "passdb.tdb"
43
43
#define USERPREFIX              "USER_"
44
44
#define RIDPREFIX               "RID_"
 
45
#define PRIVPREFIX              "PRIV_"
45
46
#define tdbsamver_t     int32
46
47
 
47
48
struct tdbsam_privates {
293
294
 Save a list of user keys for iteration.
294
295
****************************************************************/
295
296
 
296
 
static NTSTATUS tdbsam_setsampwent(struct pdb_methods *my_methods, BOOL update)
 
297
static NTSTATUS tdbsam_setsampwent(struct pdb_methods *my_methods, BOOL update, uint16 acb_mask)
297
298
{
298
299
        uint32 flags = update ? (O_RDWR|O_CREAT) : O_RDONLY;
299
300
        
704
705
}
705
706
 
706
707
 
 
708
 
 
709
 
 
710
/**
 
711
 * Init tdbsam backend
 
712
 *
 
713
 * @param pdb_context initialised passdb context
 
714
 * @param pdb_method backend methods structure to be filled with function pointers
 
715
 * @param location the backend tdb file location
 
716
 *
 
717
 * @return nt_status code
 
718
 **/
 
719
 
707
720
static NTSTATUS pdb_init_tdbsam(PDB_CONTEXT *pdb_context, PDB_METHODS **pdb_method, const char *location)
708
721
{
709
722
        NTSTATUS nt_status;