diff options
author | Andrew Bartlett <abartlet@samba.org> | 2001-11-26 06:47:04 +0000 |
---|---|---|
committer | Andrew Bartlett <abartlet@samba.org> | 2001-11-26 06:47:04 +0000 |
commit | 4499007e45637f172c4afb0ec2e048cf795a3cbe (patch) | |
tree | 3baebd215a4f88e90800c8811f54f916ceb2c526 /source3/param | |
parent | a131c2cfdcd4e10d85e21bcf4b3e45b99054a96c (diff) | |
download | samba-4499007e45637f172c4afb0ec2e048cf795a3cbe.tar.gz samba-4499007e45637f172c4afb0ec2e048cf795a3cbe.tar.bz2 samba-4499007e45637f172c4afb0ec2e048cf795a3cbe.zip |
A number of things to clean up the auth subsytem a bit...
We now default encrypt passwords = yes
We now check plaintext passwords (however aquired) with the 'sam' backend
rather than unix, if encrypt passwords = yes.
(this kills off the 'local' backed. The sam backend may be renamed in its
place)
The new 'samstrict' wrapper backend checks that the user's domain is one of
our netbios aliases - this ensures that we don't get fallback crazies with
security = domain.
Similarly, the code in the 'ntdomain' and 'smbserver' backends now checks
that the user was not local before contacting the DC.
The default ordering has changed, we now check the local stuff first - but
becouse of the changes above, we will really only ever contact one
auth source.
Andrew Bartlett
(This used to be commit e89b47f65e7eaf5eb288a3d6ba2d3d115c628e7e)
Diffstat (limited to 'source3/param')
-rw-r--r-- | source3/param/loadparm.c | 28 |
1 files changed, 27 insertions, 1 deletions
diff --git a/source3/param/loadparm.c b/source3/param/loadparm.c index 393c4a74a2..9d8a4abc5e 100644 --- a/source3/param/loadparm.c +++ b/source3/param/loadparm.c @@ -1238,7 +1238,7 @@ static void init_globals(void) Globals.minprotocol = PROTOCOL_CORE; Globals.security = SEC_USER; Globals.paranoid_server_security = True; - Globals.bEncryptPasswords = False; + Globals.bEncryptPasswords = True; Globals.bUpdateEncrypt = False; Globals.bReadRaw = True; Globals.bWriteRaw = True; @@ -3850,3 +3850,29 @@ void get_private_directory(pstring privdir) { pstrcpy (privdir, lp_private_dir()); } + + +/**************************************************************** + Is netbios alias or name +*****************************************************************/ + +BOOL is_netbios_alias_or_name(char *name) +{ + char **netbios_aliases = lp_netbios_aliases(); + + if (StrCaseCmp(name, global_myname) == 0) { + return True; + } + + for (netbios_aliases = lp_netbios_aliases(); + netbios_aliases && *netbios_aliases; + netbios_aliases++) { + if (StrCaseCmp(name, *netbios_aliases) == 0) { + return True; + } + } + + return False; +} + + |