kai/samba.git
22 years agoNote: This does NOT work yet. More work is in progress - please wait before using.
John Terpstra [Thu, 3 Jan 2002 22:26:54 +0000 (22:26 +0000)]
Note: This does NOT work yet. More work is in progress - please wait before using.
(This used to be commit 72bda5e82173a95af58c58f8b454850f8794c356)

22 years agoDon't use static memory, malloc it...
Jeremy Allison [Thu, 3 Jan 2002 21:48:17 +0000 (21:48 +0000)]
Don't use static memory, malloc it...
Jeremy.
(This used to be commit 8aee8211cddb6705c9aa545fc57ece2c721ef448)

22 years agoFix the fix.... (sigh).
Jeremy Allison [Thu, 3 Jan 2002 21:37:45 +0000 (21:37 +0000)]
Fix the fix.... (sigh).
Jeremy.
(This used to be commit 73cf9d04f6a35aa3b6bdb4e921de34e0021b5a2c)

22 years agoEnsure modtime is set correctly on destination files in copy command.
Jeremy Allison [Thu, 3 Jan 2002 20:49:06 +0000 (20:49 +0000)]
Ensure modtime is set correctly on destination files in copy command.
Jeremy.
(This used to be commit fb1ab02553e01df0464f0df3eea7ae6a66b4104b)

22 years agoFixed embarressing 16k strack trashing bug :-(.
Jeremy Allison [Thu, 3 Jan 2002 19:57:12 +0000 (19:57 +0000)]
Fixed embarressing 16k strack trashing bug :-(.
Jeremy.
(This used to be commit b52c3219d6f46df6e98742447d65ecda2ecbac65)

22 years agoadded nTSecurityDescriptor field to host acct dump
Andrew Tridgell [Thu, 3 Jan 2002 11:59:33 +0000 (11:59 +0000)]
added nTSecurityDescriptor field to host acct dump
(This used to be commit f383e19e095eab975bf3d4e622a5c1d1f823171b)

22 years agoUpdate the NT_STATUS -> DOS error table.
Andrew Bartlett [Thu, 3 Jan 2002 08:36:47 +0000 (08:36 +0000)]
Update the NT_STATUS -> DOS error table.

This new table is rather different to the old one (see diff posted to the
list for a sorted list of differences) and needs a *lot* of testing.

It does however seem to line up much better with what NT is using, as
exampled by the change to the OBJECT_NAME_COLLISION DOS error, it now matches
win2k where it didn't before.

I can't see any critical errors we now get wrong, and I know that the auth
errors are correct as per my on-the-wire observations.

This table was produced (and I hope to comment this better later) by
using the ERRMAPEXTRACT smbtorture tool, a Win2k domain member and the
'name_to_ntstatus' auth module on the HEAD PDC.  This module returned
the username as the error, and the NT box was forced to give me a dos
error becouse thats all I negotiated on that connection.  Hence the map.

Andrew Bartlett
(This used to be commit a855dfb2e0b899d03087860e5462c2aed3ca4cad)

22 years agoClarify doc for SAFE_FREE.
Martin Pool [Thu, 3 Jan 2002 07:49:07 +0000 (07:49 +0000)]
Clarify doc for SAFE_FREE.
(This used to be commit 269a7d3c9ba8ca1444653c1aa56b843b8b1df08b)

22 years agoMake a couple more of the warnings also be C comments
Andrew Bartlett [Thu, 3 Jan 2002 07:42:15 +0000 (07:42 +0000)]
Make a couple more of the warnings also be C comments
(This used to be commit 8f343beae7455141ce6a5e27e46ed2970aed8e7f)

22 years agoA few changes to always output the erorr mapping even when the error was
Andrew Bartlett [Thu, 3 Jan 2002 07:36:26 +0000 (07:36 +0000)]
A few changes to always output the erorr mapping even when the error was
'squashed' or the session setup succeeded.  (How the latter occurs I don't know).
(This used to be commit d879d2ffffc47ce161afb3d96bc5c4b92de662c3)

22 years agoWorkaround some 'smarts' in Win2k.
Andrew Bartlett [Thu, 3 Jan 2002 07:00:18 +0000 (07:00 +0000)]
Workaround some 'smarts' in Win2k.

Win2k kills off connections that have issued a negprot but havn't yet issued
a session setup when a second connection appears from the same host.
(This used to be commit d47e61eb468218cae631e78edbd5d02982c78ab0)

22 years agoRe-add bail on failure.
Andrew Bartlett [Thu, 3 Jan 2002 06:10:25 +0000 (06:10 +0000)]
Re-add bail on failure.
(This used to be commit da9444d98f212af8f1b1e1df191adf3c31d50f6d)

22 years agoFix talloc msg registration
Martin Pool [Thu, 3 Jan 2002 05:57:41 +0000 (05:57 +0000)]
Fix talloc msg registration
(This used to be commit 9a473ecf96fca35d146756c0c313b156aba8d9d9)

22 years agoPut a name on lp_talloc pool
Martin Pool [Thu, 3 Jan 2002 05:57:21 +0000 (05:57 +0000)]
Put a name on lp_talloc pool
(This used to be commit 472121749460a73f684bdbd02b828e89fad101af)

22 years agoMake talloctort call talloc_describe_all before exiting
Martin Pool [Thu, 3 Jan 2002 05:57:02 +0000 (05:57 +0000)]
Make talloctort call talloc_describe_all before exiting
(This used to be commit 4877501da92762d233e5e4f24d1cb2bdd1eab8ae)

22 years agoCope nicely with pools with no name.
Martin Pool [Thu, 3 Jan 2002 05:52:27 +0000 (05:52 +0000)]
Cope nicely with pools with no name.
(This used to be commit 86abefc17260387b6b68c71ad5587ef0212162c0)

22 years agofixed ERRMAPEXTRACT torture to work with win2k
Andrew Tridgell [Thu, 3 Jan 2002 05:48:49 +0000 (05:48 +0000)]
fixed ERRMAPEXTRACT torture to work with win2k
(This used to be commit 27143900e76033026ecd5a7b4525c0150f3a535d)

22 years agosmbd children should also register for POOL_USAGE
Martin Pool [Thu, 3 Jan 2002 05:41:13 +0000 (05:41 +0000)]
smbd children should also register for POOL_USAGE
(This used to be commit b46d874f4736493bdc4244ec6cdf95e77347e7d5)

22 years agoCleanup format.
Martin Pool [Thu, 3 Jan 2002 05:36:21 +0000 (05:36 +0000)]
Cleanup format.
(This used to be commit a9b9ae47e1a11492f036b308c408c6a239a690f6)

22 years agotalloc accounting now includes number of chunks and bytes allocated.
Martin Pool [Thu, 3 Jan 2002 05:34:33 +0000 (05:34 +0000)]
talloc accounting now includes number of chunks and bytes allocated.
(This used to be commit cd25d01e42e7874bc93f6ca336c5b2cde453bb52)

22 years agoSend back talloc allocation information when POOL_USAGE is received.
Martin Pool [Thu, 3 Jan 2002 05:26:57 +0000 (05:26 +0000)]
Send back talloc allocation information when POOL_USAGE is received.
(This used to be commit 7cb8e95f9332d4c278d2aac5416f963639609d5a)

22 years agoAdd talloc_asprintf_append, which grows an existing string buffer to
Martin Pool [Thu, 3 Jan 2002 05:25:30 +0000 (05:25 +0000)]
Add talloc_asprintf_append, which grows an existing string buffer to
contain new print-formatted information.  (Also
talloc_vasprintf_append.)  Idea borrowed from glib.
(This used to be commit 53723e874885936dd67483ebf46601fc73489d17)

22 years agosmbd now sends a reply to MSG_REQ_POOL_USAGE, though it's pretty
Martin Pool [Thu, 3 Jan 2002 04:22:55 +0000 (04:22 +0000)]
smbd now sends a reply to MSG_REQ_POOL_USAGE, though it's pretty
boring so far.
(This used to be commit 9b217dce7fe89d1e36a91d7d011c2a9fe185e0d3)

22 years agosmbd should register to receive MSG_REQ_POOL_USAGE. Response should
Martin Pool [Thu, 3 Jan 2002 03:53:41 +0000 (03:53 +0000)]
smbd should register to receive MSG_REQ_POOL_USAGE.  Response should
be information about memory usage, but this is not done yet.
(This used to be commit 830a126a442bdde28fc42e23e7260c344b6534b9)

22 years agoFixed crash bug in display_print_info_2()
Tim Potter [Thu, 3 Jan 2002 03:51:13 +0000 (03:51 +0000)]
Fixed crash bug in display_print_info_2()
(This used to be commit b70f870cd98e30d0ce74d322391cc79d65c5f838)

22 years agoIgnore dmalloc.log.
Martin Pool [Thu, 3 Jan 2002 03:47:09 +0000 (03:47 +0000)]
Ignore dmalloc.log.
(This used to be commit cfa89169e0bbc9cbd7448c96139ecaf459d0af81)

22 years agoIf we receive a message that is not handled then emit a gentle warning
Martin Pool [Thu, 3 Jan 2002 03:42:33 +0000 (03:42 +0000)]
If we receive a message that is not handled then emit a gentle warning
to the log.
(This used to be commit 53dd8b45397f5de7660594b9287341f8f4c91c43)

22 years agodebug output on receipt of message.
Martin Pool [Thu, 3 Jan 2002 03:35:02 +0000 (03:35 +0000)]
debug output on receipt of message.
(This used to be commit 6bd5b7ce8ec54faefcf129fcc98cc4440bb355d6)

22 years agoOops, rerun autoconf after last change.
Martin Pool [Thu, 3 Jan 2002 03:14:51 +0000 (03:14 +0000)]
Oops, rerun autoconf after last change.
(This used to be commit 73743c2ec9da239f5d1340b68e92bdeb00cee97d)

22 years agoWelcome to preprocessor hell. Had to put a #ifndef around SAFE_FREE to
Tim Potter [Thu, 3 Jan 2002 03:07:51 +0000 (03:07 +0000)]
Welcome to preprocessor hell.  Had to put a #ifndef around SAFE_FREE to
stop smb_macros.h and tdb.h from fighting with each other.

I tried to rearrange the #include file order but that breaks other stuff.
Aargh!
(This used to be commit aae8cc6e450a6a0b33045ed1e6d49f8eebeb48b2)

22 years agoAdd instructions on using dmalloc.
Martin Pool [Thu, 3 Jan 2002 03:04:35 +0000 (03:04 +0000)]
Add instructions on using dmalloc.
(This used to be commit ee6d33a8db2afc43c8784f2e43572ae8959126e5)

22 years agoFixed crash bug in display_print_info_1()
Tim Potter [Thu, 3 Jan 2002 02:48:23 +0000 (02:48 +0000)]
Fixed crash bug in display_print_info_1()
(This used to be commit d1564fbf1f4950c12516470d4566efeca3ad79e5)

22 years agoInitialise result on success in cli_spoolss_enum_printers() so we don't get
Tim Potter [Thu, 3 Jan 2002 02:47:50 +0000 (02:47 +0000)]
Initialise result on success in cli_spoolss_enum_printers() so we don't get
stuck in an infinite loop.
(This used to be commit fe1fb6589a0a4b4cff7a0ee0267f6e09e10e2a85)

22 years agoThe werror<->nt status code map has changed and has broken all the spoolss
Tim Potter [Thu, 3 Jan 2002 02:36:08 +0000 (02:36 +0000)]
The werror<->nt status code map has changed and has broken all the spoolss
commands in rpcclient.  Replacing ERROR_INSUFFICIENT_BUFFER with
NT_STATUS_BUFFER_TOO_SMALL fixes it.  Yay!

I always thought the caller (i.e cmd_spoolss.c) should take care of the
whole requested/needed buffer size thingy though...
(This used to be commit 6c950db05a2772f11b20cc13c65a123ea8b878c2)

22 years agoRemoved unused #define
Tim Potter [Thu, 3 Jan 2002 02:28:51 +0000 (02:28 +0000)]
Removed unused #define
(This used to be commit ab1bd916cf59e12366d9005f6ce1cf6521ff02be)

22 years agodebug statement fixups.
Jeremy Allison [Wed, 2 Jan 2002 23:28:55 +0000 (23:28 +0000)]
debug statement fixups.
Merge SAFE_FREE fix in tdb from 2.2, and IRIX fix.
Jeremy.
(This used to be commit eb6607466565bcd5b3800492d0bc1ae8a44da4f6)

22 years agoremoved stuff I wasn't using
Gerald Carter [Wed, 2 Jan 2002 23:11:24 +0000 (23:11 +0000)]
removed stuff I wasn't using
(This used to be commit 27ffce157a655e267f225126f586847e5a0b8614)

22 years agosync up ldap defaults with 2.2
Gerald Carter [Wed, 2 Jan 2002 22:44:15 +0000 (22:44 +0000)]
sync up ldap defaults with 2.2
(This used to be commit 59174310d419aa835031c7a318d85fe25ba28227)

22 years agoooops./ forgot one
Gerald Carter [Wed, 2 Jan 2002 22:22:22 +0000 (22:22 +0000)]
ooops./  forgot one
(This used to be commit 501f3f3a8fb5ea27155f8c2fe266f1f659d7d22d)

22 years agofixing compile error
Gerald Carter [Wed, 2 Jan 2002 22:02:11 +0000 (22:02 +0000)]
fixing compile error
(This used to be commit 999a2f5c847c6a4336df60807e2fb546a2a4894f)

22 years agoWe should be SHLD not LINK when creating shared libraries.
Jeremy Allison [Wed, 2 Jan 2002 21:54:38 +0000 (21:54 +0000)]
We should be SHLD not LINK when creating shared libraries.
Tidyup in passdb.c
Jeremy.
(This used to be commit 676eea502a1bb2114a6e8055ecaf97ecab2e3a91)

22 years agoWe go to a lot of effort to avoid strcpy() in Samba, but its not much use if
Andrew Bartlett [Wed, 2 Jan 2002 09:02:28 +0000 (09:02 +0000)]
We go to a lot of effort to avoid strcpy() in Samba, but its not much use if
people start doing using strlen(src) in strncpy() :-)

This occured when the talloc based passdb was reverted in favor of a pstring
based one.  In the talloc version this was fine, becouse the buffer was
strlen(src) bytes long.  This no longer applies...

This doesn't seem to have broken anything, but I'm chasing up an oddity with NT
password changing from the last merge.

Test & MERGE for 2.2.3

Andrew Bartlett
(This used to be commit 673ece2841e8b60966a17ece3591f9f202807332)

22 years agoAdd prs_dump_before to dump everything from the start of the prs
Martin Pool [Wed, 2 Jan 2002 07:48:07 +0000 (07:48 +0000)]
Add prs_dump_before to dump everything from the start of the prs
buffer up to the current position, and use this to dump pipe buffers
just before parsing.
(This used to be commit 92a3ab274e6cf09a8ba39b91f8bbacba6de40b37)

22 years agoActually enforce the passdb API.
Andrew Bartlett [Wed, 2 Jan 2002 07:41:54 +0000 (07:41 +0000)]
Actually enforce the passdb API.

Thou shalt not reference SAM_ACCOUNT members directly - always use
pdb_get/pdb_set.

This is achived by making the whole of SAM_ACCOUNT have a .private member,
where the real members live.  This caught a pile of examples, and these have
beeen fixed.

The pdb_get..() functions are 'const' (have been for some time) and this
required a few small changes to constify other functions.

I've also added some debugs to the pdb get and set, they can be removed if
requested.

I've rewritten the copy_id2x_to_sam_pass() functions to use the new passdb
interface, but I need the flags info to do it properly.

The pdb_free_sam() funciton now blanks out the LM and NT hashes, and as such
I have removed many extra 'samr_clear_sam_passwd(smbpass)' calls as a result.

Finally, any and all testing is always appriciated - but the basics seem to
work.

Andrew Bartlett
(This used to be commit d3dd28f6c443187b8d820d5a39c7c5b3be2fa95c)

22 years agoMake user enumeration work for w2k and win9x.
Jeremy Allison [Wed, 2 Jan 2002 07:27:33 +0000 (07:27 +0000)]
Make user enumeration work for w2k and win9x.
This means different return sizes depending on client bugs. This sucks :-(.
Jeremy.
(This used to be commit f6592628eb526c487069bb3fcd809aca930e668e)

22 years agoAnother touch of 'const'
Andrew Bartlett [Wed, 2 Jan 2002 06:55:21 +0000 (06:55 +0000)]
Another touch of 'const'
(This used to be commit 3d812aacff98eec62c748cb89109a2e58806d92d)

22 years agoDoc.
Martin Pool [Wed, 2 Jan 2002 06:29:56 +0000 (06:29 +0000)]
Doc.
(This used to be commit b354163834e0f2da7d3caacfe8d2ac6e2a6949e8)

22 years agoAlso capture received data
Martin Pool [Wed, 2 Jan 2002 06:08:02 +0000 (06:08 +0000)]
Also capture received data
(This used to be commit 93fadcd1118b390605d2504bee63a1e8b6373ac5)

22 years agostruct cli_state remembers the pipe name that it's talking to, if any,
Martin Pool [Wed, 2 Jan 2002 05:39:49 +0000 (05:39 +0000)]
struct cli_state remembers the pipe name that it's talking to, if any,
so that we can print it in later debug messages.

Call prs_dump to dump out requests sent by the client at sufficiently
high debug levels.
(This used to be commit 9973b22b34dc2a88a20b821d4e69f39d2a6aa6a3)

22 years agostruct cli_state remembers the pipe name that it's talking to, if any,
Martin Pool [Wed, 2 Jan 2002 05:38:09 +0000 (05:38 +0000)]
struct cli_state remembers the pipe name that it's talking to, if any,
so that we can print it in later debug messages.
(This used to be commit 37ae84f782e1de6fcea92acb2189683cdf8e7e92)

22 years agoMinor update to make the output 'real C'. (The output is intended to be a C
Andrew Bartlett [Wed, 2 Jan 2002 03:54:40 +0000 (03:54 +0000)]
Minor update to make the output 'real C'.  (The output is intended to be a C
format table for inclusion back into Samba).

Andrew Bartlett
(This used to be commit 95abb2473bb4f93df163a0e8af79d5292e1389b3)

22 years agoRemoved reference to rpc_client/cli_netlogon.o from dependencies for
Tim Potter [Wed, 2 Jan 2002 00:52:30 +0000 (00:52 +0000)]
Removed reference to rpc_client/cli_netlogon.o from dependencies for
samsync.  The libsmb version should do fine.
(This used to be commit 001fe3481f26e27964b3d60c067524b45f085304)

22 years agothe pdbedit tool manpage
Simo Sorce [Wed, 2 Jan 2002 00:40:47 +0000 (00:40 +0000)]
the pdbedit tool manpage
(This used to be commit 4aecb650e1ece234fb7359270deb74fe1c1a4a16)

22 years agotry to handle broken const in headers on cray unicos
Andrew Tridgell [Tue, 1 Jan 2002 06:55:33 +0000 (06:55 +0000)]
try to handle broken const in headers on cray unicos
(This used to be commit 8143052e6917d4ae774192ed463ea7359cf0a5fb)

22 years agoThis brings the NT->DOS error mapping into better line with what NT does.
Andrew Bartlett [Tue, 1 Jan 2002 06:16:43 +0000 (06:16 +0000)]
This brings the NT->DOS error mapping into better line with what NT does.

I'll post the changes to the actual map to the list for comment, but this fixes
the 'unknown' case.

Andrew Bartlett
(This used to be commit 024843a2cedb0b9f06a3351c5838caea372b6c5c)

22 years agoAdd a function to convert 'NT_STATUS...' strings back into their actual error
Andrew Bartlett [Tue, 1 Jan 2002 05:52:02 +0000 (05:52 +0000)]
Add a function to convert 'NT_STATUS...' strings back into their actual error
code.

Andrew Bartlett
(This used to be commit f0089b089b319009576bb39a076397bb44aff628)

22 years agoAllow usernames in the form of 'NT_STATUS_....' to map to that as the error
Andrew Bartlett [Tue, 1 Jan 2002 05:51:03 +0000 (05:51 +0000)]
Allow usernames in the form of 'NT_STATUS_....' to map to that as the error
when using the 'name_to_ntstatus' auth module.

This could be useful in testing.

Andrew Bartlett
(This used to be commit 5cdc67d0bda8ef41305cae9c5be70d11593ffdd8)

22 years agoNow that winbind doesn't rely on this, we may as well remove it...
Andrew Bartlett [Tue, 1 Jan 2002 05:49:27 +0000 (05:49 +0000)]
Now that winbind doesn't rely on this, we may as well remove it...

Andrew Bartlett
(This used to be commit 6673fdda3cb6b90189d8f82274fdffa89f68101b)

22 years agoFurther rpc_client removal, this time from winbindd.
Andrew Bartlett [Tue, 1 Jan 2002 04:50:45 +0000 (04:50 +0000)]
Further rpc_client removal, this time from winbindd.

Also removed the dependency on auth_util.o, which makes things nicer.

Finally, this kills off the NECESSARY_BECAUSE_SAMBA_DEPENDENCIES_ARE_SO_BROKEN_OBJ
makefile variable - becouse Samba dependencies are starting to be sane again!

Andrew Bartlett
(This used to be commit 4609edcac3b70c11025f0c5aa0ddbeed93369c84)

22 years agorenamed ans1.h to asn_1.h to prevent conflict caused by krb5 headers
Andrew Tridgell [Tue, 1 Jan 2002 04:05:10 +0000 (04:05 +0000)]
renamed ans1.h to asn_1.h to prevent conflict caused by krb5 headers
on some platforms using "" instead of <> in include statements
(This used to be commit d0ba307032340a22d77cb1d8fc78b4234e1a963c)

22 years agoA farily large commit:
Andrew Bartlett [Tue, 1 Jan 2002 03:10:32 +0000 (03:10 +0000)]
A farily large commit:

 - Move rpc_client/cli_trust.c to smbd/change_trust_pw.c
  - It hasn't been used by anything else since smbpasswd lost its -j

 - Add a TALLOC_CTX to the auth subsytem.  These are only valid for the length
   of the calls to the individual modules, if you want a longer context hide it
   in your private data.

   Similarly, all returns (like the server_info) should still be malloced.

 - Move the 'ntdomain' module (security=domain in oldspeak) over to use the new
   libsmb domain logon code.  Also rework much of the code to use some better
   helper functions for the connection - getting us much better error returns
   (the new code is NTSTATUS).

   The only remaining thing to do is to figure out if tpot's 0xdead 0xbeef for
   the LUID feilds is sufficient, or if we should do random LUIDs as per the old
   code.

   Similarly, I'll move winbind over to this when I get a chance.

This leaves the SPOOLSS code and some cli_pipe code as the only stuff still in
rpc_client, at least as far as smbd is concerned.

While I've given this a basic rundown, any testing is as always appriciated.

Andrew Bartlett
(This used to be commit d870edce76ecca259230fbdbdacd0c86793b4837)

22 years agoAdd a specialised version of tpot's libsmb samlogon code for use with
Andrew Bartlett [Tue, 1 Jan 2002 02:34:29 +0000 (02:34 +0000)]
Add a specialised version of tpot's libsmb samlogon code for use with
presupplied challange-response pairs, and only using the 'network' version.

This will be used to move the auth subsystem over to a libsmb (rather than
rpc_client) base.

Andrew Bartlett
(This used to be commit fe9d77791583737320f8c7560861168df7388c2f)

22 years agoFix up C99 comment.
Andrew Bartlett [Tue, 1 Jan 2002 02:31:32 +0000 (02:31 +0000)]
Fix up C99 comment.
// -> /* */
(This used to be commit a308abbab717df56b982adf1717da96603d2045f)

22 years agoNamed constants are always much better than magic numbers...
Andrew Bartlett [Tue, 1 Jan 2002 00:18:47 +0000 (00:18 +0000)]
Named constants are always much better than magic numbers...
(I defined the constants when I put in 'net rpc shutdown')

Andrew Bartlett
(This used to be commit 4d90cc1d991f3894b9f39b2a75078148834701bb)

22 years agolast_enum not used.
Jeremy Allison [Mon, 31 Dec 2001 23:24:48 +0000 (23:24 +0000)]
last_enum not used.
Jeremy.
(This used to be commit efbec935fe727d5d5bd852c7bae9baf92df18686)

22 years agoFixed enumeration of a large (<1500) users from a Samba PDC to a W2k
Jeremy Allison [Mon, 31 Dec 2001 22:37:51 +0000 (22:37 +0000)]
Fixed enumeration of a large (<1500) users from a Samba PDC to a W2k
member server. Firstly, use the same max enumeration size (0x400) as W2K
uses, otherwise W2K won't ask for any more. Secondly, if a enumeration
request with a non-zero offset comes in on a handle that hasn't started
an enumeration, don't bitch about it (return NT_STATUS_UNSUCCESSFUL),
just load the db on that handle and return at that offset.
Jeremy.
(This used to be commit 0b7da4a50ea02e28ab23e71de1e5f8b9194a9af3)

22 years agoadded a simple test to see whether building shared libraries actually
Andrew Tridgell [Mon, 31 Dec 2001 22:10:24 +0000 (22:10 +0000)]
added a simple test to see whether building shared libraries actually
works
(This used to be commit 3aeefbca4f272f57e83e753177ee6e8157b2dbd5)

22 years agoops, froget to set the values.
Simo Sorce [Mon, 31 Dec 2001 16:01:04 +0000 (16:01 +0000)]
ops, froget to set the values.
jerry, can you look at theis where we use standard_sub_advanced() fns?
I think this structure should be backported to 2.2 because we do not know if the SAM_ACCOUNT strings have enough space to contain the "substituted" string.
(Yes, just now we know they are pstrings, but we may change them into alloced one, I'm a strong suported of alloced strings as 1024 bytes are not always enough and are often too much)
(This used to be commit 29b3b5e9292805aa65e887755567abd50f74e5cb)

22 years agoconst religion
Simo Sorce [Mon, 31 Dec 2001 15:48:32 +0000 (15:48 +0000)]
const religion
(This used to be commit c0904d96170a9166b8cd405b75ce4a9bbc32ad1b)

22 years agoport mods from 2.2
Simo Sorce [Mon, 31 Dec 2001 15:48:03 +0000 (15:48 +0000)]
port mods from 2.2
(This used to be commit f796f18a83cd2fc0988612aa38c794f005efbfaf)

22 years agoreverted to 1.24 and manually merged in changes from 2.2
Gerald Carter [Mon, 31 Dec 2001 14:39:26 +0000 (14:39 +0000)]
reverted to 1.24 and manually merged in changes from 2.2
(This used to be commit 466f515240aaeca7b0fe2b7b3474ab23cab687cc)

22 years agocope with systems that don't have full gssapi libs
Andrew Tridgell [Mon, 31 Dec 2001 14:31:13 +0000 (14:31 +0000)]
cope with systems that don't have full gssapi libs
(This used to be commit c4d928e55fe99a3a1c4e53508a44949f92d74219)

22 years agomore irix -64 portability fixes
Andrew Tridgell [Mon, 31 Dec 2001 14:05:22 +0000 (14:05 +0000)]
more irix -64 portability fixes
(This used to be commit 65e857b36e170e3ecd78bf6695ae73342e9c04cd)

22 years ago- portablitity fixes for cc -64 on irix
Andrew Tridgell [Mon, 31 Dec 2001 13:46:26 +0000 (13:46 +0000)]
- portablitity fixes for cc -64 on irix
- fixed gid* bug in rpc_server
(This used to be commit 48aa90c48c5f0e3054c4acdc49668e222e7c0d36)

22 years agoEnsure the output cli can't have spurious values if the connection fails...
Andrew Bartlett [Mon, 31 Dec 2001 13:06:10 +0000 (13:06 +0000)]
Ensure the output cli can't have spurious values if the connection fails...
(This used to be commit 2d1612dd3560bb5ef35fa1eeee00e3d7976bcd62)

22 years agoAdd 'net rpc shutdown' and 'net rpc abortshutdown'.
Andrew Bartlett [Mon, 31 Dec 2001 13:00:59 +0000 (13:00 +0000)]
Add 'net rpc shutdown' and 'net rpc abortshutdown'.

These two little features are very useful, but the passing of options about
needs some serious work.  The popt stuff in the shutdown code is #ifdef'ed out
until the main popt loop can be convinced not to chew on the options :-(

Andrew Bartlett
(This used to be commit 51c985be7fbfe5627c5b2590e7610653e7be98e3)

22 years agoFix up the comment in the copyright header
Andrew Bartlett [Mon, 31 Dec 2001 12:50:44 +0000 (12:50 +0000)]
Fix up the comment in the copyright header
(This used to be commit 45042bef7cdede6f991572677654903bbf7d9144)

22 years agoGive the main loop talloc context a name (using mbp's new talloc naming
Andrew Bartlett [Mon, 31 Dec 2001 12:41:24 +0000 (12:41 +0000)]
Give the main loop talloc context a name (using mbp's new talloc naming
system).

Andrew Bartlett
(This used to be commit f0c301a12eb142add488a2da55591269dfc15f77)

22 years agoMake --with-tdbsam compile again, given the new 'am I setting a default' flags.
Andrew Bartlett [Mon, 31 Dec 2001 11:25:48 +0000 (11:25 +0000)]
Make --with-tdbsam compile again, given the new 'am I setting a default' flags.

Andrew Bartlett
(This used to be commit 20d7c5d9b9bc0a426897f21b3350933602abdbf1)

22 years agoAllow this to build without LDAP, as per the example below it.
Andrew Bartlett [Mon, 31 Dec 2001 11:14:38 +0000 (11:14 +0000)]
Allow this to build without LDAP, as per the example below it.

Andrew Bartlett
(This used to be commit f60e4450018fc06c9f8ce18e62c29fd968d55daa)

22 years agofix compile error
Gerald Carter [Mon, 31 Dec 2001 02:04:08 +0000 (02:04 +0000)]
fix compile error
(This used to be commit c946c6bbc8192f5f0f3706d1b4a6cca0a994f36b)

22 years agoremoved extern samlogon_user
Gerald Carter [Mon, 31 Dec 2001 01:56:05 +0000 (01:56 +0000)]
removed extern samlogon_user
(This used to be commit a7dc0febe4285b70d3ff5b27505b2681731bfba1)

22 years agoremove samlogon_user
Gerald Carter [Mon, 31 Dec 2001 00:09:15 +0000 (00:09 +0000)]
remove samlogon_user
(This used to be commit a5f4559b2aade54f1c0f717eea21881f482faff2)

22 years agosome merges from 2.2. Still need to merge in changes from pdb_tdb.c
Gerald Carter [Mon, 31 Dec 2001 00:06:51 +0000 (00:06 +0000)]
some merges from 2.2.  Still need to merge in changes from pdb_tdb.c
but it will take more time as I don't want to loose any fixes that
are only in HEAD.
(This used to be commit efcde5d9d8ce44c0613764504d797be54ba21473)

22 years agofreeing the wrong pointer, sorry my mistake.
Simo Sorce [Sun, 30 Dec 2001 22:55:04 +0000 (22:55 +0000)]
freeing the wrong pointer, sorry my mistake.
(This used to be commit ce7e89949ae1755f9faa008784a5b1a9b137945e)

22 years agoUnicode byte ording fix from Benjamin Kuit <bj@it.uts.edu.au>
Tim Potter [Sun, 30 Dec 2001 21:25:46 +0000 (21:25 +0000)]
Unicode byte ording fix from Benjamin Kuit <bj@it.uts.edu.au>
(This used to be commit 6b7e9d03cf6093f1108642deddb0f8cc42e59067)

22 years agoutil_sid.c - respect a const variabile (addedd strdup)
Simo Sorce [Sun, 30 Dec 2001 19:21:25 +0000 (19:21 +0000)]
util_sid.c - respect a const variabile (addedd strdup)
cli_reg.c  - indentation
pdb_ldap.c - some checks on init fns parameters
pdb_tdb.c  - some checks on init fns parameters + make sure we close the db on failure
(This used to be commit 49f5cb7a3df6d673f86e6769319aa657e30d8380)

22 years agoAdd a pile of doxygen style comments to various parts of Samba. Many of these
Andrew Bartlett [Sun, 30 Dec 2001 10:54:58 +0000 (10:54 +0000)]
Add a pile of doxygen style comments to various parts of Samba.  Many of these
probably will never actually be genearted, but I like the style in any case.

Also fix a segfault in 'net rpc' when the login failed and a small memory leak
on failure in the auth_info.c code.

Andrew Bartlett
(This used to be commit 2efae7cc522651c22fb120835bc800645559b63e)

22 years agoFinally remove these files, which moved (by cvs backend magic) to source/auth
Andrew Bartlett [Sun, 30 Dec 2001 10:50:46 +0000 (10:50 +0000)]
Finally remove these files, which moved (by cvs backend magic) to source/auth
at the start of the month.
(This used to be commit 30ef625897cd025e1895c932b55dee027f060413)

22 years agoFinish idra's cleanup of the RPC remote shutdown code.
Andrew Bartlett [Sun, 30 Dec 2001 10:19:56 +0000 (10:19 +0000)]
Finish idra's cleanup of the RPC remote shutdown code.
(This used to be commit 79031b68ce6bdf882d9c9bd4f3310f597e0c1fda)

22 years agoremove unneaded memory leaking code.
Simo Sorce [Sun, 30 Dec 2001 08:37:34 +0000 (08:37 +0000)]
remove unneaded memory leaking code.
(This used to be commit d2c663185e13974f953a60adf1b191b56bfa08f4)

22 years agoFix the compile on systems without a full kerberos kit.
Andrew Bartlett [Sun, 30 Dec 2001 06:20:23 +0000 (06:20 +0000)]
Fix the compile on systems without a full kerberos kit.

Andrew Bartlett
(This used to be commit 33ae29028bffccf5a9cdd8d44b08c27b9d8fd982)

22 years agoMake Samba compile on RH 6.2 again.
Andrew Bartlett [Sun, 30 Dec 2001 05:59:43 +0000 (05:59 +0000)]
Make Samba compile on RH 6.2 again.

We now include the libber.h file if required, but currently we just don't use
ldap.  (I'll chase this up).

In the meantime, I've moved the ads_status code about, its now in its own file,
and has a couple of #ifdefs to allow smbd to link - becouse the lack of LDAP
caused HAVE_ADS to be undefined. (I hope its not too ugly).

Andrew Bartlett
(This used to be commit 14407c87e2dcccae1784290e3eb7a2d611516aff)

22 years agoWhen running interactive we want to set our own process group for
Jeremy Allison [Sun, 30 Dec 2001 01:46:38 +0000 (01:46 +0000)]
When running interactive we want to set our own process group for
signal management.
Jeremy.
(This used to be commit fffae94dd5699f44c0b1c8081587deafd89b3fc0)

22 years agopdb_getsampwnuid() merge from 2.2
Gerald Carter [Sun, 30 Dec 2001 00:03:47 +0000 (00:03 +0000)]
pdb_getsampwnuid() merge from 2.2
(This used to be commit 54cbfc7ebcdf1bd2094407b689b0050f0abfa46f)

22 years agoDocumented -i modes for nmbd/smbd.
Jeremy Allison [Sat, 29 Dec 2001 21:15:40 +0000 (21:15 +0000)]
Documented -i modes for nmbd/smbd.
Jeremy.
(This used to be commit a076e2e4c512cd2ef2f9c38447c44d93e4b6ac57)

22 years agoFixup -i interactive modes.
Jeremy Allison [Sat, 29 Dec 2001 21:13:53 +0000 (21:13 +0000)]
Fixup -i interactive modes.
Jeremy.
(This used to be commit 9343b613d3778b0330bc4d610d3befd363797360)

22 years agoRemoved extra lp_adduser() call.
Jeremy Allison [Sat, 29 Dec 2001 20:29:43 +0000 (20:29 +0000)]
Removed extra lp_adduser() call.
Fixed up error returns in get_correct_cversion().
Jeremy.
(This used to be commit 7ce2d1fe37d2be26c407f3dc9427851d00ca216a)

22 years agofile Samba-LDAP-HOWTO.sgml was initially added on branch SAMBA_2_2.
Gerald Carter [Sat, 29 Dec 2001 16:20:49 +0000 (16:20 +0000)]
file Samba-LDAP-HOWTO.sgml was initially added on branch SAMBA_2_2.
(This used to be commit d57c43fd05d8759f09c8c460baeb513a8ed41479)

22 years agopassing NULL to print_queue_status()'s status parameter could end in a segfault
Simo Sorce [Sat, 29 Dec 2001 09:52:24 +0000 (09:52 +0000)]
passing NULL to print_queue_status()'s status parameter could end in a segfault
(This used to be commit 79254d2b0490ba400832ef6d460895d45cc4273f)