diff options
author | Luke Leighton <lkcl@samba.org> | 2000-01-31 03:39:40 +0000 |
---|---|---|
committer | Luke Leighton <lkcl@samba.org> | 2000-01-31 03:39:40 +0000 |
commit | 3ee6f6b4d8ca813785db844c828e0c9c3efd16f0 (patch) | |
tree | 6d59f9f918a71fcce2538522ef88ede009fa858f /source/locking | |
parent | 7d0ab2b8a2b231505fcacb674e48226702977ec4 (diff) | |
download | samba-3ee6f6b4d8ca813785db844c828e0c9c3efd16f0.tar.gz |
started on samtdb.
- added a passdb_path() function, returns a path to the password directory,
currently same as lock_path()
- added an extra parameter (void*) to tdb_traverse(), needed instead of
having to provide static data structures accessed by the higher order
function, you pass in a void* pointer and that gets called in to the
traverse function.
- created a unistr2upper which is a botch-job, it won't cope with non-ascii
alphabets. oh well.
- hack-job creates sam.tdb which contains SIDs for the main sam domain
(global_sam_name) and the BUILTIN domain.
- got _samr_connect() and _samr_connect_anon() working. and _samr_close().
and _samr_lookup_domain(). and _samr_enum_domains(). that concludes
the necessary work for the first level. the next level is, say...
_samr_open_domain() and associated routines, which is going to be fun,
including samr_enum_dom_users() etc...
Diffstat (limited to 'source/locking')
-rw-r--r-- | source/locking/locking.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/source/locking/locking.c b/source/locking/locking.c index 7add6388f56..f53fd745639 100644 --- a/source/locking/locking.c +++ b/source/locking/locking.c @@ -480,7 +480,7 @@ static void (*traverse_callback)(share_mode_entry *, char *); traverse the whole database with this function, calling traverse_callback on each share mode ****************************************************************************/ -static int traverse_fn(TDB_CONTEXT *db, TDB_DATA kbuf, TDB_DATA dbuf) +static int traverse_fn(TDB_CONTEXT *db, TDB_DATA kbuf, TDB_DATA dbuf, void *state) { struct locking_data *data; share_mode_entry *shares; @@ -505,5 +505,5 @@ int share_mode_forall(void (*fn)(share_mode_entry *, char *)) { if (!tdb) return 0; traverse_callback = fn; - return tdb_traverse(tdb, traverse_fn); + return tdb_traverse(tdb, traverse_fn, NULL); } |