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

6719 Commits

Author SHA1 Message Date
Andrew Bartlett
e903a34b2e Minor updates. A small dose of const.
(This used to be commit 80667cb0dd1a2cdef17711c8580af9f524971cea)
2001-11-11 11:00:38 +00:00
Andrew Bartlett
e1cd195160 autoconf
(This used to be commit 1a60305f7a368bce16c9d6d989942670186dec72)
2001-11-11 10:42:41 +00:00
Andrew Bartlett
7de42a4faf Remove built-in support for clear-text kerberos authentication.
This should remove some confusion from the ./configure, but does not affect the
'real' kerberos support currently residing in smbd/sesssetup.c.

This code is vunerable to a spoofed KDC, and is best replaced by --with-pam and
the pam_krb5 module.  This module includes measures to prevent such spoofing.

Andrew Bartlett
(This used to be commit 3235880b41ee5dd5ef171195489fb9254f5d89b0)
2001-11-11 10:42:07 +00:00
Simo Sorce
5d152d24a3 fixed, moved and added some functions
note the useful acnv_uxu2 and acnv_u2ux functions in charcnv.c
(This used to be commit 64dde3b64fc091cda95fc4ed145595b5d79b2e01)
2001-11-10 15:21:54 +00:00
Jeremy Allison
461641d0de Use defined constants not integers.
Jeremy.
(This used to be commit d20949fe509c1496bc434f0fbf403f0b69ab9954)
2001-11-10 01:49:50 +00:00
Volker Lendecke
89c6eed93b As pdb_ldap.c does not compile in HEAD anyway, a not-compiled merge
from 2_2.

Volker
(This used to be commit 7d70b30dbdf06de126b78879fc89708ca335f91e)
2001-11-09 22:15:33 +00:00
Gerald Carter
e3abad1741 Fixed a few typos and added the opnum for ADDPRINTERDRIVEREX to the
rpc_spoolss.h header file.
(This used to be commit d4cafc076be99a66d0660f695995801b4f1d7bfd)
2001-11-09 20:59:18 +00:00
Jeremy Allison
67f5bea484 Fixup __LPID -> _LPID.
Jeremy.
(This used to be commit ab607cdf153d9187fe50af3377ece5a9fafde1b1)
2001-11-09 20:34:12 +00:00
Andrew Bartlett
395aa946cd This change updates lp_guestaccount() to be a *global* paramater, rather than
per-share.  I beleive that almost all the things that this could have done on
a per-share basis can be done with other tools, like 'force user'.

Almost all the user's of this paramater used it as a global anyway...

While this is one step at a time, I hope it will allow me to considerably
simplfy the make_connection() code, particularly for the user-level security
case.

This already removes an absolute truckload of extra attempted password lookups
on the guest account.

Andrew Bartlett
(This used to be commit 8e708332eded210c1d1fe0cebca3c9c19f054b71)
2001-11-09 11:16:06 +00:00
Andrew Tridgell
50093d3bbd fix the tree so it compiles again
grumble, mumble, ...
(This used to be commit 72c1af6f8d9893dd5b8b4d105b301d8c621749c6)
2001-11-09 02:44:49 +00:00
Tim Potter
e91226daea Removed #ifdef TDB_DEBUG around tdb_dump_all() and tdb_printfreelist()
so that tdbtool can be compiled without having to make clean.
(This used to be commit dad688d8c6b3c98173a846ad833599a4016d2e1a)
2001-11-09 01:26:13 +00:00
Andrew Bartlett
55dfb66079 Change to guest logon code.
This changes the way we process guest logons - we now treat them as normal
logons, but set the 'guest' flag.  In particular this is needed becouse Win2k
will do an NTLMSSP login with username "", therefore missing our previous guest
connection code - this is getting a pain to do as a special case all over the
shop.

Tridge:  We don't seem to be setting a guest bit for NTLMSSP, in either the
anonymous or authenticated case, can you take a look at this?

Also some cleanups in the check_password() code that should make some of the
debugs clearer.

Various other minor cleanups:

 - change the session code to just take a vuser, rather than having to do a
   vuid lookup on vuser.vuid

 - Change some of the global_client_caps linking

 - Better debug in authorise_login(): show the vuid.

Andrew Bartlett
(This used to be commit 62f4e4bd0aef9ade653b3f8d575d2864c166ab4d)
2001-11-08 22:19:01 +00:00
Tim Potter
f56a3ea612 Fixed incorrect debug message. )-:
(This used to be commit a99d9cec7e090736ab49c91720cfd2b43e2a6f00)
2001-11-08 04:41:13 +00:00
Martin Pool
fea97ecd7c spoolss_io_devmode private data is binary and should be shown in hex,
not ascii.
(This used to be commit be5d32eb9c58bb1911299d095efcf230d50ed590)
2001-11-08 03:12:22 +00:00
Jeremy Allison
c517caf305 Only 1mb allocate slop.
Jeremy.
(This used to be commit c339a99a891c9e4bbad59ee1243908c91f048834)
2001-11-08 02:17:03 +00:00
Jeremy Allison
00404139e1 Merge overdue changes from 2.2. Fix <4gb write problem.
Jeremy.
(This used to be commit 36ea09d3a041fab0854dfdc20f6ea8db7ccbec2e)
2001-11-08 01:49:57 +00:00
Jeremy Allison
04a0293601 Added more define bits. Fixed error in vol attributes.
Jeremy.
(This used to be commit eba8204bfadb176fafb686a35295a09f0f35b894)
2001-11-08 00:21:26 +00:00
Jeremy Allison
3343d0281d Added debug in truncate, fixed warning with gcc3.
Jeremy.
(This used to be commit 970ec14b4ba1ccf66820384ced8442e1878c09cd)
2001-11-07 23:47:20 +00:00
Steve French
2113e2ba08 Add function to add those hosts who have added msbrowse (domain master browsers)
(This used to be commit 3fd96a47543c268fd2828793df4006cc47a9e95b)
2001-11-07 23:01:44 +00:00
Tim Potter
823ab98ae3 Added delheaders as a dependency for clean.
(This used to be commit cd9334bd57cd7f544aba0b642c8190d608add7b9)
2001-11-07 22:38:03 +00:00
Simo Sorce
5a91b271f6 add convert_string_allocate() function
(This used to be commit 8b494b0be323c983b7ea3d1dcf1f61216396caec)
2001-11-07 18:14:46 +00:00
Andrew Bartlett
aa0ceb1255 UGLY HACK to get machines to join tdbsam domains again.
The problem is that we don't use the bitmap field, and so have to guess what
feilds to change.  NT4 sets the RID to NULL in its reply, (as a no-change
value) and we were attempting to set that as a RID.

jfm:  Can you get me the info on that bitmap, so I can construct a proper fix
to all this?

Thanks!
(This used to be commit 39f9c78d07d7af6abc71b33a6018ac0237608b6a)
2001-11-07 08:15:45 +00:00
Andrew Bartlett
848d01cde5 Initilising these variables before appending the domain groups to them
(This used to be commit 8004cfea19e10ad942c59f2f6a6bd992791017ba)
2001-11-07 02:16:22 +00:00
Jeremy Allison
bdd5c8bd56 Fixed unsigned / long unsigned format missmatch.
Jeremy
(This used to be commit 86c2f9636635283beb8e496315a7bfac881355dd)
2001-11-06 22:07:04 +00:00
Jim McDonough
806c951344 Internationalization enbalement for net utility - replace printf with d_printf
(This used to be commit b83b21e9ca364a097455c119815074f23324111d)
2001-11-06 16:28:50 +00:00
Tim Potter
fbc4e1daba Fixed looking up domain (winbind) users ahead of local users in
domain_client_validate()
(This used to be commit df0db8edb12dc8b8d290e5ac599fa7b517e9d263)
2001-11-05 23:00:46 +00:00
Tim Potter
ade911c1c6 Removed totally annoying verbose debug in sid_to_string()
(This used to be commit 4f21ddb8737d3f72a84465d3384351ccd2b07d15)
2001-11-05 22:57:14 +00:00
Andrew Tridgell
366026d2f4 free the negTokenInit structure
(This used to be commit 5b1c942a5cab828ebfcf2e8f5decb754c4cdb70e)
2001-11-05 15:18:17 +00:00
Jeremy Allison
198612deda Changed MAX_OPEN_PIPES to 2048.
Jeremy.
(This used to be commit 591d217ed49b6beca4a87f6b89a81f0c913003dc)
2001-11-05 07:42:55 +00:00
Tim Potter
7623cec4ad Wrote some stubs for new win2k only spoolss rpc commands:
GetPrinterDataEx() and SetPrinterDataEx().  Not sure what the command
number is for the latter is - I haven't seen it on the wire yet.
(This used to be commit 87614c74b3d66cf2ca706b33e6cf0a32b4166e7a)
2001-11-05 06:15:02 +00:00
Gerald Carter
b09c745991 merge from 2.2. Why is STR_CONVERT missing when comparing
2.2 to HEAD?
(This used to be commit 4f47daf97b9e74ec75287f46e2c4aeddc944779e)
2001-11-05 05:41:32 +00:00
Gerald Carter
e9ba1dff09 old merge from 2.2
(This used to be commit 292a0265a9de7f5fa06140768ecf27056d59f6c1)
2001-11-05 05:28:03 +00:00
Tim Potter
cf1d442f40 Fixed some compiler warnings.
(This used to be commit 7c3090fb2017eb08b8785f0b6e4eb98ab9246bbc)
2001-11-05 01:41:16 +00:00
Tim Potter
9d56e23591 Renamed make_user_info_for_winbindd() to be more consistent with the
names of the other functions in this file.
(This used to be commit 4880f37e4ee08b6363314a3fb67051a6708988d0)
2001-11-05 01:04:45 +00:00
Tim Potter
c159d0f47d Fixed compiler warnings.
(This used to be commit 54e40b270208774ed71eff32f3c3b1d3b86b5aca)
2001-11-05 00:42:33 +00:00
Tim Potter
93fb9f76e2 Use cli_nt_login_network() instead of domain_client_validate() to perform
pam authentication.  This allows us to link in less other crap.

Authenticating with a challenge/response doesn't seem to work though - we
always get back NT_STATUS_WRONG_PASSWORD.
(This used to be commit d85aa1ce83327dda6aa3dcd9bbab9cf6979dda1e)
2001-11-05 00:21:17 +00:00
Tim Potter
c87c352699 Removed duplicate debug.
(This used to be commit 5c3521c937f9ba3c4c586495f54dc69a664c392a)
2001-11-05 00:12:23 +00:00
Tim Potter
d876260d88 Don't put a \n on the end of the arg to exit_server()
(This used to be commit dfb8566220c3e90ca2b757ea124f53aed103269e)
2001-11-05 00:02:38 +00:00
Jeremy Allison
59bc781854 Added missing strchr_wa.
Jeremy.
(This used to be commit 16c5d279b97250ceb84ee6de6e5e801350c816c4)
2001-11-04 21:10:17 +00:00
Jeremy Allison
db8ff475ac Fix for broken-as-shipped RedHat 7.2 system headers. Now we have
to detect this in configure.
Jeremy.
(This used to be commit 44fb1992c98e7cca5663b17ea9a4833fcf0a8478)
2001-11-04 20:50:30 +00:00
Simo Sorce
740d6f5dd6 a big one:
- old mangle code has gone, the new one based on tdb seem resonably ok
   probably the valid.dat table need to be updated to treat wild chars as
   invalid ones (work ok without it)
 - a LOT of new string manipulation function for unicode, they are somewhat
   tested but a review would not be bad
 - some new function I will need for the new unix_convert function I'm writing,
   this will be renamed filename_convert and use only unicode strings.
 - charconv, I attached a comment, if someone wnat to look if I'm right or
   just was hacking to late in the night to make a sane one :)

of course any bug is my responsibility an will be pleased to see patches if
you find any. :-)

Simo.
(This used to be commit ee19f7efb6ea9216fc91cf112ac1afa691983e9d)
2001-11-04 18:26:53 +00:00
Andrew Tridgell
c3f21fc360 get the string lengths right in domain logons
Andrew, this fixes domain logons in head. Please look at the change,
as I think you may have misunderstood the max_str_len field (which is
badly named)
(This used to be commit fd3a657b440a61c0c146947bb62d2b83c1689b87)
2001-11-04 18:13:33 +00:00
Andrew Tridgell
a896bbcb5a remove {} from default valid char list
(This used to be commit 5dd3c7b3fb8aac7fb3a256ae40c882fb8983537f)
2001-11-04 18:10:31 +00:00
Andrew Bartlett
c42bdbdace Fix segfault. sup_tok might not always be with us.
(This used to be commit 1f409a1f3fb0906f1ff985b96bb7a65f56253046)
2001-11-04 04:58:17 +00:00
Andrew Bartlett
5f5661d217 Fix up authenticated pipes in line with vuser changes. This ensures that global
groups obtained via a domain logon are respected in the attached NT_USER_TOKEN.

This functionality is only available in HEAD, becosue of the way authenticaion
has been abstracted.

Both vuid logins and authenticated pipes need to use the same code for this in
future.

Can sombody with the correct facilties check this please?\

Thanks,

Andrew Bartlett
(This used to be commit caae69fcd096f20aa4c6879b95ec2c275afea041)
2001-11-04 01:14:15 +00:00
Andrew Bartlett
971181179b Fixup for accounts without a local /etc/passwd entry.
- Now perfectly valid.
(This used to be commit be04aad90da341fb1b4ef472f2279aefab972258)
2001-11-04 01:10:21 +00:00
Andrew Bartlett
8ae815e31e Fix up pdbedit so that it at least compiles without warnings.
- Basic functionality intact
 - Now adds machine accounts without a uid.  (using the machine uid range to
   avoid conflict with real uid based accounts)
(This used to be commit 09d2e05d26f71b10ccabe4c6fa168a4923697bae)
2001-11-04 01:09:04 +00:00
Jeremy Allison
30be58a857 Got serious about const again.
REMOVED BZERO CALLS YET AGAIN !!! Why do these keep creeping back in....
They are *NOT* POSIX. I'm also thinking of removing strncpy as I'm sure
it's not being used correctly....
Jeremy.
(This used to be commit b1930abb35dee74f858a3f7190276c418af2322b)
2001-11-04 00:14:08 +00:00
Jeremy Allison
f8e2baf39e Added NT_USER_TOKEN into server_info to fix extra groups problem.
Got "medieval on our ass" about const warnings (as many as I could :-).
Jeremy.
(This used to be commit ee5e7ca547eff016818ba5c43b8ea0c9fa69b808)
2001-11-03 23:34:24 +00:00
Steve French
69a59c5bbc Added many more defines in service category, user category and others
(This used to be commit 3bfb828cf70489165b46281bf03ea7074d3ba07d)
2001-11-03 21:13:42 +00:00