1
0
mirror of https://github.com/samba-team/samba.git synced 2025-12-06 16:23:49 +03:00
Commit Graph

5995 Commits

Author SHA1 Message Date
Andrew Tridgell
09127d85dc portability fixes -
Andrew Tridgell
b14ae49502 fixed typo -
Andrew Tridgell
0c1f90402b add popt build dependency -
Andrew Tridgell
db0bee1c68 move popt out of proto objs -
Andrew Tridgell
a1304be045 added HAVE_LDAP_H check -
Andrew Tridgell
d7216424d9 check for liblber separately -
Jeremy Allison
97dca242a9 #ifdefed DMF fix so not compiled by default. We need to look at this...
Jeremy.
-
Jeremy Allison
4aca67761f Use "password server" for searching for BDC's also as Tim suggested.
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
-
Andrew Bartlett
c28956d860 oops, I forgot to include the header file -
Andrew Bartlett
adc7a6048c Add a new torture test to extract a NT->DOS error map from an NT member of a
samba domain.

The PDC must be running a special authenticaion module that spits out NT errors
based on username.

Andrew Bartlett
-
Andrew Bartlett
ea0331354e Unless the error is exactly NT_STATUS_OK, we might not have a server info, so
we need to bail here.
-
Jeremy Allison
84b62d3c8e I think this is a fix for the "out of space" errors with oplocks=no.
Jeremy.
-
Andrew Bartlett
3f1cfb62e8 Fix ./configure --enable-developer warnings (shadow of global) -
Andrew Tridgell
b390d6eef9 better help -
Andrew Tridgell
720c50a751 use generate_random_str() -
Andrew Tridgell
f482583139 added "net ads user" and "net ads group" commands -
Andrew Tridgell
ae0eabd04c added "net ads status" command -
Andrew Tridgell
2f8fa175b1 made a "net ads" command, currently with "net ads join" and "net ads leave" -
Andrew Tridgell
1a5ef24257 stop popt from doing its own intl stuff -
Andrew Tridgell
69d256af46 better auto-selection of realm and ldap server -
Andrew Tridgell
058a5aee90 added "net join" command
this completes the first stage of the smbd ADS support
-
Andrew Tridgell
ad7afbfdea removed unused function -
Andrew Tridgell
0f88d9c50e rewrote net.c
The rewrite fixes a number of things:

- much better command line parsing
- fixed usage of static and const
- better finding of hosts
- clean internal separation of sub-functions
- expandable design
-
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
-
Andrew Bartlett
e8e73f7f0f Kill off that crazy copy_sam_passwd(). You simply can't do that if the
structre contains pointers (well not if you intend of free those pointers
at some stage)

There is no reason (given the new passdb interface) that you can't modify a
SAM_ACCOUNT in any case.

Andrew Bartlett
-
Jean-François Micouleau
1748d5a2af added lsaenumprivsaccount and lsalookupprivvalue to rpcclient
and more to come ...

	J.F.
-
Jeremy Allison
fe288b14cc Sorry. I broke the build, missed on open_directory call.
Jeremy.
-
Jean-François Micouleau
75ee50bbef return NO_MORE_ENTRIES in lsa_enum_trust_dom. UserManager is happier :-)
J.F.
-
Jean-François Micouleau
f29774e589 Changed how the privileges are stored in the group mapping code. It's now
an array of uint32. That's not perfect but that's better.

Added more privileges too.

Changed the local_lookup_rid/name functions in passdb.c to check if the
group is mapped. Makes the LSA rpc calls return correct groups

Corrected the return code in the LSA server code enum_sids.

Only enumerate well known aliases if they are mapped to real unix groups.
Won't confuse user seeing groups not available.

Added a short/long view to smbgroupedit.

now decoding rpc calls to add/remove privileges to sid.

        J.F.
-
Jeremy Allison
a58d0f91f9 Fixed delete on close bug. Added core dump code to winbindd.
Jeremy.
-
Jeremy Allison
20a4167599 Set type to NOTUSED if lookup fail.
Jeremy.
-
Andrew Bartlett
f199e95182 Update some of the error mapping, based on on-the-wire observations of an NT4 server.
This lets our Win9X clients give sane error messages when you get passwords wrong
and the like.

Andrew Bartlett
-
Tim Potter
80dca2c9e4 Finally worked out why a enumerate trusted domains was returning a
NT_STATUS_UNABLE_TO_FREE_VM error.  This error code was mis-defined
as 0x8000001a instead of 0xc000001a.  The former is actually a
NT_STATUS_NO_MORE_ENTRIES warning which is what we see in the status
code.

Removed the & 0xffffff from the loop in get_nt_error_msg() as all the
error constants now have the correct high bits set.
-
Tim Potter
6ce1eec09d Added constants and error message for dos error code 1326 (logon failure). -
Martin Pool
53963eae7d Reference about SIDs from tpot. -
Martin Pool
a875b3a6e7 More better now. -
Tim Potter
72060a6f5a Got rid of that stupid parse_domain_user() warning when compiling
winbindd.
-
Martin Pool
6ddd8e7bf6 Quieten gcc const warning.
doxyfy.
-
Martin Pool
61dba52a54 Finish 1.45 by removing redundant sid->string conversion in
winbindd_lookup_sid_by_name.  Also if the lookup fails then clobber
the output parameters rather than leaving them looking potentially
valid.

Add doxygen.
-
Martin Pool
1393c7c4ed I think you were passing the name of the SID, rather than the DOM_SID
pointer itself.  (Whatever that is.... ;-)
-
Tim Potter
039ea0a0b9 Don't initialise static pointers to NULL. -
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.
-
Tim Potter
8f01a8b078 Fixed check machine account function. -
Tim Potter
5d343b4065 Ignore *.po files. -
Jean-François Micouleau
646651018a added lsa_enum_sids to rpcclient
fixed lsa_enum_rpivs server code. This time it works as W2K.
fixed smbgroupedit to compile and work.

	J.F.
-
Tim Potter
d1dee2d032 Removed unused variable. -
Tim Potter
d2034bc5f7 Oops - opening wrong pipe name in cli_lsa_initialise() helper function. -
Jean-François Micouleau
f2766932d6 fixing enum_privs and get_dispname server code.
That works as expected now.

	J.F.
-