1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-31 17:18:04 +03:00
Commit Graph

6866 Commits

Author SHA1 Message Date
Andrew Tridgell
0b2763260e we can safely give NO_SUCH_USER if the ticket decodes but the local
account doesn't exist
(This used to be commit 477b6d27fd)
2001-11-26 04:37:24 +00:00
Tim Potter
64dd6c3412 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.
(This used to be commit 4ab9ca31a0)
2001-11-26 04:27:51 +00:00
Tim Potter
178f6a64b2 challange -> challenge
(This used to be commit d6318add27)
2001-11-26 04:05:28 +00:00
Tim Potter
abe6aff924 Merge from appliance-head: when creating a default security descriptor
for a printer, save it in ntprinters.tdb instead of recreating it
every time it is required.  This can save at least one winbind lookup
per secdesc creation.  Opening a port monitor and viewing the security
tab in the properties dialog required the security descriptor to be
returned 25 times!
(This used to be commit f85c976acc)
2001-11-26 03:39:16 +00:00
Tim Potter
585d0efbc6 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);
(This used to be commit 778f5f77a6)
2001-11-26 03:11:44 +00:00
Andrew Bartlett
8b7434b2a0 Fix up the build farm again.
This should get us 'green' for once...

Andrew Bartlett
(This used to be commit 042b9e3a63)
2001-11-26 02:10:59 +00:00
Tim Potter
5c7016d5cb dyn_CONFIGFILE fixups.
(This used to be commit 7d10fa2082)
2001-11-26 02:01:00 +00:00
Tim Potter
9aa4342bae Fixed compiler warnings and dyn_CONFIGFILE related breakage.
(This used to be commit bf491d2aa2)
2001-11-26 01:59:33 +00:00
Andrew Bartlett
f6e94b64b4 And delete domain_client_validate.c...
Andrew Bartlett
(This used to be commit 6caca4301b)
2001-11-26 01:37:44 +00:00
Andrew Bartlett
e75ad578d2 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
(This used to be commit 782835470c)
2001-11-26 01:37:01 +00:00
Tim Potter
19b9f9fbae Removed bogus SAFE_FREE() call of talloced return data from
winbindd_lookup_usergroups()
(This used to be commit dd2048c418)
2001-11-26 01:20:57 +00:00
Tim Potter
4348dfe7af Ignore *.po files.
(This used to be commit 091f01f34a)
2001-11-26 01:17:03 +00:00
Tim Potter
26ef1afa2e Fixed some indentation.
(This used to be commit 1dd462844a)
2001-11-26 00:58:43 +00:00
Andrew Tridgell
26f1e3f83c use DEBUG() not d_printf() in libraries
(This used to be commit 5100ae4ae0)
2001-11-26 00:45:51 +00:00
Andrew Tridgell
03439e1836 fixed spnego, non-kerberos negprot
(This used to be commit 2e916222a9)
2001-11-26 00:43:37 +00:00
Tim Potter
f45c2e52b7 Allow lookup of users with spaces in their name.
(This used to be commit 751ea8cfb9)
2001-11-26 00:19:23 +00:00
Tim Potter
4e512ab75d Fixed compiler warning.
Why do people keep adding stuff to includes.h (OK I am guilty of this too)?
It's getting really huge and full of random junk.  )-:

I've noticed TNG have started to split stuff up in to individual header
files included as needed.
(This used to be commit 36630f3984)
2001-11-25 23:33:15 +00:00
Andrew Tridgell
481c644b7b added 'security=ADS'
(This used to be commit 5a735a88e4)
2001-11-25 23:05:13 +00:00
Volker Lendecke
2e686c98d1 Minor typos
(This used to be commit 1c9d951f86)
2001-11-25 18:54:04 +00:00
Volker Lendecke
64bfd85d95 Don't close tdb twice.
(This used to be commit 6dda341bc8)
2001-11-25 18:49:20 +00:00
Andrew Tridgell
660fa6632e portability fixes
(This used to be commit 09127d85dc)
2001-11-25 13:36:02 +00:00
Andrew Tridgell
2ff1b666c1 fixed typo
(This used to be commit b14ae49502)
2001-11-25 13:32:28 +00:00
Andrew Tridgell
af56b0f02a add popt build dependency
(This used to be commit 0c1f90402b)
2001-11-25 12:56:04 +00:00
Andrew Tridgell
69aaccde3b move popt out of proto objs
(This used to be commit db0bee1c68)
2001-11-25 12:46:14 +00:00
Andrew Tridgell
0b5f228d30 added HAVE_LDAP_H check
(This used to be commit a1304be045)
2001-11-25 12:40:23 +00:00
Andrew Tridgell
e9595e5517 check for liblber separately
(This used to be commit d7216424d9)
2001-11-25 12:26:40 +00:00
Jeremy Allison
391a72a95f #ifdefed DMF fix so not compiled by default. We need to look at this...
Jeremy.
(This used to be commit 97dca242a9)
2001-11-25 08:26:37 +00:00
Jeremy Allison
86dee43f39 Use "password server" for searching for BDC's also as Tim suggested.
Jeremy.
(This used to be commit 4aca67761f)
2001-11-25 06:38:17 +00:00
Andrew Bartlett
1b1b8e39b2 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
(This used to be commit 9807e66f34)
2001-11-25 03:01:14 +00:00
Andrew Bartlett
e92823610a oops, I forgot to include the header file
(This used to be commit c28956d860)
2001-11-25 02:58:15 +00:00
Andrew Bartlett
a71f3f66a1 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
(This used to be commit adc7a6048c)
2001-11-25 02:35:37 +00:00
Andrew Bartlett
97346ea795 Unless the error is exactly NT_STATUS_OK, we might not have a server info, so
we need to bail here.
(This used to be commit ea0331354e)
2001-11-25 02:30:30 +00:00
Jeremy Allison
a8982ca90c I think this is a fix for the "out of space" errors with oplocks=no.
Jeremy.
(This used to be commit 84b62d3c8e)
2001-11-25 02:23:22 +00:00
Andrew Bartlett
b47f6a4448 Fix ./configure --enable-developer warnings (shadow of global)
(This used to be commit 3f1cfb62e8)
2001-11-25 02:08:43 +00:00
Andrew Tridgell
354cdfa8f8 better help
(This used to be commit b390d6eef9)
2001-11-25 01:42:29 +00:00
Andrew Tridgell
a83e7725c4 use generate_random_str()
(This used to be commit 720c50a751)
2001-11-25 01:36:02 +00:00
Andrew Tridgell
cb697dd72a added "net ads user" and "net ads group" commands
(This used to be commit f482583139)
2001-11-25 01:31:07 +00:00
Andrew Tridgell
3906f9dff6 added "net ads status" command
(This used to be commit ae0eabd04c)
2001-11-25 01:06:56 +00:00
Andrew Tridgell
9255dc9a14 made a "net ads" command, currently with "net ads join" and "net ads leave"
(This used to be commit 2f8fa175b1)
2001-11-25 00:18:11 +00:00
Andrew Tridgell
7b288fe17b stop popt from doing its own intl stuff
(This used to be commit 1a5ef24257)
2001-11-25 00:10:28 +00:00
Andrew Tridgell
f2e969268d better auto-selection of realm and ldap server
(This used to be commit 69d256af46)
2001-11-25 00:08:48 +00:00
Andrew Tridgell
ad2974cd05 added "net join" command
this completes the first stage of the smbd ADS support
(This used to be commit 058a5aee90)
2001-11-24 14:16:41 +00:00
Andrew Tridgell
0ebb29e032 removed unused function
(This used to be commit ad7afbfdea)
2001-11-24 13:58:40 +00:00
Andrew Tridgell
3c63b841cc 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
(This used to be commit 0f88d9c50e)
2001-11-24 13:26:01 +00:00
Andrew Bartlett
4f37307452 And add the winbind module I missed in the last run.
(large change to modularise the auth subsystem)

Andrew Bartlett
(This used to be commit 324c467628)
2001-11-24 12:16:27 +00:00
Andrew Bartlett
d0a2faf78d 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
(This used to be commit 8d31eae52a)
2001-11-24 12:12:38 +00:00
Andrew Bartlett
af1a0238aa 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
(This used to be commit e8e73f7f0f)
2001-11-24 00:36:37 +00:00
Jean-François Micouleau
ca477a61e7 added lsaenumprivsaccount and lsalookupprivvalue to rpcclient
and more to come ...

	J.F.
(This used to be commit 1748d5a2af)
2001-11-24 00:13:41 +00:00
Jeremy Allison
b9a82592f6 Sorry. I broke the build, missed on open_directory call.
Jeremy.
(This used to be commit fe288b14cc)
2001-11-23 19:07:35 +00:00
Jean-François Micouleau
7e1dce1de8 return NO_MORE_ENTRIES in lsa_enum_trust_dom. UserManager is happier :-)
J.F.
(This used to be commit 75ee50bbef)
2001-11-23 15:17:30 +00:00