1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-28 07:21:54 +03:00
Commit Graph

692 Commits

Author SHA1 Message Date
Simo Sorce
52826c034e add tdb backup function separation and winbind idmap upgrade code form
pre-2.2.4 tdb database format.

tx volker for your work on this
(This used to be commit 2bdbeb9e97)
2003-06-24 14:02:21 +00:00
Andrew Bartlett
668a9af94e This removes the StrCaseCmp() stuff from 'net idmap' and 'net
groupmap'.  The correct way to implement this stuff is via a function
table, as exampled in all the other parts of 'net'.

This also moves the idmap code into a new file.  Volker, is this your
code?  You might want to put your name on it.

Andrew Bartlett
(This used to be commit 477f2d9e39)
2003-06-21 08:35:30 +00:00
Gerald Carter
93bcb9963b merge of the netsamlogon caching code from APPLIANCE_HEAD
This replaces the universal group caching code (was originally
based on that code).  Only applies to the the RPC code.

One comment: domain local groups don't show up in 'getent group'
that's easy to fix.

Code has been tested against 2k domain but doesn't change anything
with respect to NT4 domains.

netsamlogon caching works pretty much like the universal group
caching code did but has had much more testing and puts winbind
mostly back in sync between branches.
(This used to be commit aac01dc7bc)
2003-06-21 04:05:01 +00:00
Jelmer Vernooij
6605fec5dc Add installmodules to install
(This used to be commit 33e8dd8843)
2003-06-18 15:54:21 +00:00
Jelmer Vernooij
b9bf3252bf Fix building idmap_winbind as shared module
(This used to be commit 2556037796)
2003-06-17 10:41:08 +00:00
Tim Potter
35d0f987db Build libnss_wins.so as part of nsswitch target. Fix for bug #160
found by andreas@conectiva.com.br
(This used to be commit fa24fd6f5b)
2003-06-16 03:28:27 +00:00
Andrew Tridgell
50585d4c04 removed editreg from standard build until it is portable. Right now it
fails to build on a ton of platforms as it completely bypasses all of
our portability code.

if you want it then use 'make bin/editreg'. If some distros want to
add that to their spec files then thats up to them, but we really
can't have non-portable code unconditionally built in our main tree.
(This used to be commit 3c66111f32)
2003-06-10 14:09:20 +00:00
Herb Lewis
9960487103 get rid of IRIX o32 builds - some libraries (kerberos and ldap) are only
n32 so smbwrapper fails to link.
(This used to be commit 392f207a35)
2003-06-06 23:55:24 +00:00
Herb Lewis
6ae4c3c966 remove o32 targets for IRIX. kerberos and ldap libraries are n32 only so
linking smbwrappers will fail.
(This used to be commit f95f306729)
2003-06-06 23:35:22 +00:00
Herb Lewis
40eacb1648 get rid of warning about malformed if in Makefile
(This used to be commit 1e1e56efd8)
2003-06-06 22:24:36 +00:00
Gerald Carter
70da79f8a8 fix build on systems w/o LDAP libs
(This used to be commit f33aeaa039)
2003-06-06 20:31:19 +00:00
Herb Lewis
f5c21fc365 delete extra PASSDBLIB at beginning
(This used to be commit 1c82a3aa91)
2003-06-06 20:11:23 +00:00
Herb Lewis
bea0cf2c79 pdbedit needs PASSDBLIBS
(This used to be commit 0e91aca22c)
2003-06-06 19:44:32 +00:00
Gerald Carter
711f8d0a13 * break out more common code used between pdb_ldap and idmap_ldap
* remove 'winbind uid' and 'winbind gid' parameters (replaced
  by current idmap parameter)
* create the sambaUnixIdPool entries automatically in the 'ldap
  idmap suffix'
* add new 'ldap idmap suffix' and 'ldap group suffix' parametrer
* "idmap backend = ldap" now accepts 'ldap:ldap://server/' format
  (parameters are passed to idmap init() function
(This used to be commit 1665926281)
2003-06-06 13:48:39 +00:00
Gerald Carter
3bdfd57a2d working draft of the idmap_ldap code.
Includes sambaUnixIdPool objectclass

Still needs cleaning up wrt to name space.
More changes to come, but at least we now have a
a working distributed winbindd solution.
(This used to be commit 8241758544)
2003-06-05 02:34:30 +00:00
Jelmer Vernooij
69b50029f4 Add smb_register_idmap(). Based on a patch from metze
(This used to be commit 7e352f5c62)
2003-05-29 19:08:40 +00:00
Tim Potter
4e8052640e More fixes for builddir != srcdir.
- Use absolute directories for $builddir and $srcdir in the Makefile

 - Don't try and combine source files in $builddir and $srcdir to build
   proto.h.  It's just too hard to get it right across all targets we
   wish to compile on.  Use a hand created prototype for the single
   function in smbd/build_options.c that we need.  This allows us to ditch
   all the extra sed work that was causing problems: \t not portable - hah!

 - Fix bogus delheaders target to remove the correct files

This appears to work quite nicely now.  Let's see how it goes on the
buildfarm machines.
(This used to be commit 456184463d)
2003-05-27 02:35:53 +00:00
Jeremy Allison
9fd39e3f55 Don't use extensions like '\t' in a sed script. It breaks the make proto.
Jeremy.
(This used to be commit 7d546a6bad)
2003-05-23 18:31:57 +00:00
Andrew Tridgell
3d5d32826f installman needs to depend on installdirs, to fix parallel
build/install
(This used to be commit 8fa687701a)
2003-05-23 04:53:26 +00:00
Tim Potter
1f84a14b0b Bug 83: fixes for building when $srcdir != $builddir from David Lee
<t.d.lee@durham.ac.uk>
(This used to be commit e48a8b5e9c)
2003-05-23 01:59:43 +00:00
Jelmer Vernooij
1df21141e7 Compile shared modules with the -fPIC flag. Reported by Steve Langasek aka
vorlon.
(This used to be commit a5f165020a)
2003-05-22 21:02:25 +00:00
Jim McDonough
0de9034b4f Fix bug #95: net did not build when ldap was installed, but --without-ads
was specified.
(This used to be commit 17b0acff8a)
2003-05-20 14:55:01 +00:00
Simo Sorce
db0a223156 add idmap_winbind unless I made a better way to solve SID type for domain
SIDs
(This used to be commit b24c0efc4b)
2003-05-16 06:20:33 +00:00
Simo Sorce
c823b191ab And finally IDMAP in 3_0
We really need idmap_ldap to have a good solution with ldapsam, porting
it from the prvious code is beeing made, the code is really simple to do
so I am confident it is not a problem to commit this code in.

Not committing it would have been worst.
I really would have been able to finish also the group code, maybe we can
put it into a followin release after 3.0.0 even if it may be an upgrade
problem.

The code has been tested and seem to work right, more testing is needed for
corner cases.

Currently winbind pdc (working only for users and not for groups) is
disabled as I was not able to make a complete group code replacement that
works somewhat in a week (I have a complete patch, but there are bugs)

Simo.
(This used to be commit 0e58085978)
2003-05-12 18:12:31 +00:00
Alexander Bokovoy
e8573c8fa9 Add NT quota support. Patch from Stefan (metze) Metzemacher
1. Allows to change quota settings for shared mount points from Win2K and WinXP from Explorer properties tab
2. Disabled by default and when requested, will be probed and enabled only on Linux where it works
3. Was tested for approx. two weeks now on Linux by two independent QA teams, have not found any bugs so far
Documentation to follow
(This used to be commit 4bf022ce9e)
2003-05-12 01:20:17 +00:00
Andrew Bartlett
03d8119017 Makefile changes to allow new NTLMv2 patch to work.
(This used to be commit 0c1946e51c)
2003-05-09 15:25:20 +00:00
Tim Potter
60233cd356 Add a new entry to make check. If we have compiled python extensions,
run the pythoncheck.py test.  At the moment this just checks every
python extension can be imported sucessfully.
(This used to be commit 38dac4ca4e)
2003-05-05 06:22:36 +00:00
Tim Potter
59991233e1 Merge of backslash @LDAP_LIBS@ fix from HEAD.
(This used to be commit f4ea0cc17d)
2003-05-05 04:10:29 +00:00
Tim Potter
73a3105b57 AIX doesn't append $SHLIB_EXT to NSS libraries.
(This used to be commit af083d2760)
2003-05-05 01:40:10 +00:00
Paul Green
5a61380820 Refactor existing sock_exec() and socketpair_tcp() functions into their own
source file. I will be making changes to sock_exec to work on VOS, which
has a blocking connect() call, but first I want to get it in its own source
file so that it can be called from a test program.
(This used to be commit 10bf65d335)
2003-04-30 17:48:46 +00:00
Andrew Bartlett
356d599662 Try to fix IRIX build - add quotes and never call libns_winbind by name - we
should only set that name once.
(This used to be commit 34f15bff6f)
2003-04-30 14:14:33 +00:00
Gerald Carter
ada60ce8a2 smbgroupedit has been replaced by 'net groupmap'
remove related file.  Left in EHAD for reference (for now)
(This used to be commit 2e7537d8e2)
2003-04-29 15:32:14 +00:00
Gerald Carter
4ae2e47b93 remove convert_smbpasswd and addtosmbpass from tree; people can get them from 2.2. if they still need them
(This used to be commit 237857a760)
2003-04-29 15:27:06 +00:00
Gerald Carter
b15ea80acf do not build wrepld by default; package maintainers need to update their files now (john :) )
(This used to be commit 4a2bd728a5)
2003-04-29 05:48:07 +00:00
Tim Potter
b6ac19c69e Merge: we need a rule for t_snprintf
(This used to be commit 4d2106f910)
2003-04-28 05:29:10 +00:00
Tim Potter
322d385b6e Merge stf updates from HEAD.
(This used to be commit 20bde94eb8)
2003-04-28 05:20:01 +00:00
Jelmer Vernooij
d2cea7d289 Add 'smbiconv' program - a clone of the 'iconv' utility
that uses samba's internal iconv() functions. Useful for
testing purposes.
(This used to be commit ccabb7961a)
2003-04-27 20:47:15 +00:00
Andrew Bartlett
38c0f29c9e Remove the unpopular pdb_unix, which has served it's time well.
Also get charset 'werid' for both --enable-developer options in configure.

Andrew Bartlett
(This used to be commit 2a99e77e91)
2003-04-26 13:49:55 +00:00
Jelmer Vernooij
3f3f30549c Fix the weird charset and build it by default for ./configure -enable-developer
(This used to be commit 8d17a4dc21)
2003-04-26 11:48:16 +00:00
Andrew Bartlett
30a6f801ae Add vfs_fake_perms to Samba 3.0
Andrew Bartlett
(This used to be commit 3ad260ced9)
2003-04-24 10:36:23 +00:00
Andrew Bartlett
53004910eb Patch by Vance Lankhaar <vlankhaar@linux.ca> to automaticly regenerate the
build options, so we will always have the right values for how and when
an smbd was built.

In particular, this is indended to address bitrot caused by configure.in
changes.

Andrew Bartlett
(This used to be commit 2be258071c)
2003-04-23 14:19:03 +00:00
Andrew Bartlett
13b54b9cfa We don't have IDMAP in 3.0 yet.
(This used to be commit a507f170d2)
2003-04-23 13:23:47 +00:00
Andrew Bartlett
1a9394195d Merge HEAD's winbind into 3.0.
This includes the 'SIDs Rule' patch, mimir's trusted domains cacheing code,
the winbind_idmap abstraction (not idmap proper, but the stuff that held up
the winbind LDAP backend in HEAD).

Andrew Bartlett
(This used to be commit d4d5e6c2ee)
2003-04-23 11:54:56 +00:00
John Terpstra
2595d6f94b Added editreg.
(This used to be commit ce016df1ec)
2003-04-22 17:06:03 +00:00
Gerald Carter
79d3731d98 * fix segfault when no vfs objects defined
* add "sid=..." to 'net groupmap add'
(This used to be commit e5f6676639)
2003-04-21 19:43:25 +00:00
John Terpstra
4a317cb748 Added smbgroupedit to PROGS2
(This used to be commit bed69decea)
2003-04-19 16:27:30 +00:00
Gerald Carter
a1fb9f2176 Merging smbgroupedit into 'net groupmap'. Not entirely done.
Need to check on where the privilege code is sitting
and update the docs.

Examples:

root# bin/net help groupmap
net groupmap add
  Create a new group mapping
net groupmap modify
  Update a group mapping
net groupmap delete
  Remove a group mapping
net groupmap list
  List current group map

# bin/net groupmap add
Usage: net groupmap add rid=<int> name=<string> type=<domain|local|builtin> [comment=<string>]

# bin/net groupmap delete
Usage: net groupmap delete name=<string|SID>

# bin/net groupmap modify
Usage: net groupmap modify name=<string|SID> [comment=<string>] [type=<domain|local>
(This used to be commit f2fd0ab41f)
2003-04-19 05:53:55 +00:00
Jim McDonough
bdaac40746 Move PAC decoding over from HEAD.
(This used to be commit b0fd4e5555)
2003-04-16 16:57:01 +00:00
Jelmer Vernooij
ddf662d118 More merges from HEAD:
- Stephan Kulow's changes (fixing warnings in libsmbclient)
 - VFS modules
 - Seperating libs
(This used to be commit 6e9b780233)
2003-04-16 14:45:11 +00:00
Jelmer Vernooij
004502551b Add support for the new modules system to lib/iconv.c (merge from HEAD)
(This used to be commit 64a357017a)
2003-04-16 13:09:00 +00:00
Jelmer Vernooij
5e96970480 Add make destination for librpc_echo
(This used to be commit 7ef7910004)
2003-04-16 12:59:12 +00:00
Jelmer Vernooij
a8c95d79f8 Add support for the new modules system to auth/ (merge from HEAD)
(This used to be commit c7a1de090d)
2003-04-16 12:13:07 +00:00
Gerald Carter
d15cd357c7 merge in metze' smbcquotas patch from HEAD
(This used to be commit b6a7704888)
2003-04-15 19:51:17 +00:00
Jelmer Vernooij
ab8a9c8419 use the new modules system for the rpc modules (backport from HEAD)
(This used to be commit aca7319e8d)
2003-04-15 16:55:21 +00:00
Jelmer Vernooij
9c3cecbdac Use the new modules system for passdb (merge from HEAD)
(This used to be commit 1755d5f662)
2003-04-15 16:01:14 +00:00
Jelmer Vernooij
37dc79d2b6 Add selection of the modules to configure (merge from HEAD)
(This used to be commit 3e283989ff)
2003-04-15 12:02:24 +00:00
Tim Potter
cd4da802f1 Merge of python extension picobj fix.
(This used to be commit 7e0e9585f1)
2003-04-15 06:54:27 +00:00
Tim Potter
1f68a389a3 Updates to compile correctly with --with-included-popt
(This used to be commit 5340b9c4c4)
2003-04-15 01:40:37 +00:00
Tim Potter
710bd555c8 Update check-programs target.
(This used to be commit ac6a1ea560)
2003-04-14 05:34:04 +00:00
Tim Potter
ab892c1160 Merge:
- Jelmer's popt changes
(This used to be commit b5b6f11940)
2003-04-14 04:05:48 +00:00
Tim Potter
63cbbe2692 Merge Jelmer's popt updates from HEAD.
(This used to be commit 98e84b3e83)
2003-04-14 03:30:20 +00:00
Tim Potter
be67b58247 Syncup popt changes with HEAD.
(This used to be commit 39c987c3c5)
2003-04-14 02:38:21 +00:00
Tim Potter
b30de2567b Merge a bunch of updates from HEAD:
- whitespace syncup
 - winbind nss client cleanups
 - new rpc echo pipe
 - prettier warnings for out of date autoconf scripts
(This used to be commit bb812d1670)
2003-04-14 01:09:16 +00:00
Tim Potter
270f95f920 Install libsmbclient.h from $(srcdir)
(This used to be commit a02370eccc)
2003-04-09 04:19:57 +00:00
Martin Pool
92a24ce87e t_doschar: Test harness that exercises check_dos_char()
(This used to be commit 9518712516)
2003-04-04 03:27:02 +00:00
Martin Pool
3496eb18bc Merge from HEAD: 1.630 through 1.634:
- build test harnesses for STF

 - "make check" runs STF
(This used to be commit 1e198d314f)
2003-04-04 03:05:10 +00:00
Gerald Carter
02d71a6222 nsswitch/winbind_nss.c doesn't exist
(This used to be commit 1370cc99a4)
2003-04-02 16:45:23 +00:00
Tim Potter
7e90c8a3b3 Merge of Paul Green's make clean fixes.
(This used to be commit d9e6f42599)
2003-04-02 06:26:01 +00:00
Andrew Bartlett
1f499a79f5 (merge from HEAD)
Small clenaup patches:
 - safe_string.h - don't assume that __FUNCTION__ is available
 - process.c - use new workaround from safe_string.h for the same
 - util.c - Show how many bytes we smb_panic()ed trying to smb_xmalloc()
 - gencache.c - Keep valgrind quiet by always null terminating.
 - clistr.c - Add copyright
 - srvstr.h - move srvstr_push into a .c file again, as a real function.
 - srvstr.c - revive, with 'safe' checked srvstr_push
 - loadparm.c - set a default for the display charset.

 - connection.c - use safe_strcpy()
Andrew Bartlett
(This used to be commit c91e76bddb)
2003-03-22 13:47:42 +00:00
Andrew Bartlett
3d8c50c874 Thanks to volker, merge passdb changes from HEAD:
- pdb_guest (including change defaults)
 - 'default' passdb actions (instead of 'not implemented' stubs in each module)

 - net_rpc_samsync no longer assumes pdb_unix

Andrew Bartlett
(This used to be commit 4bec53c8c8)
2003-03-22 09:03:46 +00:00
Jelmer Vernooij
f46edac4bf Make swat use popt
(This used to be commit eccb699811)
2003-03-20 11:16:14 +00:00
Jeremy Allison
84e99fe898 Merge mbp's HEAD changes.
Jeremy.
(This used to be commit da1271a95f)
2003-03-18 21:21:21 +00:00
Andrew Bartlett
f2a387e516 Makefile updates for new SMB signing code.
(This used to be commit fa10640630)
2003-03-18 12:07:27 +00:00
Andrew Bartlett
d5ee9b2f48 Jeremy merged across my string parinoia fixes, but forgot to enable them! :-)
This patch catches up on the rest of the work - as much string checking
as is possible is done at compile time, and the rest at runtime.

Lots of code converted to pstrcpy() etc, and other code reworked to correctly
call sizeof().

Andrew Bartlett
(This used to be commit c5b604e2ee)
2003-03-18 11:22:52 +00:00
Gerald Carter
128e7edaaf fix WinXP & Win2K3 remote_arch and check pointer in ntlmssp code before dereferencing
(This used to be commit 7bc5fc729f)
2003-03-14 23:06:06 +00:00
Tim Potter
3330b61006 Link wbinfo with popt_common.o
(This used to be commit eac4b7ef29)
2003-02-26 00:10:22 +00:00
Tim Potter
2057d3c39f Merge of python prototype header removal.
(This used to be commit 19676de275)
2003-02-26 00:02:07 +00:00
Andrew Bartlett
ecd7fc59a8 Merge crypt(), ACL lib and shared lib changes from HEAD.
(This used to be commit e380224d8c)
2003-02-24 03:22:49 +00:00
Andrew Bartlett
e822de1d85 Fix a small stuffup in the HEAD -> 3.0 merge
(This used to be commit cccec78cf2)
2003-02-24 03:14:46 +00:00
Andrew Bartlett
ecad7bea2c Makefile updates for the client-side auth/kerberos merge.
(This used to be commit b32f3ecaf6)
2003-02-24 03:07:34 +00:00
Tim Potter
e5249ff9b0 Ignore errors on python_clean target.
(This used to be commit 9e4eba0ae5)
2003-02-21 05:51:37 +00:00
Jelmer Vernooij
aa6380100a Compile in lib/module.o
(This used to be commit adc5a4a263)
2003-02-20 19:21:20 +00:00
Jelmer Vernooij
660d9ad986 Use more portable @SHLIBEXT@ instead of .so
(This used to be commit bddc54818e)
2003-02-15 02:05:45 +00:00
Jim McDonough
a38e300830 Put dynrpc modules as part of make all, when specified in configure.
(This used to be commit d5b5a8e1f1)
2003-02-14 20:19:50 +00:00
Jim McDonough
49d3f7bc81 merge from HEAD - enable dynamic RPC modules
(This used to be commit d9c485b010)
2003-02-14 00:48:28 +00:00
John Terpstra
fb0cb8894a Added extended audit module.
(This used to be commit f158bfa233)
2003-02-07 04:56:37 +00:00
Herb Lewis
5e391e0092 fix another syntax error
(This used to be commit 678c07f11d)
2003-02-03 22:07:14 +00:00
Herb Lewis
9c36c6094f if @EXTRA_ALL_TARGETS@ is empty, this fixes makefile syntax error
(This used to be commit aef873826f)
2003-02-03 21:58:58 +00:00
Andrew Bartlett
963e88aa90 Merge LDAP filter parinoia from HEAD, a few other pdb_ldap updates and some
misc libads fixes.

Andrew Bartlett
(This used to be commit 9c3a1710ef)
2003-02-01 07:59:29 +00:00
Gerald Carter
3a9dfe6384 patch from Paul Green to only build libsmbclient.so on platforms that support shared libraries
(This used to be commit 8ef302f6bf)
2003-01-28 20:11:20 +00:00
Andrew Bartlett
1cba0a7579 Merge from HEAD:
- NTLMSSP over SPENGO (sesssion-setup-and-x) cleanup and code refactor.
  - also consequential changes to the NTLMSSP and SPNEGO parsing functions
  - and the client code that uses the same functions
 - Add ntlm_auth, a NTLMSSP authentication interface for use by applications
   like Squid and Apache.
  - also consquential changes to use common code for base64 encode/decode.
 - Winbind changes to support ntlm_auth (I don't want this program to need
   to read smb.conf, instead getting all it's details over the pipe).
 - nmbd changes for fstrcat() instead of fstrcpy().

Andrew Bartlett
(This used to be commit fbb46da79c)
2003-01-28 12:07:02 +00:00
Tim Potter
eb708fe9c3 Merge: Make torture tools in everything target.
(This used to be commit 087607e03a)
2003-01-22 23:31:04 +00:00
Gerald Carter
99cdb46208 *lots of small merges form HEAD
*sync up configure.in
*don't build torture tools in make all
*make sure to remove torture tools as part of make clean
(This used to be commit 0fb724b321)
2003-01-15 18:57:41 +00:00
Gerald Carter
52457e1093 removed idpool from schema file (experimental) to remove the dependency
on nis.schema.

add $(LDFLAGS) to libsmbclient build
(This used to be commit cd16064784)
2003-01-06 17:57:52 +00:00
Richard Sharpe
5482809962 Add profiles utility support to Samba 3.0.x
(This used to be commit 2636b2231c)
2003-01-06 05:34:18 +00:00
Gerald Carter
6985578f5b make sure we create the PIDDIR and LOCKDIR from installdirs
(This used to be commit 1564ebfc99)
2003-01-03 15:31:15 +00:00
Herb Lewis
9eb8d07312 fix make proto to work with SGI smake
(This used to be commit 24dfb8c745)
2002-12-17 21:45:09 +00:00
Gerald Carter
899b6e6d0f merge of get_dc_name()-like code from APP_HEAD; better support password server = DC1 *
(This used to be commit f49de4c517)
2002-12-13 02:07:05 +00:00
John Terpstra
7e29511871 Fixed Typo.
(This used to be commit d2b93322b0)
2002-12-08 21:20:07 +00:00
Tim Potter
8ae8dd66e1 Merge from appliance, Revision 1.223.2.41:
>Add -a flag to setup.py when making python_clean.  This will delete the
>python compiled binaries and .so files rather than only the temporary
>compile directory.
>
>This fixes a PSA build bug.

Merge from HEAD,  Revision 1.587:

>Link less with smbmnt and smbumount.  Also change from a pstrcpy() to a
>strncpy() to make it clear that we must operate on a PATH_MAX sized buffer.
>
>Andrew Bartlett

Plus some bits from the AC_SUBST target cleanup that got missed last time
I ran dirdiff.
(This used to be commit 9b94c82958)
2002-12-05 22:56:25 +00:00
Andrew Bartlett
6afdd64815 Merge from HEAD - Patch from Paul Green to detect exe suffix for Stratus VOS.
Andrew Bartlett
(This used to be commit e6f2d9dfdb)
2002-12-01 03:06:18 +00:00
Jelmer Vernooij
a03a67a4b3 remove bin/developer.so - it's not in 3.0 yet
add VFS_MODULES and PDB_MODULES to clean
(This used to be commit e567c19e05)
2002-11-29 23:58:19 +00:00
Jelmer Vernooij
fa3baed15a Sync with HEAD:
- Create vfs and pdb subdirs in installmodules rule
 - Add PDBLIBDIR
(This used to be commit 6e62784786)
2002-11-29 23:01:30 +00:00
Tim Potter
c0a542fcad Merge from HEAD:
- Target selection cleanup
 - Some formatting merges
 - Merged some Pythong bits&pieces that were missed previously

Original commit message for target selection cleanup:

>Here's a bit of a cleanup of the {configure,Makefile}.in files.  I've
>now combined all the ad-hoc AC_SUBST variables into three generalised
>ones:
>
>  EXTRA_BIN_PROGS 	Additional programs to install in ${prefix}/sbin
>  EXTRA_SBIN_PROGS 	Additional programs to install in ${prefix}/bin
>  EXTRA_ALL_TARGETS     Additional targets to build by default
>  SHLIB_PROGS           Shared library objects (pam, winbind) to build
>
>We also build some extra stuff by default: the python extensions (if
>--with-python specified), smbmount related binaries (if
>--with-smbmount specified), and the samba torture suite.
>
>The idea behind this is to have everything that is configured built by
>default to detect breakage as soon as possible when people make low
>level changes.
(This used to be commit 6000caf5da)
2002-11-29 01:17:00 +00:00
Gerald Carter
dbb2ecddaa reverted the removal of DESTDIR and adding a comment about it
(This used to be commit d337416739)
2002-11-27 16:21:25 +00:00
Gerald Carter
72948b91a0 * fixing RedHat spec file for 3.0
* updating Makefile & configure script to use CONFIGDIR & VFSLIBDIR
* set LIBDIR to ${prefix}/lib/samba when --with-fhs is enabled
* make installdirs take an arbitrary number of arguements
(This used to be commit f0d09cf676)
2002-11-26 23:18:35 +00:00
Gerald Carter
afc5f1aefb [print notify fixes from APP_HEAD]
* fixing change notify on print server handle
 * adding change notify support into smbcontrol for sending comment
   changes, etc...

All part of CR 1159/1160
(This used to be commit f1062e79de)
2002-11-26 00:46:31 +00:00
John Terpstra
036451ec63 Added install-everything option.
(This used to be commit 0b342b8e90)
2002-11-22 19:03:28 +00:00
Jelmer Vernooij
ac2ac71168 Merge in modules system from HEAD:
- Detect MySQL and XML libraries
 - Add modules rules to Makefile
 - Move working VFS modules to source/
(This used to be commit fadada3555)
2002-11-18 16:22:04 +00:00
Simo Sorce
115f859a85 sync with head
was:
consolidate alla error mapping functions in one file
(This used to be commit 2c9e8b79d9)
2002-11-10 04:34:03 +00:00
Jelmer Vernooij
f09109c7bc Last sync with HEAD
(This used to be commit 1175b62337)
2002-11-09 17:08:58 +00:00
Jeremy Allison
9304248788 Merge of scalable printing code fix... Needs testing.
Jeremy.
(This used to be commit d030df7643)
2002-11-07 02:15:35 +00:00
Jim McDonough
e1239ecfb1 One more instance of AUTHLIBS...hopefully we can get most 3.0 builds back
up on the farm.
(This used to be commit 134ddca56b)
2002-10-31 18:13:35 +00:00
Jim McDonough
d29e2893b0 Steve Langasek's authentication lib (libpam, libcrypt) split didn't make
it into Makefile.in in 3.0.  This should fix a few builds.
(This used to be commit 3b32e6bf5a)
2002-10-31 14:30:03 +00:00
John Terpstra
063ac686b5 Added DESTDIR patch from Buchan Milne.
(This used to be commit 4a5c926ac5)
2002-10-31 04:22:36 +00:00
Jelmer Vernooij
be26819eea Remove references to SAM
(This used to be commit 6691720620)
2002-10-30 06:43:39 +00:00
Gerald Carter
7fedc7a7a2 merging in changes from HEAD
(This used to be commit e8273549a8)
2002-10-21 15:49:18 +00:00
Gerald Carter
17c2d4198c removing make_printerdef tool and sources
(This used to be commit 7bde74ae35)
2002-10-21 15:44:57 +00:00
Gerald Carter
9c1b62c0fd merge of working dsrolegetprimdominfo() client code from APP_HEAD
(This used to be commit 028477e352)
2002-10-04 19:33:41 +00:00
Gerald Carter
f2d1f19a66 syncing up with HEAD. Seems to be a lot of differences creeping in
(i ignored the new SAMBA stuff, but the rest of this looks like it should
have been merged already).
(This used to be commit 3de09e5cf1)
2002-10-01 18:26:00 +00:00
Andrew Bartlett
ad8a22e570 Updates from Samba HEAD:
- Fix segfaults in the 'net ads' commands when no password is provided
 - Readd --with-ldapsam for 2.2 compatability.  This conditionally compiles the
   old options, but the actual code is available on all ldap systems.
 - Fix shadow passwords (as per work with vl)
 - Fix sending plaintext passwords to unicode servers (again vl)
 - Add a bit of const to secrets.c functions
 - Fix some spelling and grammer by vance.
 - Document the -r option in smbgroupedit.

There are more changes in HEAD, I'm only merging the changes I've been involved
with.

Andrew Bartlett
(This used to be commit 83973c3893)
2002-10-01 13:10:57 +00:00
Gerald Carter
a834a73e34 sync'ing up for 3.0alpha20 release
(This used to be commit 65e7b5273b)
2002-09-25 15:19:00 +00:00
Jelmer Vernooij
21d26afb2a sync 3_0 branch with HEAD
(This used to be commit 19ab776bf9)
2002-08-17 14:15:33 +00:00
Andrew Tridgell
e90b652848 updated the 3.0 branch from the head branch - ready for alpha18
(This used to be commit 03ac082dcb)
2002-07-15 10:35:28 +00:00
Andrew Tridgell
4023a61892 merged the mangling test and passdb bugfixes into SAMBA_3_0
(This used to be commit 97eb3a121d)
2002-04-12 10:18:46 +00:00
Andrew Tridgell
714518e550 this adds a completely new hash based mangling scheme
the hash for this scheme is *much* larger (approximately 31 bits) and
the code is written to be very fast, correctly handling multibyte
while not doing any actual multi-byte conversions in the vast majority
of cases

you can select this scheme using "mangling method = hash2", although I
may make it the default if it works out well.
(This used to be commit bb173c1a7e)
2002-04-11 09:56:38 +00:00
Andrew Tridgell
9cd0306baa This split the mangling code up to allow for the possibility of multiple
mangling implementation, selectable using "mangling method = " in smb.conf

It also tidies the interface a little, although it is still nasty.
(This used to be commit be23d87a17)
2002-04-11 02:20:56 +00:00
Jim McDonough
562706b32b add utils/net_help.c to bin/net build
(This used to be commit f2a0e56b3c)
2002-04-05 01:36:50 +00:00
Tim Potter
05f973df82 Make bin/nsstest as part of torture target.
(This used to be commit dbb4dfcef7)
2002-04-04 22:58:56 +00:00
Jim McDonough
e5a617127a Add libads/ldap_user.c to build for ads user management.
(This used to be commit a1cdcdb138)
2002-04-04 02:52:09 +00:00
John Terpstra
bb3f7f49b1 Added build option for "everything". Changed build options for libsmbclient.
(This used to be commit 32f292cc58)
2002-03-30 20:26:50 +00:00
Herb Lewis
93af72fe45 merge winbindd WINS changes from 2.2
(This used to be commit 205399dc17)
2002-03-29 15:37:39 +00:00
Martin Pool
cf60c28ea8 Roll back proto.h changes -- to hard to do them portably. Leave
Herb's installdat change in.
(This used to be commit 39a6b12fdc)
2002-03-25 01:29:55 +00:00
Herb Lewis
b47fcfca3e cut and paste inserted spaces instead of tab. Some versions of make don't
like this
(This used to be commit c86d266d6e)
2002-03-22 02:39:35 +00:00
Herb Lewis
87eb1ffd55 make install should also install the default dat files from codepages
directory so we don't keep getting these stupid error messages about
incorrect size for valid.dat upcase.dat and lowcase.dat
(This used to be commit 4af0c7a93f)
2002-03-21 23:42:54 +00:00
Martin Pool
3bc3a31639 Take out autobuild dependency on proto.h; breaks some proprietary Makes.
(This used to be commit aa27993245)
2002-03-19 12:13:02 +00:00
Martin Pool
7154d14a85 Refactor for systems like Solaris that cannot handle wildcards on the
right side of a dependency line.
(This used to be commit 87f2e3c30d)
2002-03-19 11:46:31 +00:00
Martin Pool
1f62003cd7 Change the Makefile to rebuild proto.h as necessary -- note that this
does not imply that all source will be rebuilt when prototypes change,
merely that the prototypes will be updated.

make proto, clean, delheaders, headers, etc all behave equivalently to
before.

  Intended new behaviour for proto.h, whenever source is being
  compiled:

  If proto.h does not exist, it is built.

  If any source files have changed since proto.h was last checked
  (.proto.check), then proto.h is checked.  If there are no actual
  changes since last time, its mtime is not changed, but we do
  remember the time at which it was checked.

  Whenever we try to build a .o, we need to check the headers are up
  to date.  However, rebuilding the prototypes does not imply
  rebuilding all object files.

  Also to allow people to build on machines without Awk, we never try
  to use it unless a source file has changed.  I guess if we wanted,
  we could have lack of Awk only cause a warning, not failure.

The point of all of this is to be easier on people who don't
understand or forget to type "make proto", and to reduce the chance of
build breakage by having prototypes out of sync.

I also rolled back JF's changes to put proto.h into builddir rather
than srcdir.  There are good arguments in both directions, but since
we keep proto.h in CVS, it seems important that the up-to-date copy by
in srcdir where it can be checked back in.  If people are fussed about
having srcdir be readonly you could change this -- but since proto.h
is only rebuilt when there are changes, it's not a big deal.

I also fixed an apparent race condition in "make headers" that would
make it unsafe if you did 'make -j2', and made 'make clean' not kill
proto.h, since people may not be able to rebuild it.

I reckon there's nothing gnumake-specific here but we shall see.

I also have this great idea about rewriting libtool in C++...
(This used to be commit 8a61a810e5)
2002-03-19 07:26:18 +00:00
Tim Potter
a4cce223d6 Added dos_errstr() function. Not all errors in list yet.
(This used to be commit ddb5753e36)
2002-03-17 06:04:15 +00:00
Andrew Bartlett
7451e73ae2 Move the directory creation process outside the 'installbin.sh' script, and
into its own.  The 'installdirs' makefile entry didn't do anything on my laptop,
so it has been replaced with the section from installbin.sh.

This also fixes the bug that we ignored the setting of $(PRIVATEDIR) when
making the directories.

Finally, link pam_winbind with .po objects only, not a mix of .o and .po
(as per Don Mccall's request).

Andrew Bartlett
(This used to be commit c7a883df28)
2002-03-13 01:21:02 +00:00
Jim McDonough
fb361dc503 Aack. Don't change too much. vfs.c still won't build, but this should fix some other build stuff I screwed up.
(This used to be commit 4490ad340c)
2002-03-12 15:21:04 +00:00
John Terpstra
89d998547d Fix up location of libsmbclient.so so it always goes to /usr/lib.
(This used to be commit e508b07fe7)
2002-03-12 06:48:48 +00:00
John Terpstra
9ec285c568 Added wins entry.
(This used to be commit a4be3b7b93)
2002-03-12 04:18:51 +00:00
Jim McDonough
3bc38669ef Another program converted to popt...smbstatus this time.
(This used to be commit 00d3a064f1)
2002-03-11 21:37:01 +00:00
Andrew Tridgell
cfbbf73677 yipee! Finally put in the patch from Alexey Kotovich
<a.kotovich@sam-solutions.net> that adds the security decsriptor code
for ADS workstation accounts

thanks for your patience Cat, and thanks to Andrew Bartlett for
extensive reviews and suggestions about this code.
(This used to be commit 6891393b5d)
2002-03-10 01:54:44 +00:00
Andrew Tridgell
487c0f051b build tdbbackup by default
(This used to be commit 8836015467)
2002-03-09 00:09:18 +00:00
Jim McDonough
f920d9e3c5 Update Makefile.in for rpcclient build on machines without libpopt or requested build of included popt.
(This used to be commit 4b4430f1c5)
2002-03-07 19:55:35 +00:00
Andrew Tridgell
cb6c9ef475 added a tdb backup utility
when complete, this will be used to backup critical tdbs at samba
startup and possibly periodically while Samba is running so that if
tdb corruption is caused by a power failure Samba can restore from the
backup.
(This used to be commit f619330082)
2002-03-07 18:58:33 +00:00
Andrew Bartlett
6ca1c47dfd Missed the Makefile.in update...
(This used to be commit 4f887f01e5)
2002-03-01 03:28:10 +00:00
Jeremy Allison
2853554cdb Attempt to fix Solaris winbind nss build.
Jeremy.
(This used to be commit 10e3e6855b)
2002-03-01 01:03:06 +00:00