1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-23 09:57:40 +03:00

1603 Commits

Author SHA1 Message Date
Andrew Bartlett
d15ea4fa8e Ensure we fill in the %U for NTLMSSP connections -
Andrew Tridgell
7d94f1b736 added a REALLY gross hack into kerberos_kinit_password so that
winbindd can do a kinit
this will be removed once we have code that gets a tgt
and puts it in a place where cyrus-sasl can see it
-
Herb Lewis
8aafec95cb Merge from 2.2
If you do not have one more expect than issue when talking to the passwd
program you will not send the last issue.
-
Jean-François Micouleau
6c87e96149 added a boolean to the group mapping functions to specify if we need or
not the privileges. Usually we don't need them, so the memory is free
early.

lib/util_sid.c: added some helper functions to check an SID.

passdb/passdb.c: renamed local_lookup_rid() to local_lookup_sid() and pass
an RID all the way. If the group doesn't exist on the domain SID,
don't return a faked one as it can collide with a builtin one. Some rpc
structures have been badly designed, they return only rids and force the
client to do subsequent lsa_lookup_sid() on the domain sid and the builtin
sid !

rpc_server/srv_util.c: wrote a new version of get_domain_user_groups().
Only the samr code uses it atm. It uses the group mapping code instead of
a bloody hard coded crap. The netlogon code will use it too, but I have to
do some test first.

	J.F.
-
Jeremy Allison
b926660e73 Stop using getgrgid() - a very expensive call with winbindd, to look up
a group name.
Jeremy.
-
Jeremy Allison
708c0a8d16 Moved name_is_local to the correct place. Ooops.
Jeremy.
-
Jeremy Allison
8d41dfd149 Tidyup of lib/username. Add name_is_local fn to determine if name is
winbindd. Getting ready for efficiency fix in group lookups.
Jeremy.
-
Jean-François Micouleau
bc28a8eebd added a tdb to store the account policy informations.
You can change them with either usermanager->policies->account
or from a command prompt on NT/W2K: net accounts /domain

we can add a rpc accounts to the net command. As the net_rpc.c is still
empty, I did not start. How should I add command to it ? Should I take the
rpcclient/cmd_xxx functions and call them from there ?

alse changed the SAM_UNK_INFO_3 parser, it's an NTTIME. This one is more
for jeremy ;-)

        J.F.
-
Jeremy Allison
ce099faf6c XFS quota patch for Linux.
Jeremy.
-
Tim Potter
9712d3f15a Renamed sid field in SEC_ACE to trustee to be more in line with MS's
definitions.
-
Andrew Bartlett
8f9ce71781 Make better use of the ads_init() function to get the kerberos relam etc.
This allows us to use automagically obtained values in future, and the value
from krb5.conf now.

Also fix mem leaks etc.

Andrew Bartlett
-
Andrew Tridgell
23ef22f117 fixed some krb5 ifdefs -
Jeremy Allison
c7dd0364f2 space -> tab.
Jeremy.
-
Jeremy Allison
0187d4ba16 Spelling pedents strike again :-).
Jeremy.
-
Jeremy Allison
1f3dcd99bd Ensure the CAN_WRITE is checked and prevents O_CREAT and O_TRUNC from
being set. Also prevent an open on a file on a readonly share from
setting delete on close.
Jeremy.
-
Jeremy Allison
b69127391b Re-added "Share modes" meaning don't allow deny mode conflict. Due to
user demand (don't talk to me about removing parameters.... :-).
Jeremy.
-
Andrew Tridgell
3b3f8a9350 always send an OID list until we handle raw (unwrapped) NTLMSSP
packets in session setup
-
Jeremy Allison
8150f0f3f7 Fix for the logic bug wrt. existant oplocks. See long message
in samba-technical for explaination.
Jeremy.
-
Jeremy Allison
014b0973a3 nsswitch/winbindd_group.c nsswitch/winbindd_user.c: formatting fixups.
smbd/open.c: Fix "delete on close" for directories.
Jeremy.
-
Andrew Tridgell
37aa2873e5 fixed another memory leak -
Andrew Tridgell
5abf844203 more memory leak fixes -
Andrew Tridgell
00e4f0c803 don't try to auto-change the trust password unless we are in domain
security
-
Andrew Tridgell
477b6d27fd we can safely give NO_SUCH_USER if the ticket decodes but the local
account doesn't exist
-
Tim Potter
4ab9ca31a0 Another merge from appliance-head: in [ug]id_to_sid don't call the
winbind function if the id is obviously going to be local.  Cleanup
of winbind [ug]id parameter handling.
-
Tim Potter
d6318add27 challange -> challenge -
Tim Potter
778f5f77a6 Got medieval on another pointless extern. Removed extern struct ipzero
and replaced with two functions:

	void zero_ip(struct in_adder *ip);
	BOOL is_zero_ip(struct in_addr ip);
-
Andrew Bartlett
782835470c This compleats the of the authenticaion subystem into the new 'auth'
subdirectory.

(The insertion of these files was done with some CVS backend magic, hence the
lack of a commit message).

This also moves libsmb/domain_client_validate.c back into auth_domain.c,
becouse we no longer share it with winbind.

Andrew Bartlett
-
Andrew Tridgell
2e916222a9 fixed spnego, non-kerberos negprot -
Andrew Tridgell
5a735a88e4 added 'security=ADS' -
Jeremy Allison
97dca242a9 #ifdefed DMF fix so not compiled by default. We need to look at this...
Jeremy.
-
Andrew Bartlett
9807e66f34 Add the PDC end of the smbtorture test for creating an NT_STATUS -> DOS error
map.

This little authentication module is #ifdef DEVELOPER, becouse it really is of
no use execept as a development tool

invoke by setting:

auth methods = guest sam name_to_ntstatus

in the smb.conf file (the SAM and guest elements are required for the member
server to authenticate itself).

Andrew Bartlett
-
Jeremy Allison
84b62d3c8e I think this is a fix for the "out of space" errors with oplocks=no.
Jeremy.
-
Andrew Tridgell
058a5aee90 added "net join" command
this completes the first stage of the smbd ADS support
-
Andrew Tridgell
ad7afbfdea removed unused function -
Andrew Bartlett
324c467628 And add the winbind module I missed in the last run.
(large change to modularise the auth subsystem)

Andrew Bartlett
-
Andrew Bartlett
8d31eae52a This is another rather major change to the samba authenticaion
subystem.

The particular aim is to modularized the interface - so that we
can have arbitrary password back-ends.

This code adds one such back-end, a 'winbind' module to authenticate
against the winbind_auth_crap functionality.  While fully-functional
this code is mainly useful as a demonstration, because we don't get
back the info3 as we would for direct ntdomain authentication.

This commit introduced the new 'auth methods' parameter, in the
spirit of the 'auth order' discussed on the lists.  It is renamed
because not all the methods may be consulted, even if previous
methods fail - they may not have a suitable challenge for example.

Also, we have a 'local' authentication method, for old-style
'unix if plaintext, sam if encrypted' authentication and a
'guest' module to handle guest logins in a single place.

While this current design is not ideal, I feel that it does
provide a better infrastructure than the current design, and can
be built upon.

The following parameters have changed:
 - use rhosts =

  This has been replaced by the 'rhosts' authentication method,
 and can be specified like 'auth methods = guest rhosts'

 - hosts equiv =

  This needs both this parameter and an 'auth methods' entry
  to be effective.  (auth methods = guest hostsequiv ....)

 - plaintext to smbpasswd =

  This is replaced by specifying 'sam' rather than 'local'
  in the auth methods.

The security = parameter is unchanged, and now provides defaults
for the 'auth methods' parameter.

The available auth methods are:

guest
rhosts
hostsequiv
sam (passdb direct hash access)
unix (PAM, crypt() etc)
local (the combination of the above, based on encryption)
smbserver (old security=server)
ntdomain (old security=domain)
winbind (use winbind to cache DC connections)


Assistance in testing, or the production of new and interesting
authentication modules is always appreciated.

Andrew Bartlett
-
Jeremy Allison
a58d0f91f9 Fixed delete on close bug. Added core dump code to winbindd.
Jeremy.
-
Tim Potter
8fc772c9e5 Removed TimeInit() call from every client program (except for one place
in smbd/process.c where the timezone is reinitialised.  Was replaced with
check for a static is_initialised boolean.
-
Gerald Carter
b51e5b07d9 WITH_MSDFS is not define anywhere. It's built by default. -
Tim Potter
edb556b474 More spelling fixes, comment reformatting. -
Tim Potter
096868bd35 Spelling fix, reformatted comment. -
Tim Potter
3d87c1a244 Fixed sizeof vs array length bug in make_user_info_winbind_crap()
Spelling fix.
-
Andrew Tridgell
1cbc18ae73 add a hook to save the krb5 PAC -
Martin Pool
d51ef6bfa3 Move all other paths into dynconfig -
Tim Potter
507ef80f48 Cosmetic fix for debug statement. -
Tim Potter
2e89165f22 Don't resolve the hostname in smbd as we can pause for a long time while
waiting for DNS timeouts to occur.  The correct place to do this is in the
code that displays the session information.
-
Martin Pool
868999ad3c LIBDIR and LOCKDIR are dynamically configured too. -
Martin Pool
79ec88f0da Store some path names in global variables initialized to configure
default, rather than in preprocessor macros.
-
Jeremy Allison
9148bb9eaa Tidyups when I was doing the big merge...
Jeremy.
-
Jeremy Allison
a55a63a4ca Fix detection of RedHat 7.2.
Remove unused old file.
Test 42 byte reply to SMBntcreate (W2K does this).
Jeremy.
-