This commit is number 4 of 4.
authorAndrew Bartlett <abartlet@samba.org>
Mon, 29 Oct 2001 07:35:11 +0000 (07:35 +0000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 29 Oct 2001 07:35:11 +0000 (07:35 +0000)
commitc95f5aeb9327347674589ae313b75bee3bf8e317
tree0505b2c1b8d7b725283549796d18a1c00d3e181c
parente7634f81c5116ff4addfb7e495f54b6bb78e8f77
This commit is number 4 of 4.

In particular this commit focuses on:

Actually adding the 'const' to the passdb interface, and the flow-on changes.

Also kill off the 'disp_info' stuff, as its no longer used.

While these changes have been mildly tested, and are pretty small, any
assistance in this is appreciated.

----

These changes introduces a large dose of 'const' to the Samba tree.
There are a number of good reasons to do this:

- I want to allow the SAM_ACCOUNT structure to move from wasteful
pstrings and fstrings to  allocated strings.  We can't do that if
people are modifying these outputs, as they may well make
assumptions about getting pstrings and fstrings

- I want --with-pam_smbpass to compile with a slightly sane
volume of warnings, currently its  pretty bad, even in 2.2
where is compiles at all.

- Tridge assures me that he no longer opposes 'const religion'
based on the ability to  #define const the problem away.

- Changed Get_Pwnam(x,y) into two variants (so that the const
parameter can work correctly): - Get_Pwnam(const x) and
Get_Pwnam_Modify(x).

- Reworked smbd/chgpasswd.c to work with these mods, passing
around a 'struct passwd' rather  than the modified username

---

This finishes this line of commits off, your tree should now compile again :-)

Andrew Bartlett
23 files changed:
source/auth/auth_sam.c
source/auth/pampass.c
source/lib/replace.c
source/lib/username.c
source/lib/util.c
source/libsmb/smbdes.c
source/libsmb/smbencrypt.c
source/nsswitch/wb_client.c
source/passdb/ldap.c
source/passdb/nispass.c
source/passdb/pampass.c
source/passdb/passdb.c
source/passdb/pdb_ldap.c
source/passdb/pdb_nisplus.c
source/passdb/pdb_smbpasswd.c
source/passdb/pdb_tdb.c
source/rpc_parse/parse_net.c
source/rpc_parse/parse_samr.c
source/rpc_server/srv_netlog_nt.c
source/rpc_server/srv_pipe.c
source/rpc_server/srv_util.c
source/smbd/auth_smbpasswd.c
source/smbd/chgpasswd.c