Martin Pool [Thu, 15 Nov 2001 06:02:53 +0000 (06:02 +0000)]
Leave doc comments in code listings for the web.
Martin Pool [Thu, 15 Nov 2001 05:31:27 +0000 (05:31 +0000)]
Configuration file to run the Doxygen API documentation tool. A few
files already have Doxygen markup. Instructions on inserting tags
into new code can be found at http://doxygen.org/. Output is
(currently) at http://samba.org/~mbp/samba-dox/
Tim Potter [Thu, 15 Nov 2001 05:26:22 +0000 (05:26 +0000)]
FALSE -> False
Tim Potter [Thu, 15 Nov 2001 03:34:27 +0000 (03:34 +0000)]
Added free_domain_info() function.
Get list of trusted domains if we haven't fetched them yet.
Tim Potter [Thu, 15 Nov 2001 03:33:56 +0000 (03:33 +0000)]
Added free_domain_info() function.
Tim Potter [Thu, 15 Nov 2001 03:33:12 +0000 (03:33 +0000)]
Cache positive and negative name domain controller lookups.
Cache negative connection attempt lookups.
Fixed loginc bug in connection_ok()
Tim Potter [Thu, 15 Nov 2001 03:29:00 +0000 (03:29 +0000)]
Get list of trusted domains if we haven't fetched them yet.
Tim Potter [Thu, 15 Nov 2001 03:28:24 +0000 (03:28 +0000)]
Fixed display of uninitialised buffer in debug.
Get list of trusted domains if we haven't fetched them yet.
Tim Potter [Thu, 15 Nov 2001 03:23:15 +0000 (03:23 +0000)]
Bit of a cleanup of signal handling code.
Ignore the SIGUSR1 signal before we install a handler for it as glibc (?)
seems to just print out "User defined signal 1" and exit if no handler
is installed.
Jeremy Allison [Thu, 15 Nov 2001 01:18:10 +0000 (01:18 +0000)]
Fix detection of RedHat 7.2.
Remove unused old file.
Test 42 byte reply to SMBntcreate (W2K does this).
Jeremy.
Jeremy Allison [Wed, 14 Nov 2001 23:00:37 +0000 (23:00 +0000)]
Fix compile on RedHat 7.2 systems with broken system headers.
Jeremy.
Jeremy Allison [Wed, 14 Nov 2001 21:49:30 +0000 (21:49 +0000)]
Make signal handling safer (handle EINTR on read/write/accept), don't
call slprintf within a signal handler.
Jeremy.
Jeremy Allison [Wed, 14 Nov 2001 20:02:02 +0000 (20:02 +0000)]
Got ready to implement Martin's idea, but request doesn't have a length
field.... well, now at least the code is there when it does :-).
Jeremy.
Tim Potter [Wed, 14 Nov 2001 06:18:13 +0000 (06:18 +0000)]
Random connection robustness related fixes. Display some debugs about
the currently open connections when winbindd receives a USR1 signal.
Hmm - I've just realised this will conflict with the messaging code
but we don't use that yet.
Martin Pool [Wed, 14 Nov 2001 06:07:21 +0000 (06:07 +0000)]
Give sensible defaults to some variables that are set by the build
farm but not present in Make.
Tim Potter [Wed, 14 Nov 2001 05:58:51 +0000 (05:58 +0000)]
Close the socket and set the file descriptor to -1 if there was a socket
error in cli_receive_smb() and cli_send_smb().
Martin Pool [Wed, 14 Nov 2001 05:46:24 +0000 (05:46 +0000)]
Clean up message.
Martin Pool [Wed, 14 Nov 2001 05:33:55 +0000 (05:33 +0000)]
#ifdef'd out suggestion for tim on making the winbindd protocol more
robust.
Martin Pool [Wed, 14 Nov 2001 05:19:53 +0000 (05:19 +0000)]
Little note about what's happening with Satyr.
Martin Pool [Wed, 14 Nov 2001 05:12:03 +0000 (05:12 +0000)]
Doc.
Try not to run tests if the user specified --prefix=/usr* or something
similar, because it would not be nice(!) to clobber their
configuration file and passwords. Eventually I think we want to run
the installed versions, but specify different paths for everything.
Jeremy Allison [Wed, 14 Nov 2001 04:44:36 +0000 (04:44 +0000)]
Added needed debugs...
Jeremy.
Jeremy Allison [Wed, 14 Nov 2001 04:15:36 +0000 (04:15 +0000)]
Removed the "reestablish" code. Tridge - scream if this was needed....
Jeremy.
Martin Pool [Wed, 14 Nov 2001 04:03:49 +0000 (04:03 +0000)]
Too much of samba depends on finding files in their installed
locations, so we can't do "make check" yet, only "make installcheck".
Jeremy Allison [Wed, 14 Nov 2001 02:35:56 +0000 (02:35 +0000)]
Fix from Herb. mincount/maxcount need to be ssize_t for comparisons.
Jeremy.
Tim Potter [Wed, 14 Nov 2001 01:38:01 +0000 (01:38 +0000)]
Removed unused variable.
Tim Potter [Wed, 14 Nov 2001 01:34:34 +0000 (01:34 +0000)]
Reformatted to 75 columns.
Converted from DOS CRLF format (hmm).
Added suggestion about C vs C++ comments.
Martin Pool [Wed, 14 Nov 2001 01:23:59 +0000 (01:23 +0000)]
Add basic "make check" and "make installcheck" targets, using the
Satyr framework from the buildfarm. This will eventually be copied
into the Samba source tree, but it is not yet. See
cvs://samba.org:/data/cvs/satyr
Add "make showlayout" target to show where installation will put
things.
Martin Pool [Wed, 14 Nov 2001 01:18:41 +0000 (01:18 +0000)]
Cosmetic fix for libpopt-checking test.
Jeremy Allison [Tue, 13 Nov 2001 22:49:50 +0000 (22:49 +0000)]
Look for DOMAIN\group in group lists and ask winbind.
Jeremy.
Jeremy Allison [Tue, 13 Nov 2001 21:28:31 +0000 (21:28 +0000)]
Fix winbind client code so that winbind calls are not made if the
requested name does not have a winbind separator character. This
makes the intent explicit. Tim, contact me if this is not what
you indended.
Jeremy.
Steve French [Tue, 13 Nov 2001 19:23:29 +0000 (19:23 +0000)]
List of coding suggestions for submitters
Gerald Carter [Tue, 13 Nov 2001 18:22:36 +0000 (18:22 +0000)]
verified two new win2k rpc's EnumPrinterDataEx() and DeletePrinterdataEx()
Martin Pool [Tue, 13 Nov 2001 05:32:48 +0000 (05:32 +0000)]
Fix typo.
Gerald Carter [Tue, 13 Nov 2001 04:10:40 +0000 (04:10 +0000)]
new Win2k spoolss rpc opnum (unknown right now).
Jeremy Allison [Tue, 13 Nov 2001 01:35:20 +0000 (01:35 +0000)]
Formatting fixes only.
Jeremy.
Steve French [Mon, 12 Nov 2001 22:50:48 +0000 (22:50 +0000)]
Minor fixes to help display, and domain enumeration , and also preparation for new command option
Tim Potter [Mon, 12 Nov 2001 20:14:18 +0000 (20:14 +0000)]
Spelling fixes.
Jeremy Allison [Mon, 12 Nov 2001 02:03:44 +0000 (02:03 +0000)]
Don't check space on every extend if strict allocate not set.
Jeremy
Simo Sorce [Mon, 12 Nov 2001 01:31:43 +0000 (01:31 +0000)]
messed up with patches, this should be the right one,
sorry
Jeremy Allison [Mon, 12 Nov 2001 01:00:54 +0000 (01:00 +0000)]
Fixed allocation bug in database prog. Some format fixes.
Jeremy.
Simo Sorce [Mon, 12 Nov 2001 00:53:34 +0000 (00:53 +0000)]
some bugfix and new functions,
modified mangle.c to use mosltly acnv_????() functions.
this should make also build farm happy
Andrew Bartlett [Mon, 12 Nov 2001 00:08:30 +0000 (00:08 +0000)]
Code duplication is bad. So add an add_signiture() function and just refernce
that.
Andrew Bartlett [Sun, 11 Nov 2001 12:42:39 +0000 (12:42 +0000)]
Kill off 'restrict anonymous' becouse it is useless in its current form.
To be replaced with a real restriction in consultation with jra. (Hence why
I've not touched loadparm.c).
Andrew Bartlett
Andrew Bartlett [Sun, 11 Nov 2001 11:34:46 +0000 (11:34 +0000)]
Fix up some DEBUG()s
Add and fix comments
Add 'const' to some more input paramaters.
Andrew Bartlett [Sun, 11 Nov 2001 11:18:45 +0000 (11:18 +0000)]
Add back the not null checks in a better place.
Check the pdb_init_sam() for failure.
Andrew Bartlett [Sun, 11 Nov 2001 11:15:28 +0000 (11:15 +0000)]
make sam_account_ok static.
remove rudundent not null checks
fix indenting
Andrew Bartlett [Sun, 11 Nov 2001 11:11:56 +0000 (11:11 +0000)]
This extra check isn't needed, we can only get here if secuirty=domain
Andrew Bartlett [Sun, 11 Nov 2001 11:00:38 +0000 (11:00 +0000)]
Minor updates. A small dose of const.
Andrew Bartlett [Sun, 11 Nov 2001 10:42:41 +0000 (10:42 +0000)]
autoconf
Andrew Bartlett [Sun, 11 Nov 2001 10:42:07 +0000 (10:42 +0000)]
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
Simo Sorce [Sat, 10 Nov 2001 15:21:54 +0000 (15:21 +0000)]
fixed, moved and added some functions
note the useful acnv_uxu2 and acnv_u2ux functions in charcnv.c
Jeremy Allison [Sat, 10 Nov 2001 01:49:50 +0000 (01:49 +0000)]
Use defined constants not integers.
Jeremy.
Volker Lendecke [Fri, 9 Nov 2001 22:15:33 +0000 (22:15 +0000)]
As pdb_ldap.c does not compile in HEAD anyway, a not-compiled merge
from 2_2.
Volker
Gerald Carter [Fri, 9 Nov 2001 20:59:18 +0000 (20:59 +0000)]
Fixed a few typos and added the opnum for ADDPRINTERDRIVEREX to the
rpc_spoolss.h header file.
Jeremy Allison [Fri, 9 Nov 2001 20:34:12 +0000 (20:34 +0000)]
Fixup __LPID -> _LPID.
Jeremy.
Andrew Bartlett [Fri, 9 Nov 2001 11:16:06 +0000 (11:16 +0000)]
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
Andrew Tridgell [Fri, 9 Nov 2001 02:44:49 +0000 (02:44 +0000)]
fix the tree so it compiles again
grumble, mumble, ...
Tim Potter [Fri, 9 Nov 2001 01:26:13 +0000 (01:26 +0000)]
Removed #ifdef TDB_DEBUG around tdb_dump_all() and tdb_printfreelist()
so that tdbtool can be compiled without having to make clean.
Andrew Bartlett [Thu, 8 Nov 2001 22:19:01 +0000 (22:19 +0000)]
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
Tim Potter [Thu, 8 Nov 2001 04:41:13 +0000 (04:41 +0000)]
Fixed incorrect debug message. )-:
Martin Pool [Thu, 8 Nov 2001 03:12:22 +0000 (03:12 +0000)]
spoolss_io_devmode private data is binary and should be shown in hex,
not ascii.
Jeremy Allison [Thu, 8 Nov 2001 02:17:03 +0000 (02:17 +0000)]
Only 1mb allocate slop.
Jeremy.
Jeremy Allison [Thu, 8 Nov 2001 01:49:57 +0000 (01:49 +0000)]
Merge overdue changes from 2.2. Fix <4gb write problem.
Jeremy.
Jeremy Allison [Thu, 8 Nov 2001 00:21:26 +0000 (00:21 +0000)]
Added more define bits. Fixed error in vol attributes.
Jeremy.
Jeremy Allison [Wed, 7 Nov 2001 23:47:20 +0000 (23:47 +0000)]
Added debug in truncate, fixed warning with gcc3.
Jeremy.
Steve French [Wed, 7 Nov 2001 23:01:44 +0000 (23:01 +0000)]
Add function to add those hosts who have added msbrowse (domain master browsers)
Tim Potter [Wed, 7 Nov 2001 22:38:03 +0000 (22:38 +0000)]
Added delheaders as a dependency for clean.
Simo Sorce [Wed, 7 Nov 2001 18:14:46 +0000 (18:14 +0000)]
add convert_string_allocate() function
Andrew Bartlett [Wed, 7 Nov 2001 08:15:45 +0000 (08:15 +0000)]
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!
Andrew Bartlett [Wed, 7 Nov 2001 02:16:22 +0000 (02:16 +0000)]
Initilising these variables before appending the domain groups to them
Jeremy Allison [Tue, 6 Nov 2001 22:07:04 +0000 (22:07 +0000)]
Fixed unsigned / long unsigned format missmatch.
Jeremy
Jim McDonough [Tue, 6 Nov 2001 16:28:50 +0000 (16:28 +0000)]
Internationalization enbalement for net utility - replace printf with d_printf
Tim Potter [Mon, 5 Nov 2001 23:00:46 +0000 (23:00 +0000)]
Fixed looking up domain (winbind) users ahead of local users in
domain_client_validate()
Tim Potter [Mon, 5 Nov 2001 22:57:14 +0000 (22:57 +0000)]
Removed totally annoying verbose debug in sid_to_string()
Andrew Tridgell [Mon, 5 Nov 2001 15:18:17 +0000 (15:18 +0000)]
free the negTokenInit structure
Jeremy Allison [Mon, 5 Nov 2001 07:42:55 +0000 (07:42 +0000)]
Changed MAX_OPEN_PIPES to 2048.
Jeremy.
Tim Potter [Mon, 5 Nov 2001 06:15:02 +0000 (06:15 +0000)]
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.
Gerald Carter [Mon, 5 Nov 2001 05:41:32 +0000 (05:41 +0000)]
merge from 2.2. Why is STR_CONVERT missing when comparing
2.2 to HEAD?
Gerald Carter [Mon, 5 Nov 2001 05:28:03 +0000 (05:28 +0000)]
old merge from 2.2
Tim Potter [Mon, 5 Nov 2001 01:41:16 +0000 (01:41 +0000)]
Fixed some compiler warnings.
Tim Potter [Mon, 5 Nov 2001 01:04:45 +0000 (01:04 +0000)]
Renamed make_user_info_for_winbindd() to be more consistent with the
names of the other functions in this file.
Tim Potter [Mon, 5 Nov 2001 00:42:33 +0000 (00:42 +0000)]
Fixed compiler warnings.
Tim Potter [Mon, 5 Nov 2001 00:21:17 +0000 (00:21 +0000)]
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.
Tim Potter [Mon, 5 Nov 2001 00:12:23 +0000 (00:12 +0000)]
Removed duplicate debug.
Tim Potter [Mon, 5 Nov 2001 00:02:38 +0000 (00:02 +0000)]
Don't put a \n on the end of the arg to exit_server()
Jeremy Allison [Sun, 4 Nov 2001 21:10:17 +0000 (21:10 +0000)]
Added missing strchr_wa.
Jeremy.
Jeremy Allison [Sun, 4 Nov 2001 20:50:30 +0000 (20:50 +0000)]
Fix for broken-as-shipped RedHat 7.2 system headers. Now we have
to detect this in configure.
Jeremy.
Simo Sorce [Sun, 4 Nov 2001 18:26:53 +0000 (18:26 +0000)]
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.
Andrew Tridgell [Sun, 4 Nov 2001 18:13:33 +0000 (18:13 +0000)]
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)
Andrew Tridgell [Sun, 4 Nov 2001 18:10:31 +0000 (18:10 +0000)]
remove {} from default valid char list
Andrew Bartlett [Sun, 4 Nov 2001 04:58:17 +0000 (04:58 +0000)]
Fix segfault. sup_tok might not always be with us.
Andrew Bartlett [Sun, 4 Nov 2001 01:14:15 +0000 (01:14 +0000)]
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
Andrew Bartlett [Sun, 4 Nov 2001 01:10:21 +0000 (01:10 +0000)]
Fixup for accounts without a local /etc/passwd entry.
- Now perfectly valid.
Andrew Bartlett [Sun, 4 Nov 2001 01:09:04 +0000 (01:09 +0000)]
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)
Jeremy Allison [Sun, 4 Nov 2001 00:14:08 +0000 (00:14 +0000)]
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.
Jeremy Allison [Sat, 3 Nov 2001 23:34:24 +0000 (23:34 +0000)]
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.
Steve French [Sat, 3 Nov 2001 21:13:42 +0000 (21:13 +0000)]
Added many more defines in service category, user category and others
Steve French [Sat, 3 Nov 2001 21:12:44 +0000 (21:12 +0000)]
Added support for UserListGroups, ServiceEnum
Steve French [Sat, 3 Nov 2001 21:11:28 +0000 (21:11 +0000)]
Adding support for net password, net service, net user info, fixing net helps
Andrew Bartlett [Sat, 3 Nov 2001 00:59:57 +0000 (00:59 +0000)]
anonymous logins are guest logins, so mark them as such. (Otherwise they can
browse non-guest shares).