1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-05 20:58:40 +03:00

98 Commits

Author SHA1 Message Date
Tim Potter
31b6b7aecd Make domain_client_validate return a status code instead of a boolean.
(This used to be commit b4e79ab34b7df4687966f4ca81b575dce8503775)
2001-08-24 19:09:37 +00:00
Tim Potter
9168c29a03 Added copyright for me and AB.
(This used to be commit 19cd6a1dc446830c1448f4a21a915ea8994dc268)
2001-08-23 02:55:42 +00:00
Tim Potter
b0f167cdf2 Added another authentication interface to winbindd. The Challenge Response
Authentication Protocol (CRAP) takes a tuple of (username, random
challenge, encrypted lm password, encrypted nt password) where the
passwords are encrypted with the random challenge ala ntlmssp.
(This used to be commit 11f72a78e3a16bbb17b576d80b47a9eb818ee428)
2001-08-22 02:48:16 +00:00
Jeremy Allison
ca66a07781 More Realloc fixes.
Jeremy.
(This used to be commit b4fa49fe13cb93d578b1714d5863a9f50395bf65)
2001-08-18 19:57:48 +00:00
Jeremy Allison
ec70b76395 More Realloc fixes.
Jeremy.
(This used to be commit 381c02e6389dbb41fa66a854d7293594fd4bd0a6)
2001-08-18 19:43:28 +00:00
Tim Potter
6b60c28acc Fixed up 'orrible formatting.
(This used to be commit 73addddb2e038946e38a6a15f46f61148a49ac08)
2001-08-13 02:33:24 +00:00
Simo Sorce
2e783a4707 this is a big global fix for the ptr = Realloc(ptr, size) bug.
many possible mem leaks, and segfaults fixed.

someone should port this fix to 2.2 also.
(This used to be commit fa8e55b8b465114ce209344965c1ca0333b84db9)
2001-08-12 17:30:01 +00:00
Andrew Bartlett
6ad80352dd This patch does a number of things, mostly smaller than they look :-)
In particuar, it moves the domain_client_validate stuff out of
auth_domain.c to somwhere where they (I hope) they can be shared
with winbind better.  (This may need some work)

The main purpose of this patch was however to improve some of the
internal documentation and to correctly place become_root()/unbecome_root()
calls within the code.

Finally this patch moves some more of auth.c into other files, auth_unix.c
in this case.

Andrew Bartlett
(This used to be commit ea1c547ac880def29f150de2172c95213509350e)
2001-08-12 11:19:57 +00:00
Andrew Bartlett
986372901e This is my 'Authentication Rewrite' version 1.01, mostly as submitted to
samba-technical a few weeks ago.

The idea here is to standardize the checking of user names and passwords,
thereby ensuring that all authtentications pass the same standards.  The
interface currently implemented in as

nt_status = check_password(user_info, server_info)

where user_info contains (mostly) the authentication data, and server_info
contains things like the user-id they got, and their resolved user name.

The current ugliness with the way the structures are created will be killed
the next revision, when they will be created and malloced by creator functions.

This patch also includes the first implementation of NTLMv2 in HEAD, but which
needs some more testing.  We also add a hack to allow plaintext passwords to be
compared with smbpasswd, not the system password database.

Finally, this patch probably reintroduces the PAM accounts bug we had in
2.2.0, I'll fix that once this hits the tree.  (I've just finished testing
it on a wide variety of platforms, so I want to get this patch in).
(This used to be commit b30b6202f31d339b48d51c0d38174cafd1cfcd42)
2001-08-03 13:09:23 +00:00
Tim Potter
670acd4eb6 Merge of change machine account password race fix from appliance branch.
(This used to be commit 6e698d65ecb13b0b46d15bce7e0314fa1a46a13a)
2001-07-25 06:16:27 +00:00
Andrew Tridgell
7879d999ab a better test for unix domain sockets
(This used to be commit 7b3d030e1f869a842822d9a356a027cca6f3a725)
2001-07-25 03:28:45 +00:00
Tim Potter
881d72acde In wb_samr_query_dispinfo() pass back the 32-bit status code from
cli_samr_query_dispinfo().
(This used to be commit d5f12bc53074d574a503e7183887fdcec9bb9dd4)
2001-07-23 07:21:52 +00:00
Tim Potter
cb6e6acb8d Call cli_samr_lookup_rids() in bunches of < 1000 rids to avoid crashing
NT.  Note this can be done completely anonymously.
(This used to be commit 96bd7bdd0b4f6572c678c7b1bc5ffe733e632fda)
2001-07-23 03:06:40 +00:00
Tim Potter
d3f1d7f7b6 Merged across rewritten version of winbindd_kill_connections(). This now
works much better with trusted domains whose DCs cannot be reached.

I'm pretty impressed with how much faster winbindd is in HEAD rather than
TNG.  A lot fewer unecessary name lookups are performed and it feels a lot
zippier now.
(This used to be commit 36413784aec5819c83e5e469ce4c7bb5d468e980)
2001-07-19 09:18:23 +00:00
Andrew Tridgell
e8c2eeb0d8 the nss and pam modules in winbind don't have strchr_m() yet, so use
strchr() for the moment
(This used to be commit c2c1f2027e6e623bba59610e3aa41618773e6361)
2001-07-18 21:50:20 +00:00
Andrew Tridgell
6baa40e3fe added winbind_exclude_domain() so smbd can tell the winbind client
code not to do lookups for a particular domain. This allows winbind to
operate on a Samba PDC
(This used to be commit d472ee3a690fb6db03fd4536e4093a18fc37ddbb)
2001-07-10 02:28:17 +00:00
Andrew Tridgell
955247fa38 allow winbindd to run as non-root so we can test it more easily
(This used to be commit 001129e2153633dbd079889b11331e9c27786e5b)
2001-07-08 18:25:19 +00:00
Andrew Tridgell
527e824293 strchr and strrchr are macros when compiling with optimisation in gcc, so we can't redefine them. damn.
(This used to be commit c41fc06376d1a2b83690612304e85010b5e5f3cf)
2001-07-04 07:36:09 +00:00
Andrew Tridgell
87fbb7092b The big character set handling changeover!
This commit gets rid of all our old codepage handling and replaces it with
iconv. All internal strings in Samba are now in "unix" charset, which may
be multi-byte. See internals.doc and my posting to samba-technical for
a more complete explanation.
(This used to be commit debb471267960e56005a741817ebd227ecfc512a)
2001-07-04 07:15:53 +00:00
Andrew Tridgell
b95a294a08 fixed usage of socklen_t and also tidied up SIG_ATOMIC_T, using a typedef instead of a define
(This used to be commit e2ecff419fdc0a0dc7551b33b377dc11061ef2a3)
2001-06-25 02:53:13 +00:00
Andrew Tridgell
91b8a8d1d2 next_token() was supposed to be a reentrant replacement for strtok(),
but the code suffered from bitrot and is not now reentrant. That means
we can get bizarre behaviour
i've fixed this by making next_token() reentrant and creating a
next_token_nr() that is a small non-reentrant wrapper for those lumps
of code (mostly smbclient) that have come to rely on the non-reentrant
behaviour
(This used to be commit 674ee2f1d12b0afc164a9e9072758fd1c5e54df7)
2001-06-21 09:10:42 +00:00
Tim Potter
1c831ce6d8 Merge from appliance branch:
Don't call find_domain_from_name() from winbindd_kill_connections() as
you get stuck in an infinite loop!
(This used to be commit 8e982941d82b813197f2a9720149e60f629b5b20)
2001-06-20 01:52:40 +00:00
Tim Potter
6ef6cc65d6 Fixed typo in #ifndef at head of file.
(This used to be commit 6bd1ba9a0432ab5e6c2ebe6ea0fa486960fd4289)
2001-06-07 07:14:17 +00:00
Tim Potter
24dd11dd69 Added comment about possible optimisation to winbindd_pam_auth()
(This used to be commit bb01d2151cde866f0e2d91ee7c58439eeb382c48)
2001-06-07 04:35:01 +00:00
Tim Potter
b1b5dcaf05 Fixed bug in winbind_sid_to_gid() function.
(This used to be commit 9a77f8530f58852f07d523facc61ea1daf6184d7)
2001-06-07 00:38:16 +00:00
Tim Potter
3e808f0af4 Fix for cli_samr_connect() arg change.
(This used to be commit 15efbbd2fea9cba819a88644a151cb872377621a)
2001-06-06 07:43:47 +00:00
Tim Potter
75f281a1ef Indent dodgy function prototype to avoid make proto picking it up and
causing mayhem throughout the tree.
(This used to be commit 369c911b446c311d4a5c8b4fddfe7fbffffefeba)
2001-06-06 07:27:44 +00:00
Andrew Tridgell
0326421a67 don't use c++ style comments
(This used to be commit dbb770ecc6dbbc4c38f31fc6b9747e0d8bc6e155)
2001-06-05 02:28:47 +00:00
Andrew Tridgell
466b1d7573 fixed solaris compilation error (don't add to a void*)
(This used to be commit f3c70e4248814e545a9ff64402cbd11020b159de)
2001-06-05 02:00:47 +00:00
Andrew Tridgell
05fc3e578c use LDSHFLAGS not -shared in several places
(This used to be commit 8ec9c87b5d1a7dae17d5b1a30f58effaf5e69e4b)
2001-06-04 05:13:59 +00:00
Tim Potter
da3943ed35 More compile fixups for winbind portability.
(This used to be commit 086f332bb11ff0b2474554f81ef257e6a444a5cc)
2001-06-04 04:12:38 +00:00
Tim Potter
a5f7cd89e1 Compile fix for solaris.
Fixed some compiler warnings.
(This used to be commit b44d3f912c346e00f41a4ff59877adad3b9c3bb0)
2001-06-04 03:14:56 +00:00
Jeremy Allison
d222a3f28d Try to fix build by adding autoconf tests for pam headers.
Jeremy.
(This used to be commit d52bc4d219bd07e656986e7754ea6e238c626d77)
2001-05-22 21:47:11 +00:00
Tim Potter
2d27d8c720 Fixes to get pam_auth() functionality working again.
(This used to be commit 083b74c743f0026693fa0fbe665ed08a3ac706b8)
2001-05-17 06:08:49 +00:00
Jeremy Allison
109851ae5c Zero-fill struct hostent.
Jeremy.
(This used to be commit 86557d633648f279e6ceda4da38801889ca4ed95)
2001-05-15 22:01:48 +00:00
Jeremy Allison
199bb03916 Fixed glibc crash problems with libnss_wins.so
Jeremy.
(This used to be commit c38a465bef91bc54cd3f3ce81e5a9c818f429801)
2001-05-15 21:53:19 +00:00
Tim Potter
b343f082e4 Memory leak fixes from insure.
(This used to be commit 03b1cab9a80264f0c940c45d0557ef7efe685095)
2001-05-15 01:55:29 +00:00
Tim Potter
5bcd434e6e Compile fixes for dynamic samr_query_userinfo() stuff.
(This used to be commit a92a0d061bd322b9d3a1fe13c6ce2d2e1f070ef7)
2001-05-14 03:58:49 +00:00
Tim Potter
a17c702a70 Use sid_peek_rid() instead of sid_split_rid().
(This used to be commit 0e03209af6f70c3c0c52072fe904ba5750676b63)
2001-05-10 05:19:47 +00:00
Tim Potter
bc77683283 Fixes from nsswitch testsuite. Lots of stuff works much better now. (-:
(This used to be commit 014859b62b31ceff5b5ca3d1699792e362c77a85)
2001-05-09 05:06:35 +00:00
Tim Potter
55567e5ee9 The substitution of %U and %D in the 'template homedir' is nowdone
by lp_string() calling standard_sub_basic().
(This used to be commit 011d45943594a7a4091101b1eec930d13f0a9d12)
2001-05-08 05:58:03 +00:00
Tim Potter
0b14ab0144 Added S_ISSOCK macros for systems which treat UNIX domain sockets as FIFOs
(SCO).
(This used to be commit d761a7deb3696fc0742fb349868317f42825290e)
2001-05-08 05:56:10 +00:00
Tim Potter
3475c25714 Misc fixes to get winbindd working. We can now do a 'getent passwd'
and 'getent group' and have most things working.
(This used to be commit a7728bfa52291ec3149fbb704d7b30689af83e7c)
2001-05-08 03:52:07 +00:00
Tim Potter
c504e240a8 OK so I couldn't be as clever as I wanted to be with winbindd_glue.c
so all the glue functions are prefixed with wb_ to avoid conflicts with
the old rpc_client stuff which is still a dependency of smbd/nmbd.
(This used to be commit 873e672b90e85e092102e10966e9f93f4fa6814f)
2001-05-07 06:04:22 +00:00
Tim Potter
34417b19f8 Ignore *.po files.
(This used to be commit f8c83ce28b01ffd188dd10f0c731defaacb0fb45)
2001-05-07 05:04:53 +00:00
Tim Potter
ebb900cf3e iAdditional files for winbind merge.
(This used to be commit 38ab3b31b5dc39fb59f224b399bb9c2269f1c933)
2001-05-07 05:03:40 +00:00
Tim Potter
a36f9250e7 Preliminary merge of winbind into HEAD. Note that this compiles and links
but I haven't actually run it yet so it probably doesn't work.  (-:
(This used to be commit 59f95416b66db6df05289bde224de29c721978e5)
2001-05-07 04:32:40 +00:00
Tim Potter
401b3cc7a7 Merge from TNG branch.
(This used to be commit 1e7b1c71b9c409859bcf0aeb3d5785acc4aee027)
2001-05-04 00:43:20 +00:00
Andrew Tridgell
5472466bef added solaris wrapper from tng
(This used to be commit d854d01d1197300f637eb38c243f8b0b80cf24ba)
2001-04-25 06:45:27 +00:00
Andrew Tridgell
5f9dca64da merge some of the nsswitch code from tng to head
the libnss_winbind.so from head now works with
the winbindd from tng
(This used to be commit 67ccfd2826548a6ca22562f9fb3ae156a57bd7db)
2001-04-25 05:47:50 +00:00