1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00
samba-mirror/source3/rpc_parse
Gerald Carter 9fede0dc0d Large commit which restructures the local password storage API.
Currently the only backend which works is smbpasswd (tdb, LDAP, and NIS+)
are broken, but they were somewhat broken before. :)

The following functions implement the storage manipulation interface

/*The following definitions come from  passdb/pdb_smbpasswd.c  */

BOOL pdb_setsampwent (BOOL update);
void pdb_endsampwent (void);
SAM_ACCOUNT* pdb_getsampwent (void);
SAM_ACCOUNT* pdb_getsampwnam (char *username);
SAM_ACCOUNT* pdb_getsampwuid (uid_t uid);
SAM_ACCOUNT* pdb_getsampwrid (uint32 rid);
BOOL pdb_add_sam_account (SAM_ACCOUNT *sampass);
BOOL pdb_update_sam_account (SAM_ACCOUNT *sampass, BOOL override);
BOOL pdb_delete_sam_account (char* username);

There is also a host of pdb_set..() and pdb_get..() functions for
manipulating SAM_ACCOUNT struct members.  Note that the struct
passdb_ops {} has gone away.  Also notice that struct smb_passwd
(formally in smb.h) has been moved to passdb/pdb_smbpasswd.c
and is not accessed outisde of static internal functions in this
file.  All local password searches should make use of the the SAM_ACCOUNT
struct and the previously mentioned functions.

I'll write some documentation for this later.  The next step is to fix
the TDB passdb backend, then work on spliting the backends out into
share libraries, and finally get the LDAP backend going.

What works and may not:

	o domain logons from Win9x 	works
	o domain logons from WinNT 4	works
	o user and group enumeration
		as implemented by Tim	works
	o file and print access		works
	o changing password from
		Win9x & NT		ummm...i'll fix this tonight :)

If I broke anything else, just yell and I'll fix it.  I think it
should be fairly quite.





-- jerry
(This used to be commit 0b92d0838e)
2000-11-13 23:03:34 +00:00
..
.cvsignore get away with dummy and .dummy files 1998-09-29 04:52:17 +00:00
parse_creds.c Adding Herb's compile warning fixes to HEAD. 2000-10-04 01:03:23 +00:00
parse_dfs.c Back to building. Now to test with insure. 2000-06-01 18:17:22 +00:00
parse_lsa.c last part of W2K support. 2000-10-13 14:02:01 +00:00
parse_misc.c printing/nt_printing.c: use getpwuid not smbgetpwuid. Canonicalize printernames. 2000-11-10 19:36:34 +00:00
parse_net.c Large commit which restructures the local password storage API. 2000-11-13 23:03:34 +00:00
parse_prs.c last part of W2K support. 2000-10-13 14:02:01 +00:00
parse_reg.c Added Shirish's reg changes to HEAD. Sync up with 2.2.0 backport. 2000-05-15 20:53:08 +00:00
parse_rpc.c Tidyup removing many of the 0xC0000000 | NT_STATUS_XXX stuff (only need NT_STATUS_XXX). 2000-08-01 18:32:34 +00:00
parse_samr.c Large commit which restructures the local password storage API. 2000-11-13 23:03:34 +00:00
parse_sec.c Merge of printer security descriptor, info level and printerdata 2000-11-07 02:54:50 +00:00
parse_spoolss.c rpc_parse/parse_spoolss.c: Updated comment for old version of W2K. 2000-11-10 21:24:09 +00:00
parse_srv.c Added info level 1005 to netsharegetinfo (is the share a DFS root) 2000-04-28 18:36:47 +00:00
parse_wks.c acconfig.h configure configure.in: Added check for UT_SYSLEN for utmp code. 2000-03-22 19:03:12 +00:00