1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-15 05:57:49 +03:00

460 Commits

Author SHA1 Message Date
Gerald Carter
f6c4f25e43 merge of get_dc_name()-like code from APP_HEAD; better support password server = DC1 *
(This used to be commit 6b18ca9511ddcf1718f222af3f61491d1e5f3b60)
2002-12-12 23:35:55 +00:00
Andrew Bartlett
8f84d170af Remove extra headers, and ensure that we correctly bail out of winbindd if we
can't create the socket.

Andrew Bartlett
(This used to be commit 13b9af53bff8e42126a38f93c3bdd5b4d9b20aba)
2002-12-01 03:14:30 +00:00
Andrew Bartlett
8963cf1e58 After consultation with tpot, remove the 'winbind_domain' environment
variable hack, the feild on the pipe, and the server-side.

It only controlled some enum operations in any case.

This is to try and have less 'magic' environment variables.

Andrew Bartlett
(This used to be commit e4be82e4e2c7cdf15f3e20f73fe9f281f6384423)
2002-11-26 12:04:16 +00:00
Andrew Bartlett
65643516d7 Having waited for *way* too long, this is mimir's namecache and trusted domain
cache code.

This uses gencache, mimir's new caching code that stores at text-based cache
of various data.

Mimir has done a *lot* of work on this patch, and it is finally time to
get it in CVS.

Andrew Bartlett
(This used to be commit 47f3bfe9564e7f3aff60cefaefd599e0abb30a31)
2002-11-26 11:57:30 +00:00
Gerald Carter
191dff2d27 [merge from APP_HEAD]
90% fix for CR 1076.  The password server parameter will no take things
like

        password server = DC1 *

which means to contact DC1 first and the go to auto lookup if it
fails.


jerry
(This used to be commit c31a17889e3e4daf7c1e807038efc2c0fba78be3)
2002-11-23 14:27:56 +00:00
Tim Potter
ce93216c93 Bug fix from appliance - we must initialise the winbindd server state
before reading smb.conf parameters, not after.
(This used to be commit 2beebe252f8fc76366d38024b0578f83d8542d1d)
2002-11-18 22:46:45 +00:00
Gerald Carter
74cdd691a9 enable enumeration of domain local groups using LDAP (and in a native mode domain)
(This used to be commit 3ac98b59632fd771b8819f88a479ef4c0daade68)
2002-11-15 17:56:21 +00:00
Jeremy Allison
250c980119 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
(This used to be commit 82b8f749a36b42e22186297482aad2abb04fab8a)
2002-11-12 23:15:52 +00:00
Gerald Carter
5d81628512 remove accidental debug code..
(This used to be commit d422a51b3a076b6398f7b755d16319d9e7c48c75)
2002-11-09 04:37:07 +00:00
Gerald Carter
cc9b6ef9ca defunct winbindd fix from APP_HEAD
(This used to be commit 488e985caa0b0e3e2a6665eb2515a2c99745d861)
2002-11-08 23:46:45 +00:00
Andrew Bartlett
c501ac2bfa Compleatly remove support for logfile truncation. All logs are opened for
append writes.

(blessed by jra)

Andrew Bartlett
(This used to be commit 81633064dd196c40541ecece8def51745f514646)
2002-11-08 23:05:34 +00:00
Tim Potter
fdfed5abe8 Remove lp_security() checks for winbindd as this is how we act as a PDC.
Keep the rest of the cleanups though.
(This used to be commit f0a1177acf82fceb174df1852d87a6e16d63fd63)
2002-11-07 07:23:37 +00:00
Tim Potter
bcf0c11e3d Call winbindd_param_init() earlier on in the piece so we don't get stuck in
the holding pattern when started up when security = user or security = ads.

Clean up return value of winbindd_common_init() - what a mess!
(This used to be commit 8a6d37752182e0de7fd04b2c31f90e145dde783b)
2002-11-07 01:06:38 +00:00
Tim Potter
ea24bb2da8 Merge of get_dc_list() api change. This was slightly more intrusive
than the version in APPLIANCE so watch out for boogs.
(This used to be commit 1e054e3db654801fbb5580211529cdfdea9ed686)
2002-11-06 01:29:07 +00:00
Tim Potter
f57d02eed3 Merge of lp_talloc_free() call in init_domain_list() from APPLIANCE.
(This used to be commit 48ed9dce0dab53066d3304baa0f24639a1f1755b)
2002-11-05 23:19:38 +00:00
Tim Potter
642ee6fb37 Fix --set-auth-user command to delete entries from the secrets file when an
empty username/password is passed on the command line.  Previously we were
leaving the domain name set and the password set to a NULL character.

Added a --get-auth-user command to display the restrict anonymous username
information.  Can only be run successfully by root.
(This used to be commit 0bb9bc196207fb35c9de6accbe101937a687762f)
2002-11-02 01:51:34 +00:00
Tim Potter
674790b7bd Some winbindd cleanups I made trying to fix cr1020:
- move winbindd client handling into accessor functions in
   winbindd_util.c

 - move some winbindd socket routines into accessor functions in
   winbindd_utils.c

(The deadlock situation mentioned in the appliance branch is probably
not applicable since we don't clear the connection cache on SIGHUP.
Perhaps we should?)
(This used to be commit 846b5494942c73e68616e7eae0d2fd5ae4b2bc05)
2002-11-02 01:35:18 +00:00
Tim Potter
aed20178df Handle the case where the password used in RPC connections (for restrict
anonymous support) is blank.
(This used to be commit 7badccda46a0837dd9da802b44c2fbcb4f38845a)
2002-11-02 01:05:47 +00:00
Andrew Bartlett
185a232ae0 Updates to winbind's PAM client and server - make the debug logs
work a bit better for password changing.

Andrew Bartlett
(This used to be commit 425782ba32554b90d592493a1928a926e492bb2a)
2002-10-26 00:55:14 +00:00
Andrew Tridgell
e53b7d6496 much simpler code to choose a DC to contact in winbindd. We now always
choose the server that has the most bits in common in its IP with one
of our interfaces.
(This used to be commit 31774dce67844b67cb405e65f307a20354f2cedb)
2002-10-23 03:37:51 +00:00
Andrew Tridgell
ef372e36f0 if trusted domains are disabled then we should not try to connect to
them in winbindd
(This used to be commit 6c7748b001836e4aa3e23dedfe28db3c8acc197a)
2002-10-23 00:23:30 +00:00
Herb Lewis
955003ebce must add one to the extra_data size to transfer the 0 string terminator.
This was causing "wbinfo --sequence" to access past the end of malloced
memory.
(This used to be commit 4125c582aaf86ee5d92b0c800266543a390aefce)
2002-10-18 23:52:05 +00:00
Gerald Carter
e1096e6936 NULL enum_local_groups for ads winbindd (temporary workaround).
(This used to be commit 06eea39abdb49d9d547707dcb170c988d7276c1d)
2002-10-18 17:42:41 +00:00
Jeremy Allison
389a16d9d5 Added new error codes. Fix up connection code to retry in the same way
that app-head does.
Jeremy.
(This used to be commit b521abd86b10573ca8f9116907c81e6deb55f049)
2002-10-17 17:10:29 +00:00
Andrew Tridgell
d0c11644dc - we need to rescan the trusted domain list regularly to cope with
transitive trusts, and trusts that are added while winbindd is running

- removed an unnecessary call to time()
(This used to be commit 14489ff30bb9eca2c55d36a69c0b45a2db339061)
2002-10-15 23:44:15 +00:00
Jeremy Allison
04b02e86ac Fix spelling of background_process.
Jeremy.
(This used to be commit 94fc0ea9f99bc73486ef374a84d2c20ce895ee14)
2002-10-15 21:34:40 +00:00
Jeremy Allison
2e86b6bcc8 Change to use sys_read/sys_write.
Jeremy.
(This used to be commit 042890056d5d4128eaaca346e7898ccda860dbe2)
2002-10-15 21:33:20 +00:00
Gerald Carter
876afb5d0f merge from APP_HEAD
* s/driverlocation/comment
* detect native mode domain and enumerate local groups

Also

* Added sendfile stats from SAMBA_2_2
(This used to be commit 764b58e2c0b3179cffe157c0ab58761b156b8423)
2002-10-08 18:29:57 +00:00
Jelmer Vernooij
222075ee27 Don't use usage function, but use popt for usage and help info
(This used to be commit a0e0f3b293a71ee6a7bb0edb626c5e16cb803830)
2002-10-05 16:10:36 +00:00
Gerald Carter
fac6a13fd3 fix typo
(This used to be commit 38a956c79bbdb5e1eedfcb1cf3ad4f7c906d0cf7)
2002-10-04 21:46:27 +00:00
Gerald Carter
d2eae2a299 merge native_mode flag in winbindd_domain struct from app-head
(This used to be commit dd948a302ad6bd4307ecdfb10510e12185150eae)
2002-10-04 21:39:09 +00:00
Gerald Carter
83e58265b5 merge of new client side support the Win2k LSARPC UUID in rpcbind
from APP_HEAD
(This used to be commit 38c9e4299845fd77cc8629945ce2d259489f7437)
2002-10-04 03:51:43 +00:00
Jeremy Allison
919a78f005 Doh ! Lookup name before checking negative cache (the way Tim originally
had it...).
Jeremy.
(This used to be commit 6929b65954ff5b94d11db79c8fc6a295311c238f)
2002-10-01 23:07:00 +00:00
Jeremy Allison
d2c0dca984 Fix memory leak in getting DC list. Remember to exclude failed lookups.
Jeremy.
(This used to be commit c4fcbb2948beb3b6594d53a7ffdc8b94fd0d94e0)
2002-09-30 23:16:42 +00:00
Andrew Bartlett
7e4afe5381 Move a number of ADS related functions out into utility libs, so that things
like metze's sam_ads can also use them.

Also add error checking etc to a few more functions.

Andrew Bartlett
(This used to be commit c864edf4fbf8a6c37888a14b861d7c12cf503d4f)
2002-09-27 12:23:47 +00:00
Gerald Carter
b55a4ca644 fix getpass replacement check (i thought I fixed this a few days
ago....)
(This used to be commit 1b55965f12dc2ede46ca2dbc82acbf56b7e33e2e)
2002-09-25 15:46:49 +00:00
Jeremy Allison
f63ed5295a Moved -ve cache check to correct place.
Jeremy.
(This used to be commit 38c67632ade40413c0cc2b91e04105e4065a18b7)
2002-09-24 22:56:59 +00:00
Jeremy Allison
fe92e9caed Reverted my earlier change. It was incorrect. We must be protected by
pidfile before doing secrets_init().
Jeremy.
(This used to be commit f8a0e6ad8b25d405ff2bcb492974d2f0bef81036)
2002-09-17 20:53:21 +00:00
Jeremy Allison
fa184ea169 Only create the pidfile once we're ready to receive requests.
This allows external programs to correctly synchronise with us.
Jeremy.
(This used to be commit ffb7632d05191342ecfc5f78fbfd7beacfe257ad)
2002-09-17 20:47:59 +00:00
Andrew Tridgell
b33681fc0b Add clock skew handling to our kerberos code. This allows us to cope with
the DC being out of sync with the local machine.
(This used to be commit 0d28d769472ea3b98ae4c8757093dfd4499f6dd1)
2002-09-17 12:12:50 +00:00
Jelmer Vernooij
479e82b8d8 Put unixsocket calls between #ifdef HAVE_UNIXSOCKET's - required for Stratus VOS
(Double checked)
(This used to be commit dc3c14fc2b661a62a1876149e96af6de07a2c4a6)
2002-09-15 17:49:53 +00:00
Tim Potter
21a738b8d0 Merge undone cleanups.
(This used to be commit d87c1f507d38444e627bce59b6c765d9c9479ac6)
2002-09-12 05:39:55 +00:00
Tim Potter
a9b450cba8 Merge of winbind auth cleanups from appliance.
(This used to be commit 26d486aa740e283f546efc1f2ca40af3452a4f52)
2002-09-12 04:30:23 +00:00
Tim Potter
b060593287 Merge of cut&paste fix from appliance.
(This used to be commit f75d61b03a3377f3a791b56fc307dc7e56e4707a)
2002-09-12 01:44:53 +00:00
Tim Potter
bb6d5bfce2 Spelling fix.
(This used to be commit d9fa865e5ce8ba0b7539f9a218fc7dd132eb3d38)
2002-09-12 01:25:50 +00:00
Tim Potter
6b694ec39c Put pid number in invalid request size debug.
(This used to be commit e63afabf98350353fac79ffc2ae2ddf88d61260f)
2002-09-11 03:57:19 +00:00
Tim Potter
7c152afe16 Bugfix merge:
>Initialise user_rid value in WINBIND_USERINFO structure returned by
>the rpc version of query_user().  This fixes a caching bug found by
>Gavrie Philipson from disksite.
(This used to be commit 77bde1fa33cc387accda8f38bf654377310f5dbe)
2002-09-11 03:53:41 +00:00
Andrew Bartlett
8352336ad0 This is the 'main' inclue for for winbind clients - all clients should include
only this file, and not any others.  It includes the function prototypes.
(Forgot to commit with earlier patch)

Andrew Bartlett
(This used to be commit 3ec3861445e7da1347c3b5ba180b33441f59640c)
2002-09-07 09:25:36 +00:00
Andrew Bartlett
9378cbb019 Don't leak file desciptors in this (impossible?) error case.
(This used to be commit b440418f13b840860be42690bf475c1ee3cb3647)
2002-09-07 06:04:28 +00:00
Andrew Bartlett
885f4f9379 Winbind client-side cleanups.
The global winbind file descriptor can cause havoc in some situations -
particulary when it becomes 0, 1 or 2.  This patch (based on some very nice
work by Hannes Schmidt <mail@schmidt-net.via.t-online.de>) starts to recitfy
the problem by ensuring that the close-on-exec flag is set, and that we move
above 3 in the file descriptor table.

I've also decided that the PAM module can close it's pipe handle on every
request - this isn't performance-critical code.

The next step is to do the same for nss_winbind.  (But things like getent()
might get in our way there).

This also cleans up some function prototypes, puts them in just one place.

Andrew Bartlett
(This used to be commit 442eb39657b98f67cd229ed3110b63aae8bf4e3c)
2002-09-07 05:41:23 +00:00