samba.git
18 years agocouple of updates mentioned on samba@samba.org
Gerald Carter [Thu, 20 Dec 2001 21:25:20 +0000 (21:25 +0000)]
couple of updates mentioned on samba@samba.org
(This used to be commit 95308453b256fc51cbf1a2b2726ba8db7da1e80b)

18 years agoSetup global_myworkgroup. Needed for secrets fetch code.
Jeremy Allison [Thu, 20 Dec 2001 18:37:43 +0000 (18:37 +0000)]
Setup global_myworkgroup. Needed for secrets fetch code.
Jeremy.
(This used to be commit 057e91c1c3833516d03b492f3ebe489d8216a0ba)

18 years agomerge from 2.2
Gerald Carter [Thu, 20 Dec 2001 15:09:23 +0000 (15:09 +0000)]
merge from 2.2
(This used to be commit 72d3b160229ce9ab8497579ee79668738a70a81f)

18 years agopreparing for release of 3.0-alpha11
Samba Release Account [Thu, 20 Dec 2001 10:21:56 +0000 (10:21 +0000)]
preparing for release of 3.0-alpha11
(This used to be commit 5ed31faeb1f3cddc0e61acc63f96119e26f2b529)

18 years agofixed more warnings on irix
Andrew Tridgell [Thu, 20 Dec 2001 10:04:32 +0000 (10:04 +0000)]
fixed more warnings on irix
(This used to be commit 2ffefba86997c9d6bc2a9b6dac1e576f4b64c777)

18 years agofixed warnings on irix and crash bug on big endian machines
Andrew Tridgell [Thu, 20 Dec 2001 10:02:30 +0000 (10:02 +0000)]
fixed warnings on irix and crash bug on big endian machines
(This used to be commit cc6c263993eaf0715f231fc80ca7e6e65694548b)

18 years agofixed sscanf() of gid_t values
Andrew Tridgell [Thu, 20 Dec 2001 09:48:02 +0000 (09:48 +0000)]
fixed sscanf() of gid_t values
(This used to be commit 102af994de6bbfbe94f13c1880fc31c6414c9f8e)

18 years agodon't use server_info after its been freed
Andrew Tridgell [Thu, 20 Dec 2001 09:32:03 +0000 (09:32 +0000)]
don't use server_info after its been freed
(This used to be commit ee161a57289409e2fa43e33b045473077c7b6ba5)

18 years agosupport "map to guest" with spnego
Andrew Tridgell [Thu, 20 Dec 2001 09:06:53 +0000 (09:06 +0000)]
support "map to guest" with spnego
(This used to be commit e873d0ff1eee9442ff6152d666b8d874b6a01972)

18 years agoforgot to commit this file from remus
Andrew Tridgell [Thu, 20 Dec 2001 07:46:24 +0000 (07:46 +0000)]
forgot to commit this file from remus
(This used to be commit 7984ae0121ba327309ca5c52674e03fc1ad7e923)

18 years agoadded net lookup command
Andrew Tridgell [Thu, 20 Dec 2001 07:42:00 +0000 (07:42 +0000)]
added net lookup command
(This used to be commit 51268c512dbae94aba308668df9facaf15a2ce9e)

18 years agoIgnore torture.tdb
Martin Pool [Thu, 20 Dec 2001 07:22:54 +0000 (07:22 +0000)]
Ignore torture.tdb
(This used to be commit 79feca4d25aaa7e15553a10707efdb3003fed9cf)

18 years agonet now sends its debug to stderr so its output can be relied upon in
Andrew Tridgell [Thu, 20 Dec 2001 07:13:47 +0000 (07:13 +0000)]
net now sends its debug to stderr so its output can be relied upon in
scripts
(This used to be commit 6d2f7ed708e75687d23f432ba9a186e88fa14118)

18 years agofixed long filenames on win98
Andrew Tridgell [Thu, 20 Dec 2001 06:52:45 +0000 (06:52 +0000)]
fixed long filenames on win98
the fstype must not be null terminated or win98 doesn't recognise it
(This used to be commit c8a040f2aa733e926280af010513849b6406741d)

18 years agomuch better auto-init of valid_table[]. This should just about remove
Andrew Tridgell [Thu, 20 Dec 2001 06:18:52 +0000 (06:18 +0000)]
much better auto-init of valid_table[]. This should just about remove
the need for valid.dat
(This used to be commit 0cfd0a5e543181b1384f7afee93fbaf3ccb2b999)

18 years agoGrr - numbers printed in hexadecimal should be preceeded by 0x
Tim Potter [Thu, 20 Dec 2001 05:10:50 +0000 (05:10 +0000)]
Grr - numbers printed in hexadecimal should be preceeded by 0x
(This used to be commit 7d8082a8ad7d5de5daf653903efd36fb84b3cedc)

18 years agoAdded some comments showing hex values of some constants.
Tim Potter [Thu, 20 Dec 2001 05:05:58 +0000 (05:05 +0000)]
Added some comments showing hex values of some constants.
(This used to be commit b3aff6b5a35da3660ede060b42439324a2309644)

18 years agomark '.' as a valid character
Andrew Tridgell [Thu, 20 Dec 2001 04:12:36 +0000 (04:12 +0000)]
mark '.' as a valid character
(This used to be commit 85f04fa61dffb15bc034dd756ee75b997a36d892)

18 years agoAdd --enable-dmalloc to link against the dmalloc malloc debugger.
Martin Pool [Thu, 20 Dec 2001 04:01:44 +0000 (04:01 +0000)]
Add --enable-dmalloc to link against the dmalloc malloc debugger.
It's not as strong as Insure, but it's free, reasonably efficient and
works on every platform.
(This used to be commit e76d27fcdb33df5212ca5b0ce53c77ed8ca58906)

18 years agonet ads password and net ads chostpass commands from Remus Koos
Andrew Tridgell [Thu, 20 Dec 2001 03:54:52 +0000 (03:54 +0000)]
net ads password and net ads chostpass commands from Remus Koos
(This used to be commit 412e79c448bf02e3097b5c14a36fe0172d8d2895)

18 years agoAdded AC_CHECK_FUNCS(syslog vsyslog).
Jeremy Allison [Wed, 19 Dec 2001 19:18:37 +0000 (19:18 +0000)]
Added AC_CHECK_FUNCS(syslog vsyslog).
nsswitch code uses vsyslog without checking for it.
Provide replacement for vsyslog in lib/snprintf if not found by configure.
Jeremy.
(This used to be commit ab2e55cdb376d6699c9a09fac243fba7d3840447)

18 years agoAllow ACL set to fail gracefully on HP HFS filesystems.
Jeremy Allison [Wed, 19 Dec 2001 17:47:19 +0000 (17:47 +0000)]
Allow ACL set to fail gracefully on HP HFS filesystems.
Jeremy.
(This used to be commit 2d7b81e692ac2bcfd6e31223d3f8545c255cb47c)

18 years agouse "ads server" option if set for primary domain
Andrew Tridgell [Wed, 19 Dec 2001 13:33:08 +0000 (13:33 +0000)]
use "ads server" option if set for primary domain
(This used to be commit 1bf5c1a46f4c3f44054ce8fcbc551cdb72683f2b)

18 years agopreparing for release of 3.0-alpha10
Samba Release Account [Wed, 19 Dec 2001 13:13:05 +0000 (13:13 +0000)]
preparing for release of 3.0-alpha10
(This used to be commit c0ff2743790c78962b111f9be69a1642185b528e)

18 years agoadd support for mixtures of ADS/NT4 domains, as long as the primary
Andrew Tridgell [Wed, 19 Dec 2001 12:38:52 +0000 (12:38 +0000)]
add support for mixtures of ADS/NT4 domains, as long as the primary
domain is ADS
(This used to be commit e97b40e09427c2c5f0a497f9432af08d6d6762f2)

18 years agomuch better ADS error handling system
Andrew Tridgell [Wed, 19 Dec 2001 12:21:12 +0000 (12:21 +0000)]
much better ADS error handling system
(This used to be commit 05a90a28843e0d69183a49a76617c5f32817df16)

18 years agowe only have gss_ fns on a krb5 capable box
Andrew Tridgell [Wed, 19 Dec 2001 09:58:52 +0000 (09:58 +0000)]
we only have gss_ fns on a krb5 capable box
(This used to be commit 344b786efe00f72ed81f0eeb4d422c655d866557)

18 years agoadded trusted realm support to ADS authentication
Andrew Tridgell [Wed, 19 Dec 2001 09:53:30 +0000 (09:53 +0000)]
added trusted realm support to ADS authentication

the method used for checking if a domain is a trusted domain is very
crude, we should really call a backend fn of some sort. For now I'm
using winbindd to do the dirty work.
(This used to be commit adf44a9bd0d997ba4dcfadc564a29149531525af)

18 years ago- added initial support for trusted domains in winbindd_ads
Andrew Tridgell [Wed, 19 Dec 2001 08:44:23 +0000 (08:44 +0000)]
- added initial support for trusted domains in winbindd_ads
- gss error code patch from a.bokovoy@sam-solutions.net
- better sid dumping in ads_dump
- fixed help in wbinfo
(This used to be commit ee1c3e1f044b4ef62169ad74c5cac40eef81bfda)

18 years agobetter nsstest error checking
Andrew Tridgell [Wed, 19 Dec 2001 08:40:50 +0000 (08:40 +0000)]
better nsstest error checking
(This used to be commit 7348a969bc994e6ef267449aadfdf6321c27baa6)

18 years agofixed sid_compare_domain()
Andrew Tridgell [Wed, 19 Dec 2001 08:37:03 +0000 (08:37 +0000)]
fixed sid_compare_domain()
(This used to be commit c11c27b2812ceb06a52afbb7662f82a8676b1707)

18 years agoUse less memory, but scribble all over it, just in case there's
Martin Pool [Wed, 19 Dec 2001 08:18:07 +0000 (08:18 +0000)]
Use less memory, but scribble all over it, just in case there's
something wrong with the way it's allocated.
(This used to be commit a7b052d991bf39b6f3391f78b95b18ebb8ef596c)

18 years agoDoc how to reply to messages.
Martin Pool [Wed, 19 Dec 2001 07:49:25 +0000 (07:49 +0000)]
Doc how to reply to messages.
(This used to be commit e2b080587c4d6e147cf7274fa7e09e89ae2083c3)

18 years agoMake TALLOC_CTX and talloc_chunk private to talloc.c.
Martin Pool [Wed, 19 Dec 2001 07:36:32 +0000 (07:36 +0000)]
Make TALLOC_CTX and talloc_chunk private to talloc.c.

Add a global singly-linked list of all active talloc pools, so that we
can eventually show how much memory is used for different purposes.
This also gives a check that pools are not being doubly freed.

talloc_init_named now handle a NULL name properly (ie does nothing)

Add accessor talloc_pool_name().
(This used to be commit 4c6c03c8c7c18762dd9ef1a1bd88350b8960542f)

18 years agoDoc
Martin Pool [Wed, 19 Dec 2001 06:22:23 +0000 (06:22 +0000)]
Doc
(This used to be commit 7da982e9268be7eb93fe7d6ad7da5b33ce44181c)

18 years agoDoc
Martin Pool [Wed, 19 Dec 2001 06:00:19 +0000 (06:00 +0000)]
Doc
(This used to be commit 5dc2827b6eaca8f7b833fdf9977528084e3a3ff0)

18 years agoPut PRINTF_ATTRIBUTE on talloc_init_named, talloc_asprintf,
Martin Pool [Wed, 19 Dec 2001 05:02:42 +0000 (05:02 +0000)]
Put PRINTF_ATTRIBUTE on talloc_init_named, talloc_asprintf,
talloc_vasprintf.
(This used to be commit e6be48671d520f952be0b6dc0848569d0d834179)

18 years agoDoc.
Martin Pool [Wed, 19 Dec 2001 04:55:58 +0000 (04:55 +0000)]
Doc.
(This used to be commit 5b6c22a209a26cb9adbf6d7733d396038c729633)

18 years agoStart adding some debugging features to talloc based on Samba's
Martin Pool [Wed, 19 Dec 2001 04:50:10 +0000 (04:50 +0000)]
Start adding some debugging features to talloc based on Samba's
ancient mem_man.c:

Each TALLOC_CTX now has a field to store its purpose, to aid in
tracking down memory bloat.  A new call talloc_init_named() should be
used instead of talloc_init() so that this is set.

Added talloc_vasprintf to be called by varargs functions.
(This used to be commit 25b97a743573b8c5e0ac886e4bfab581c11b3714)

18 years agoAdd a very trivial talloc torture program, bin/talloctort. Not built
Martin Pool [Wed, 19 Dec 2001 04:46:35 +0000 (04:46 +0000)]
Add a very trivial talloc torture program, bin/talloctort.  Not built
by default.
(This used to be commit e3390669958f01672f5638ebf975e8bd4fd67665)

18 years agoFix for extra capabilities from Urban Widmark <urban@teststation.com>.
Jeremy Allison [Wed, 19 Dec 2001 03:14:54 +0000 (03:14 +0000)]
Fix for extra capabilities from Urban Widmark <urban@teststation.com>.
Jeremy.
(This used to be commit e943ace4f0fc70476668b0445acd91314a2e2a01)

18 years agoPatch from dan_thibadeau@hp.com to allow domain set in authfile.
Jeremy Allison [Wed, 19 Dec 2001 02:50:44 +0000 (02:50 +0000)]
Patch from dan_thibadeau@hp.com to allow domain set in authfile.
Jeremy.
(This used to be commit 5700cbbd3fc0175932890df5f5ceb4931ba50dd3)

18 years agoadded info level 1 to samr_query_alias()
Jean-François Micouleau [Wed, 19 Dec 2001 00:15:29 +0000 (00:15 +0000)]
added info level 1 to samr_query_alias()
(This used to be commit 589aa4fe226ee5bdae0a244631193714b0b556ac)

18 years agoFixup JF's weird SID return :-).
Jeremy Allison [Tue, 18 Dec 2001 19:44:14 +0000 (19:44 +0000)]
Fixup JF's weird SID return :-).
Jeremy
(This used to be commit 7b8fb8d85c406b8755f60cf14dc2377bc59eda53)

18 years agoTidyup utmp code to cope with hostname = NULL.
Jeremy Allison [Tue, 18 Dec 2001 08:19:02 +0000 (08:19 +0000)]
Tidyup utmp code to cope with hostname = NULL.
Jeremy
(This used to be commit 2a1b531a1c4f1a4772c95c867f35eac50ed1c7fa)

18 years agofixed handling of empty or dead domain in wbinfo -g
Andrew Tridgell [Tue, 18 Dec 2001 06:22:15 +0000 (06:22 +0000)]
fixed handling of empty or dead domain in wbinfo -g
(This used to be commit 2c54cfbc475cd22d0e906898a07d4e0576c64c80)

18 years agoA fix to override the location of a user's home directory if it is
Tim Potter [Tue, 18 Dec 2001 06:11:32 +0000 (06:11 +0000)]
A fix to override the location of a user's home directory if it is
specified in the [homes] section of the smb.conf file.

Jeremy, can you take a look at this?  This is in response to someone on the
samba mailing list worrying about it.

Tim.

From: Phil Thompson <philnanne@mediaone.net>
To: samba@lists.samba.org
Subject: Different [homes] behavior in 2.2.2
X-Original-Date: Mon, 17 Dec 2001 23:09:28 -0500

Is it possible to configure samba to disregard the home directory in the
passwd file when using [homes]?  Even though an alternate "path" is set
in [homes], the service fails since the unix home directory is invalid
(nonexistent) on the server.

[...]

This behavior of validating the user's home dir as set in the passwd
files appears to be new
in 2.2.2 and the latest CVS. Anyway to work around this?
(This used to be commit c15dec74a360c6b20f536708e00e61d1d27dcbfc)

18 years agoFixed uninitialised variable warning.
Tim Potter [Tue, 18 Dec 2001 05:08:48 +0000 (05:08 +0000)]
Fixed uninitialised variable warning.
(This used to be commit 5095941dcb312d75c232d15232d5998ca05b632f)

18 years agoRemoved unused function, delete_fn()
Tim Potter [Tue, 18 Dec 2001 05:04:09 +0000 (05:04 +0000)]
Removed unused function, delete_fn()
(This used to be commit f26e8205cff63967b9c1659b8e6ad71cbe36dace)

18 years agoFixed bad args to debug statements.
Tim Potter [Tue, 18 Dec 2001 05:00:07 +0000 (05:00 +0000)]
Fixed bad args to debug statements.
(This used to be commit 5e0f0716ca9826de110fd9eeaf231970e7c19b42)

18 years agoI'm pretty sure we need to return our netbios name for LSA_QUERY_INFO
Jeremy Allison [Tue, 18 Dec 2001 02:17:46 +0000 (02:17 +0000)]
I'm pretty sure we need to return our netbios name for LSA_QUERY_INFO
level 5 when we're a standalone server. This makes the security dialogs
return correct info. JF - please check !
Jeremy.
(This used to be commit dd13daf52bc96637ef3d40920cbd3bcadb7e08f5)

18 years agoReturn NT_STATUS_OBJECT_NOT_FOUND or ERRbadpipe if pipe name not found.
Jeremy Allison [Tue, 18 Dec 2001 02:09:57 +0000 (02:09 +0000)]
Return NT_STATUS_OBJECT_NOT_FOUND or ERRbadpipe if pipe name not found.
Jeremy.
(This used to be commit d5fdb1f096e8db3e9cf7a65ddb75f7cafd1958c0)

18 years agoFixed the bug with descending into mangled directories.
Jeremy Allison [Tue, 18 Dec 2001 01:26:54 +0000 (01:26 +0000)]
Fixed the bug with descending into mangled directories.
The problem is that name_map_mangle can *change* the length of a patchname.
Ensure that all the character pointer messing about can cope with changing
sizes of components. This code is too ugly to live.....
This also needs *lots* of testing.
Jeremy.
(This used to be commit 9f2b6a07429da5dec59e562fa5489b8079978677)

18 years agoin lsa_query_info at level 5 in member mode, we must reply our machine
Jean-François Micouleau [Tue, 18 Dec 2001 00:32:45 +0000 (00:32 +0000)]
in lsa_query_info at level 5 in member mode, we must reply our machine
name and not our domain name.

I thought it has been already fixed !

J.F.
(This used to be commit 1fbb01868b489c896ad1c65ded223999b0ee6013)

18 years agofixing bug I introduced.
Jean-François Micouleau [Tue, 18 Dec 2001 00:30:25 +0000 (00:30 +0000)]
fixing bug I introduced.

J.F.
(This used to be commit 49764852c516a22fba84d6289c93bed0e5da1c7e)

18 years agoinitialise strings
Jean-François Micouleau [Tue, 18 Dec 2001 00:27:46 +0000 (00:27 +0000)]
initialise strings
(This used to be commit cb61606b8e2852779a03dab3f99a8886edd7a97f)

18 years agothere is no unknown field in LSA_SEC_QOS
Jean-François Micouleau [Mon, 17 Dec 2001 23:03:23 +0000 (23:03 +0000)]
there is no unknown field in LSA_SEC_QOS
some cleanup of the lsa_open_policy and lsa_open_policy2 parser. the
length fields are not correct but that's what NT send. We don't anymore
underflow or overflow the decoding.

added the domain admins group to the default SD.

we are now checking the desired access flag in the lsa_open_policy_X()
calls and in most functions also.

        J.F.
(This used to be commit a217c4e4ff4d13122703d22258792fe5e8e9f02f)

18 years agotidy up debug
Jean-François Micouleau [Mon, 17 Dec 2001 22:57:06 +0000 (22:57 +0000)]
tidy up debug

J.F.
(This used to be commit c44f4e9e3368320b7559059dc214fa6c003d1187)

18 years agoMade "hide unreadable" work much more reliably (just for Volker :-).
Jeremy Allison [Mon, 17 Dec 2001 19:16:22 +0000 (19:16 +0000)]
Made "hide unreadable" work much more reliably (just for Volker :-).
Jeremy.
(This used to be commit f6d6825bc86662d54ff3920d7d5390d151f34b0f)

18 years agomake sure we pass the lm and nt data in the right order. They were swapped, and...
Jim McDonough [Mon, 17 Dec 2001 18:53:57 +0000 (18:53 +0000)]
make sure we pass the lm and nt data in the right order.  They were swapped, and somehow this worked when both were provided, but not when only one was.
(This used to be commit 477309b1e653761b291daa4693976d341880beab)

18 years agopreparing for release of 3.0-alpha9
Samba Release Account [Mon, 17 Dec 2001 11:29:48 +0000 (11:29 +0000)]
preparing for release of 3.0-alpha9
(This used to be commit 24ad6962fcb588a7a0ca21295b1242858ff99d53)

18 years agoallow selection of the organisational unit when joining a realm
Andrew Tridgell [Mon, 17 Dec 2001 11:16:22 +0000 (11:16 +0000)]
allow selection of the organisational unit when joining a realm
(This used to be commit f1231c2b54cac9d4fda7fa9d45fd329f1fd7b779)

18 years agoobey "use mmap" on case tables
Andrew Tridgell [Mon, 17 Dec 2001 11:13:57 +0000 (11:13 +0000)]
obey "use mmap" on case tables
(This used to be commit 505a1bdd15313698a6024a847f3771ea30a51f89)

18 years agoremoved unused variable
Andrew Tridgell [Mon, 17 Dec 2001 11:13:03 +0000 (11:13 +0000)]
removed unused variable
(This used to be commit bed269e6d4dc4c9622ec37f9a7e9e2b4dbbaee24)

18 years agoReplaced some hardcoded hex numbers with constants.
Tim Potter [Mon, 17 Dec 2001 01:53:02 +0000 (01:53 +0000)]
Replaced some hardcoded hex numbers with constants.

Made a note about NOTIFY_OPTION_TYPE and NOTIFY_OPTION_TYPE_DATA - they are
actually one structure.  The latter is just the deferred referrant of the
former.
(This used to be commit b596c0b171b1fd0e25e52944c880e8a90bc10a2e)

18 years agoAdded some constants for registry data types.
Tim Potter [Mon, 17 Dec 2001 01:45:20 +0000 (01:45 +0000)]
Added some constants for registry data types.
(This used to be commit 6b20d863b75b2b27d8dd8683cc3dc4486b18ceff)

18 years agoMoved fchown_acl change to the point where we *really* know if we
Jeremy Allison [Sun, 16 Dec 2001 23:44:38 +0000 (23:44 +0000)]
Moved fchown_acl change to the point where we *really* know if we
created the file or not.
Jeremy.
(This used to be commit 32dffa0ba792a81d89d06b527d82820b89507efd)

18 years agoEnsured filetimes set (by name) after close. Ignore errors. This is the
Jeremy Allison [Sun, 16 Dec 2001 21:04:19 +0000 (21:04 +0000)]
Ensured filetimes set (by name) after close. Ignore errors. This is the
correct way to ensure times set in 'pending modtime' and 'time close'
are always set correctly. Inspired by patch from Juergen Hasch.
Jeremy.
(This used to be commit 24053858543fa6c22c0c3222570109fbfdabab9e)

18 years agoAllow HPUX to link with new ACL code.
Jeremy Allison [Sat, 15 Dec 2001 02:46:48 +0000 (02:46 +0000)]
Allow HPUX to link with new ACL code.
Jeremy.
(This used to be commit ad9a5a26e088f3fedce9562f688c518d610dbef2)

18 years agoAdded HPUX ACL code.
Jeremy Allison [Sat, 15 Dec 2001 02:40:16 +0000 (02:40 +0000)]
Added HPUX ACL code.
Jeremy.
(This used to be commit 6d03184f8c039ad81de47b5f3bde7dac5b2815ad)

18 years agoAdded the group enum code from 2.2
Jeremy Allison [Fri, 14 Dec 2001 21:51:09 +0000 (21:51 +0000)]
Added the group enum code from 2.2
Jeremy.
(This used to be commit 59e01a22c5cb1046758c8cd6b09333c19d6cd26e)

18 years agoIf domain SID can't be fetched, we shouldn't return NT_STATUS_NO_MEMORY. It causes...
Jim McDonough [Fri, 14 Dec 2001 21:37:56 +0000 (21:37 +0000)]
If domain SID can't be fetched, we shouldn't return NT_STATUS_NO_MEMORY.  It causes a confusing client error.  Changed to NT_STATUS_CANT_ACCESS_DOMAIN_INFO.
(This used to be commit 07ea83e6f0f03ba4706c98abb58346a4f4ec983c)

18 years agoChangeID fixe from APPLIANCE_HEAD
Gerald Carter [Fri, 14 Dec 2001 20:38:04 +0000 (20:38 +0000)]
ChangeID fixe from APPLIANCE_HEAD
(This used to be commit 096d06a961e3a3e6f6952754875b83558448f449)

18 years agoI see no reasons why we should limit username lenght while checking
Simo Sorce [Fri, 14 Dec 2001 18:49:02 +0000 (18:49 +0000)]
I see no reasons why we should limit username lenght while checking
see bug 22130

jeremy, probably this should be fixed also in 2_2
(This used to be commit d0614b2e660122c57a660977f554799d08b35ab6)

18 years agoadd lsa_query_secobj server code. level 4 is the ACL, level 1 is the
Jean-François Micouleau [Fri, 14 Dec 2001 17:31:48 +0000 (17:31 +0000)]
add lsa_query_secobj server code. level 4 is the ACL, level 1 is the
owner. that's basic stuff.

got the POLICY_ define from TNG but they are also in an include file in
the NT SDK.

J.F.
(This used to be commit 84289a9bf42847981926e198ad36c050904fa9ed)

18 years agoUpdated Solaris link options from DaveCB.
Jeremy Allison [Fri, 14 Dec 2001 16:31:41 +0000 (16:31 +0000)]
Updated Solaris link options from DaveCB.
Jeremy.
(This used to be commit 064a3e0fc406d5ab408da0fbfbf68c89ce8defdd)

18 years agoRafal (mimir) patch for trusts r.
Jean-François Micouleau [Fri, 14 Dec 2001 14:35:38 +0000 (14:35 +0000)]
Rafal (mimir) patch for trusts r.
(This used to be commit c26623671e2b0b2e80c6d6383a99880c4f439f04)

18 years agoFALSE -> False
Tim Potter [Fri, 14 Dec 2001 04:43:31 +0000 (04:43 +0000)]
FALSE -> False
(This used to be commit dbdbf7cd077a8a20610ee2c62240170b420ebe6c)

18 years agoDisplay a nice error message if the user%password specified for net rpc
Tim Potter [Fri, 14 Dec 2001 03:55:44 +0000 (03:55 +0000)]
Display a nice error message if the user%password specified for net rpc
join does not have administrator privileges.
(This used to be commit af24b1036c8ceaa37e6b68ac988401846c5c7fe4)

18 years agoDisplay a nice error message for NT_STATUS_LOGON_FAILURE in connect_to_ipc()
Tim Potter [Fri, 14 Dec 2001 03:55:09 +0000 (03:55 +0000)]
Display a nice error message for NT_STATUS_LOGON_FAILURE in connect_to_ipc()
(This used to be commit 60eb4dc7b1114275f035d27a890e0301a65e0e42)

18 years agopreparing for release of 3.0-alpha8
Samba Release Account [Fri, 14 Dec 2001 03:47:30 +0000 (03:47 +0000)]
preparing for release of 3.0-alpha8
(This used to be commit fc468838bf9e6c302bc6825e07b72d1a7163e74e)

18 years agoMore help/messages/formatting cleanup.
Jim McDonough [Fri, 14 Dec 2001 02:45:13 +0000 (02:45 +0000)]
More help/messages/formatting cleanup.
(This used to be commit 882e5e3bb815e02407ecf6f689ffe5bb618845e8)

18 years agoMerge from 2.2 to allow net rpc join -U to complete even if the workstation
Tim Potter [Fri, 14 Dec 2001 02:17:18 +0000 (02:17 +0000)]
Merge from 2.2 to allow net rpc join -U to complete even if the workstation
account already exists.

# net rpc join --user=Administrator%password

It's kind of weird seeing the mix of NET.EXE style of options (net command
subcommand /arg:value) with the GNU-style long options.  I think it works.
(This used to be commit 3789c8c707acd9a4078d656c8de9ce1f4be9e388)

18 years agoRestoration of at least some help function and format. First round of cleanup. ...
Jim McDonough [Fri, 14 Dec 2001 02:15:04 +0000 (02:15 +0000)]
Restoration of at least some help function and format.  First round of cleanup.  Printq function cannot exactly mimic windows output using d_printf...oh well.  Add some more command-specific options back into help.
(This used to be commit e135320e0547581c7d38126647a91b874d152622)

18 years agoSet the debuglevel after the call to lp_load() so the change sticks.
Tim Potter [Fri, 14 Dec 2001 02:14:59 +0000 (02:14 +0000)]
Set the debuglevel after the call to lp_load() so the change sticks.
(This used to be commit 3c927e39e7354d2f65b3ff7148fc325b41552310)

18 years agodon't use -u switch to /bin/date - too many systems don't honor it
Andrew Tridgell [Fri, 14 Dec 2001 01:15:14 +0000 (01:15 +0000)]
don't use -u switch to /bin/date - too many systems don't honor it
(This used to be commit 0839cf03a92673b38f1afa103271c708fa7162a2)

18 years agoAdded comment.
Tim Potter [Thu, 13 Dec 2001 23:43:44 +0000 (23:43 +0000)]
Added comment.
(This used to be commit 594634ff1a1d5f780ddb9909f5365ee3e420a76c)

18 years agoPatch for string legths from TAKAHASHI, Motonobu(monyo).
Jeremy Allison [Thu, 13 Dec 2001 23:43:15 +0000 (23:43 +0000)]
Patch for string legths from TAKAHASHI, Motonobu(monyo).
Jeremy.
(This used to be commit f0d8b7573fc74004131ba0a82dbd5e0007a524bf)

18 years agoupdate the ldap support code. it compiles.
Jean-François Micouleau [Thu, 13 Dec 2001 18:09:29 +0000 (18:09 +0000)]
update the ldap support code. it compiles.
Ignacio you can update your howto ;-)

samsync: a small patch to try chaning challenges.

J.F.
(This used to be commit c99bc305599698f2291efbfe20024355cb2bcde0)

18 years agomerge from 2.2
Gerald Carter [Thu, 13 Dec 2001 17:18:15 +0000 (17:18 +0000)]
merge from 2.2
(This used to be commit 5b4b3323a3fbabbb3c7db5eb3b11999bbde470b1)

18 years agomerge from appliance_head
Gerald Carter [Thu, 13 Dec 2001 16:35:43 +0000 (16:35 +0000)]
merge from appliance_head
(This used to be commit 423554fd71b3c9718fc3a21006da9ce6371fc845)

18 years ago-Insswitch/ breaks the build by preventing include of <nss.h> from working
Andrew Tridgell [Thu, 13 Dec 2001 13:54:39 +0000 (13:54 +0000)]
-Insswitch/ breaks the build by preventing include of <nss.h> from working
(This used to be commit 1ef98625404a2df0fb0b70b40041e3b8cdbc5f5d)

18 years agopreparing for release of 3.0-alpha7
Samba Release Account [Thu, 13 Dec 2001 13:24:12 +0000 (13:24 +0000)]
preparing for release of 3.0-alpha7
(This used to be commit f0f03aed5a56714437ff55a37b5500442e0cab11)

18 years agoadded "net ads info" to fetch basic ADS info without any auth
Andrew Tridgell [Thu, 13 Dec 2001 13:19:20 +0000 (13:19 +0000)]
added "net ads info" to fetch basic ADS info without any auth
(This used to be commit b107ecef7097e4b3b870f51fa6628b870703b4de)

18 years agomake sure we find NSS_STATUS struct
Andrew Tridgell [Thu, 13 Dec 2001 11:58:38 +0000 (11:58 +0000)]
make sure we find NSS_STATUS struct
(This used to be commit 7db718d44a62aee9610a9dfd9e671345a0ea7737)

18 years agobetter error handling
Andrew Tridgell [Thu, 13 Dec 2001 11:30:13 +0000 (11:30 +0000)]
better error handling
(This used to be commit ed6279481bfcb21212e9c22009969c19ea4f1646)

18 years agotry the PDC for our workgroup if we can't find the ldap server
Andrew Tridgell [Thu, 13 Dec 2001 11:29:49 +0000 (11:29 +0000)]
try the PDC for our workgroup if we can't find the ldap server
(This used to be commit fc9fd2ca19899e757a6d3ccbba3d4a10f27d7a3f)

18 years agoimproved error message from failed connect
Andrew Tridgell [Thu, 13 Dec 2001 08:54:51 +0000 (08:54 +0000)]
improved error message from failed connect
(This used to be commit 4405a87fb754cece3a5428246ea6ecb9abba1996)

18 years agoMust check against -1 for fcntl error check.
Jeremy Allison [Thu, 13 Dec 2001 02:34:43 +0000 (02:34 +0000)]
Must check against -1 for fcntl error check.
Jeremy
(This used to be commit 1d2504b5c76bf23ac49a401adce8a49f193bc22c)

18 years agoFix some compiler warnings.
Tim Potter [Thu, 13 Dec 2001 00:02:37 +0000 (00:02 +0000)]
Fix some compiler warnings.
(This used to be commit 216dff438095781934b57fd097ed118daf5fffa0)