summaryrefslogtreecommitdiffstats
path: root/source/rpc_parse/parse_misc.c
diff options
context:
space:
mode:
authorLuke Leighton <lkcl@samba.org>2000-01-02 20:25:52 +0000
committerLuke Leighton <lkcl@samba.org>2000-01-02 20:25:52 +0000
commite09062fff3b08f78ff78b02b806989b5e1781895 (patch)
treef3eb9289e546a87f355c29daaa84b411947049ae /source/rpc_parse/parse_misc.c
parent76af9b889abb74909d6c252147376395179ca120 (diff)
downloadsamba-e09062fff3b08f78ff78b02b806989b5e1781895.tar.gz
samba-e09062fff3b08f78ff78b02b806989b5e1781895.tar.xz
samba-e09062fff3b08f78ff78b02b806989b5e1781895.zip
ok. the smb-fileserver-only saga continues.
noticed that there is an "update encrypted" option, and assumed that this was a "migrate passwords" option. on this basis, i didn't want "encrypt passwords = no", "security = user/share" "update encrypted = no" to be dependent on dce/rpc NETLOGON services, but i ALSO didn't want "update encrypted = yes" to have to write to the smbp passwd interface, i'm trying very hard to get rid of that. so, under the circumstances where "update enc = yes", but "enc pwd = no", i decided to add a "General" Logon type info level (4) to NetrSamLogon, client and server side. this passes a CLEARTEXT password across the \PIPE\NETLOGON on loop-back (which still requires a trust account pasword, which i MAY change to use to encrypt the cleartext password anyway). i have no idea what a _real_ general Logon type actually looks like, and i couldn't care less at this stage because it's used on loop-back. whe "update enc = yes" and "enc pwd = no", nt clients are told to send cleartext passwords. these are sent over a General Logon on loop-back; the netlogon daemon receives them, does a *unix* password check, and *also* does an update encrypted password. this is a reasonable compromise. if you're not intending to migrate to smb passwords, you don't need to run "update encrypted". all it means is that you would have to run the netlogon daemon a little bit earlier. normally, you would have to start the netlogon daemon when switching to "enc pwd = yes", but instead you have tostart it on "update end = yes". big deal :) the only thing that bothers me is that i thought "update encrypted" was actually "migrate passwords", so unless the smbpasswd entry is already in there, the general login fails because there is still a requirement to have an smbpasswd entry in netlogon daemon. doesn't matter at the moment. next stage, password changing. replace all password changes in smbd/lanman.c and anywhere else i can find them with samr_change_user_passwd instead.
Diffstat (limited to 'source/rpc_parse/parse_misc.c')
-rw-r--r--source/rpc_parse/parse_misc.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/source/rpc_parse/parse_misc.c b/source/rpc_parse/parse_misc.c
index b38f55983de..8e647962967 100644
--- a/source/rpc_parse/parse_misc.c
+++ b/source/rpc_parse/parse_misc.c
@@ -779,6 +779,8 @@ creates a STRING2 structure.
********************************************************************/
BOOL make_string2(STRING2 *str, const char *buf, int len)
{
+ ZERO_STRUCTP(str);
+
/* set up string lengths. */
str->str_max_len = len;
str->undoc = 0;