samba.git
21 years agopytdbpack_pack_data: Allow 'd' and 'w' formats to take either Integer
Martin Pool [Mon, 4 Nov 2002 23:08:53 +0000 (23:08 +0000)]
pytdbpack_pack_data: Allow 'd' and 'w' formats to take either Integer
or Long arguments.

21 years agoMake sure uint32 unpacking is unsigned, and generates a Python long so
Martin Pool [Mon, 4 Nov 2002 22:59:48 +0000 (22:59 +0000)]
Make sure uint32 unpacking is unsigned, and generates a Python long so
that it can represent all the unsigned values

21 years agoRe-add some tests which do work with both implementations
Martin Pool [Mon, 4 Nov 2002 22:50:24 +0000 (22:50 +0000)]
Re-add some tests which do work with both implementations

21 years agoComment out test cases where the old and new parser are different.
Martin Pool [Mon, 4 Nov 2002 22:48:06 +0000 (22:48 +0000)]
Comment out test cases where the old and new parser are different.

21 years agopytdbpack_calc_reqd_len: Correct calculation of packed length of
Martin Pool [Mon, 4 Nov 2002 22:29:03 +0000 (22:29 +0000)]
pytdbpack_calc_reqd_len: Correct calculation of packed length of
string types

21 years agoChange to representing buffers ('B') as (LEN, STRING) in Python,
Martin Pool [Mon, 4 Nov 2002 22:22:12 +0000 (22:22 +0000)]
Change to representing buffers ('B') as (LEN, STRING) in Python,
rather than as just a string.  Makes the code more messy, but needed
for compatibility with existing PSA Python code which seems to be too
knotty to separate out.

21 years agotest_pack_extra: Add additional cases.
Martin Pool [Mon, 4 Nov 2002 22:01:25 +0000 (22:01 +0000)]
test_pack_extra: Add additional cases.

test_pack_failures: Remove cases for which old code is too lax.

21 years agotest_pack_extra: Better way of testing packing with extra values.
Martin Pool [Mon, 4 Nov 2002 21:57:53 +0000 (21:57 +0000)]
test_pack_extra: Better way of testing packing with extra values.

21 years agopytdbpack_calc_reqd_len: It's no longer an error to supply more data
Martin Pool [Mon, 4 Nov 2002 21:56:24 +0000 (21:56 +0000)]
pytdbpack_calc_reqd_len: It's no longer an error to supply more data
values than are consumed.

21 years agoDoc
Martin Pool [Mon, 4 Nov 2002 20:34:50 +0000 (20:34 +0000)]
Doc

21 years agotest_pack_extra: The old code does not complain when there are too
Martin Pool [Mon, 4 Nov 2002 20:34:25 +0000 (20:34 +0000)]
test_pack_extra: The old code does not complain when there are too
many data values for the format.  Test that the new code behaves the
same way.

21 years agotest_pack_failures: The old code does not complain when there are too
Martin Pool [Mon, 4 Nov 2002 20:30:09 +0000 (20:30 +0000)]
test_pack_failures: The old code does not complain when there are too
many data values for the format, so we don't test that here.

test_large: New test case for packing/unpack a thousand values.

21 years agopytdbpack_calc_reqd_len: Make exception be thrown correctly when a
Martin Pool [Mon, 4 Nov 2002 20:22:03 +0000 (20:22 +0000)]
pytdbpack_calc_reqd_len: Make exception be thrown correctly when a
non-string is used with a string format code.  (It was being generated
but not thrown.)

Also call checked versions of some functions rather than FAST_*
versions.

21 years agotest_pack_failures: The old and new code is not exactly the same about
Martin Pool [Mon, 4 Nov 2002 20:04:16 +0000 (20:04 +0000)]
test_pack_failures: The old and new code is not exactly the same about
error detection, so now we don't care what exact error is returned as
long as we get something.

21 years agotest_pack: Coercing a dictionary to a sequence as it is packed is not
Martin Pool [Mon, 4 Nov 2002 19:54:06 +0000 (19:54 +0000)]
test_pack: Coercing a dictionary to a sequence as it is packed is not
compatible with the old code, and so it is removed from the test case.

21 years agoSync to actual state
Jelmer Vernooij [Mon, 4 Nov 2002 19:38:15 +0000 (19:38 +0000)]
Sync to actual state

21 years agoAdd FIXME about --with-python
Martin Pool [Mon, 4 Nov 2002 19:36:34 +0000 (19:36 +0000)]
Add FIXME about --with-python

21 years agoLarge number of updates - new structure of the HOWTO, better names, introductions...
Jelmer Vernooij [Mon, 4 Nov 2002 18:25:25 +0000 (18:25 +0000)]
Large number of updates - new structure of the HOWTO, better names, introductions, updating to 3.0

21 years agoMove testsmbc.c to examples
Jelmer Vernooij [Mon, 4 Nov 2002 17:11:18 +0000 (17:11 +0000)]
Move testsmbc.c to examples

21 years agotestsmbc should only be in examples
Jelmer Vernooij [Mon, 4 Nov 2002 17:10:08 +0000 (17:10 +0000)]
testsmbc should only be in examples

21 years agoMove encryption algorithm explanation to dev-doc
Jelmer Vernooij [Mon, 4 Nov 2002 16:23:00 +0000 (16:23 +0000)]
Move encryption algorithm explanation to dev-doc

21 years agoMove explanation of encryption algorithm to dev-doc
Jelmer Vernooij [Mon, 4 Nov 2002 16:20:15 +0000 (16:20 +0000)]
Move explanation of encryption algorithm to dev-doc

21 years agoAdd @BUILD_POPT@ to smbclient
Jelmer Vernooij [Mon, 4 Nov 2002 15:43:21 +0000 (15:43 +0000)]
Add @BUILD_POPT@ to smbclient

21 years agoDon't pass any booleans to pdb_set_* functions
Jelmer Vernooij [Mon, 4 Nov 2002 15:04:26 +0000 (15:04 +0000)]
Don't pass any booleans to pdb_set_* functions

21 years agoDon't pass true to pdb_set_* functions
Jelmer Vernooij [Mon, 4 Nov 2002 15:03:58 +0000 (15:03 +0000)]
Don't pass true to pdb_set_* functions

21 years agoHandle -p correctly
Jelmer Vernooij [Mon, 4 Nov 2002 14:50:08 +0000 (14:50 +0000)]
Handle -p correctly

21 years agoAdapt to metze's PDB_SET patch
Jelmer Vernooij [Mon, 4 Nov 2002 14:36:34 +0000 (14:36 +0000)]
Adapt to metze's PDB_SET patch

21 years agoMake IRIX happy
Jelmer Vernooij [Mon, 4 Nov 2002 14:08:11 +0000 (14:08 +0000)]
Make IRIX happy

21 years agoBecouse lib/popt_common.c uses POPT, we must not include it in LIB, we must
Andrew Bartlett [Mon, 4 Nov 2002 13:39:40 +0000 (13:39 +0000)]
Becouse lib/popt_common.c uses POPT, we must not include it in LIB, we must
link it on a per-program basis.

Next step is to make -lpopt apply only to the right programs, which might
help some of this kind of thing show up on Linux.

Andrew Bartlett

21 years agoAllow 'normal' accounts in the non-unix-account range for smbpasswd - I hope
Andrew Bartlett [Mon, 4 Nov 2002 13:15:53 +0000 (13:15 +0000)]
Allow 'normal' accounts in the non-unix-account range for smbpasswd - I hope
this will fix some of the problems on the build farm @ Compaq (where they have
a *lot* of accounts...).

21 years agoFix debug
Andrew Bartlett [Mon, 4 Nov 2002 12:47:07 +0000 (12:47 +0000)]
Fix debug

21 years agoMove to the use of the 'initialised' flag, rather than the fact the pointer is
Andrew Bartlett [Mon, 4 Nov 2002 12:36:37 +0000 (12:36 +0000)]
Move to the use of the 'initialised' flag, rather than the fact the pointer is
NULL.

Andrew Bartlett

21 years agoTry to fix popt dependencies - we were linking to popt before we built with it.
Andrew Bartlett [Mon, 4 Nov 2002 12:02:48 +0000 (12:02 +0000)]
Try to fix popt dependencies - we were linking to popt before we built with it.

Andrew Bartlett

21 years agoAny conversion to POPT must *always* add @BUILD_POPT@ or it just won't work on
Andrew Bartlett [Mon, 4 Nov 2002 02:49:20 +0000 (02:49 +0000)]
Any conversion to POPT must *always* add @BUILD_POPT@ or it just won't work on
systems other than linux.

Andrew Bartlett

21 years agoThe fixes from Tom plus a minor update from me.
Richard Sharpe [Mon, 4 Nov 2002 02:01:48 +0000 (02:01 +0000)]
The fixes from Tom plus a minor update from me.

21 years agoExtra little fix to vl's patch. Make sure the passdb and testparm messages
Andrew Bartlett [Sun, 3 Nov 2002 14:13:43 +0000 (14:13 +0000)]
Extra little fix to vl's patch.  Make sure the passdb and testparm messages
say exactly the same thing - in particular that we can algorithmic rid base ==
1000, and use the BASE_RID macro to avoid the use of magic numbers.

Andrew Bartlett

21 years agomake_server_info_guest() can need root for the ldapsam backend
Andrew Tridgell [Sun, 3 Nov 2002 13:33:00 +0000 (13:33 +0000)]
make_server_info_guest() can need root for the ldapsam backend

21 years agoForce algorithmic rid base to sane values and talk about it.
Volker Lendecke [Sun, 3 Nov 2002 12:54:12 +0000 (12:54 +0000)]
Force algorithmic rid base to sane values and talk about it.

Volker

21 years agoRemove obsolete function usage and some unused variables
Jelmer Vernooij [Sat, 2 Nov 2002 18:58:55 +0000 (18:58 +0000)]
Remove obsolete function usage and some unused variables

21 years agoRemove dummy function I used for testing
Jelmer Vernooij [Sat, 2 Nov 2002 16:40:14 +0000 (16:40 +0000)]
Remove dummy function I used for testing

21 years agoConvert to popt.
Jelmer Vernooij [Sat, 2 Nov 2002 16:36:39 +0000 (16:36 +0000)]
Convert to popt.
Removed -o and -a options - these have been broken since 2.2 without complaints from users

21 years agoAdd more options to popt_common and use them. Current ones are:
Jelmer Vernooij [Sat, 2 Nov 2002 16:16:15 +0000 (16:16 +0000)]
Add more options to popt_common and use them. Current ones are:
 -V Version information
 -n Set netbios name
 -l Set directory to store log files in
 -d Set debuglevel
 -s Load specified configuration file
 -O Set socket options

21 years agoFix typo
Andrew Bartlett [Sat, 2 Nov 2002 11:35:43 +0000 (11:35 +0000)]
Fix typo

21 years agoClean up this a little - add comments describing a bit of what is going on
Andrew Bartlett [Sat, 2 Nov 2002 07:54:04 +0000 (07:54 +0000)]
Clean up this a little - add comments describing a bit of what is going on
here.

21 years agoAdd a 'ldap trust ids' option that lets pdb_ldap check for posixAccount
Andrew Bartlett [Sat, 2 Nov 2002 07:09:17 +0000 (07:09 +0000)]
Add a 'ldap trust ids' option that lets pdb_ldap check for posixAccount
attributes rather than calling getpwnam() on the user.

This should help fix some of metze's performance issues - particularly on
enumerations.

There is a consequential change to the operation of 'non unix account's in LDAP
- they are no longer restricted to being 'within' the NUA range, but will
always be added to that range.

Finally, there is the doco for this and the previous LDAP SSL changes.

21 years agoMake sure that %u is used for SID elements ...
Richard Sharpe [Sat, 2 Nov 2002 06:21:10 +0000 (06:21 +0000)]
Make sure that %u is used for SID elements ...

21 years agoReturn the result code, not false (0 == success) on error...
Andrew Bartlett [Sat, 2 Nov 2002 03:37:26 +0000 (03:37 +0000)]
Return the result code, not false (0 == success) on error...

21 years agoFixes for pdb_ldap:
Andrew Bartlett [Sat, 2 Nov 2002 03:14:27 +0000 (03:14 +0000)]
Fixes for pdb_ldap:

 - Default is now for start-tls, on the ldap (not ldaps) port
 - We check for 'I am currently root' in the right place now, and don't
   accidentily use a cached connection.
 - We don't loop on failure to be root, or some other errors.

 - A bit cleaner error reporting for add/modify.

 - Both the OpenLDAP and manual URI parsing tested.

Andrew Bartlett

21 years agoFix --set-auth-user command to delete entries from the secrets file when an
Tim Potter [Sat, 2 Nov 2002 01:51:34 +0000 (01:51 +0000)]
Fix --set-auth-user command to delete entries from the secrets file when an
empty username/password is passed on the command line.  Previously we were
leaving the domain name set and the password set to a NULL character.

Added a --get-auth-user command to display the restrict anonymous username
information.  Can only be run successfully by root.

21 years agoSome winbindd cleanups I made trying to fix cr1020:
Tim Potter [Sat, 2 Nov 2002 01:35:18 +0000 (01:35 +0000)]
Some winbindd cleanups I made trying to fix cr1020:

 - move winbindd client handling into accessor functions in
   winbindd_util.c

 - move some winbindd socket routines into accessor functions in
   winbindd_utils.c

(The deadlock situation mentioned in the appliance branch is probably
not applicable since we don't clear the connection cache on SIGHUP.
Perhaps we should?)

21 years agoAdd popt_common_socket_options
Jelmer Vernooij [Sat, 2 Nov 2002 01:07:27 +0000 (01:07 +0000)]
Add popt_common_socket_options

21 years agoHandle the case where the password used in RPC connections (for restrict
Tim Potter [Sat, 2 Nov 2002 01:05:47 +0000 (01:05 +0000)]
Handle the case where the password used in RPC connections (for restrict
anonymous support) is blank.

21 years agoDisplay pipe name in rpc bind failure debug.
Tim Potter [Sat, 2 Nov 2002 00:45:19 +0000 (00:45 +0000)]
Display pipe name in rpc bind failure debug.

21 years agoConvert to popt
Jelmer Vernooij [Sat, 2 Nov 2002 00:44:19 +0000 (00:44 +0000)]
Convert to popt

21 years agoInitial updating of Diagnosis
Jelmer Vernooij [Sat, 2 Nov 2002 00:20:29 +0000 (00:20 +0000)]
Initial updating of Diagnosis

21 years agoUpdate status of docs - some more manpages are now up-to-date
Jelmer Vernooij [Sat, 2 Nov 2002 00:17:21 +0000 (00:17 +0000)]
Update status of docs - some more manpages are now up-to-date

21 years agoUpdate manpages - make ready for 3.0
Jelmer Vernooij [Sat, 2 Nov 2002 00:16:36 +0000 (00:16 +0000)]
Update manpages - make ready for 3.0

21 years agoAdd the changes to change the SIDs ...
Richard Sharpe [Fri, 1 Nov 2002 08:53:28 +0000 (08:53 +0000)]
Add the changes to change the SIDs ...

You must make two passes over NTUSER.DAT, one for the OWNER SID and one for
GROUP SID.

I have not tested this yet ... that is, I have not tried to use this on
a Win2K etc server.

21 years agoAdd more. Parse SIDs on the command line ... soon will actually mod the
Richard Sharpe [Fri, 1 Nov 2002 07:43:54 +0000 (07:43 +0000)]
Add more. Parse SIDs on the command line ... soon will actually mod the
SecDescs in the NTUSER.DAT ...

21 years agoFix a problem with spaces vs tabs
Richard Sharpe [Fri, 1 Nov 2002 05:41:56 +0000 (05:41 +0000)]
Fix a problem with spaces vs tabs

21 years agoRevert that stupid one line change.
Richard Sharpe [Fri, 1 Nov 2002 05:29:11 +0000 (05:29 +0000)]
Revert that stupid one line change.

21 years agoFix small typo ...
Richard Sharpe [Fri, 1 Nov 2002 05:24:38 +0000 (05:24 +0000)]
Fix small typo ...

21 years agoAdd more code to the profiles program and add Makefile.in support.
Richard Sharpe [Fri, 1 Nov 2002 05:06:19 +0000 (05:06 +0000)]
Add more code to the profiles program and add Makefile.in support.

21 years agoTidyup of some DCERPC pipe connection debugs. The new LSA_DS stuff
Tim Potter [Fri, 1 Nov 2002 00:38:26 +0000 (00:38 +0000)]
Tidyup of some DCERPC pipe connection debugs.  The new LSA_DS stuff
generates some errors we haven't seen before which are inappropriately
logged at level 0.

21 years agoFix slowdown because of enumerating all print queues on every smbd startup.
Jeremy Allison [Thu, 31 Oct 2002 23:41:02 +0000 (23:41 +0000)]
Fix slowdown because of enumerating all print queues on every smbd startup.
Jeremy.

21 years agoAdd initial upgrading doc (doesn't contain much currently)
Jelmer Vernooij [Thu, 31 Oct 2002 22:00:20 +0000 (22:00 +0000)]
Add initial upgrading doc (doesn't contain much currently)
Start using more entities

21 years agoRe-enable use of existing kerberos tickets.
Jim McDonough [Thu, 31 Oct 2002 19:20:33 +0000 (19:20 +0000)]
Re-enable use of existing kerberos tickets.

21 years agoCheck the long_archi name is not null.
Jeremy Allison [Thu, 31 Oct 2002 18:43:05 +0000 (18:43 +0000)]
Check the long_archi name is not null.
Jeremy.

21 years agoadd smb_load_modules() to load a list of modules - does this function look ok ?
Jelmer Vernooij [Thu, 31 Oct 2002 18:08:45 +0000 (18:08 +0000)]
add smb_load_modules() to load a list of modules - does this function look ok ?

21 years agosearch & replace doesn't always work reliably :-)
Volker Lendecke [Thu, 31 Oct 2002 17:34:49 +0000 (17:34 +0000)]
search & replace doesn't always work reliably :-)

Volker

21 years agoAdd a small utility that can print out the SEC DESCs in NTUSER.DAT.
Richard Sharpe [Thu, 31 Oct 2002 17:27:47 +0000 (17:27 +0000)]
Add a small utility that can print out the SEC DESCs in NTUSER.DAT.

This is an early, messy version of the code, but it illustrates what can
be done. It currently only prints the Owner SID, Group SID, and Perms and
SID from each ACE.

Once more work is done, it could actually walk the SEC DESCs and ACEs and
change the SIDS ...

21 years agoAnother Buchan Milne patch that escaped the last commit.
John Terpstra [Thu, 31 Oct 2002 04:17:29 +0000 (04:17 +0000)]
Another Buchan Milne patch that escaped the last commit.

21 years agoApplied Buchan Milne's patches.
John Terpstra [Thu, 31 Oct 2002 04:16:26 +0000 (04:16 +0000)]
Applied Buchan Milne's patches.

21 years agoRerun autoconf
Jelmer Vernooij [Wed, 30 Oct 2002 19:23:22 +0000 (19:23 +0000)]
Rerun autoconf

21 years agoFix build. Don't use BSD setenv. Use POSIX putenv.
Jim McDonough [Wed, 30 Oct 2002 18:18:25 +0000 (18:18 +0000)]
Fix build.  Don't use BSD setenv.  Use POSIX putenv.

Jeremy, it wasn't me!!!!!!

21 years agouse sys_dlopen instead of dlopen (thanks to jra for noticing)
Jelmer Vernooij [Wed, 30 Oct 2002 17:50:36 +0000 (17:50 +0000)]
use sys_dlopen instead of dlopen (thanks to jra for noticing)

21 years agoFix boog in argument list for nt_create_andx.
Tim Potter [Wed, 30 Oct 2002 14:52:53 +0000 (14:52 +0000)]
Fix boog in argument list for nt_create_andx.

21 years agoThe locking description in this doc is outdated - note that
Jelmer Vernooij [Wed, 30 Oct 2002 12:50:47 +0000 (12:50 +0000)]
The locking description in this doc is outdated - note that

21 years ago- Remove RTLD_GLOBAL
Jelmer Vernooij [Wed, 30 Oct 2002 12:07:49 +0000 (12:07 +0000)]
- Remove RTLD_GLOBAL
- make smb_load_module() return the return value of init_module()

21 years agoadded a timegm() function for systems that don't have it
Andrew Tridgell [Wed, 30 Oct 2002 12:03:40 +0000 (12:03 +0000)]
added a timegm() function for systems that don't have it

21 years agoAdd init_module_function typedef for new module system
Jelmer Vernooij [Wed, 30 Oct 2002 12:01:19 +0000 (12:01 +0000)]
Add init_module_function typedef for new module system

21 years agoAdd initial vesion of new module system
Jelmer Vernooij [Wed, 30 Oct 2002 11:52:36 +0000 (11:52 +0000)]
Add initial vesion of new module system

21 years agoNot sure why this is here - so off it goes.
John Terpstra [Wed, 30 Oct 2002 04:04:00 +0000 (04:04 +0000)]
Not sure why this is here - so off it goes.

21 years agoAdding Buchan Milne's updates from HEAD.
John Terpstra [Wed, 30 Oct 2002 03:54:19 +0000 (03:54 +0000)]
Adding Buchan Milne's updates from HEAD.

21 years agoAdding Buchan Milne's updates.
John Terpstra [Wed, 30 Oct 2002 03:50:23 +0000 (03:50 +0000)]
Adding Buchan Milne's updates.

21 years agoAdded Buchan Milne's DESTDIR patch.
John Terpstra [Wed, 30 Oct 2002 03:29:01 +0000 (03:29 +0000)]
Added Buchan Milne's DESTDIR patch.

21 years agoAdd autom4te.cache (used by newer autoconfs)
Jelmer Vernooij [Tue, 29 Oct 2002 21:46:36 +0000 (21:46 +0000)]
Add autom4te.cache (used by newer autoconfs)

21 years agoWe also support security = server
Jelmer Vernooij [Tue, 29 Oct 2002 16:20:06 +0000 (16:20 +0000)]
We also support security = server

21 years ago2.2 was the previous release - don't talk about it like it's current
Jelmer Vernooij [Tue, 29 Oct 2002 16:19:32 +0000 (16:19 +0000)]
2.2 was the previous release - don't talk about it like it's current

21 years agoSmall markup fixes
Jelmer Vernooij [Tue, 29 Oct 2002 16:18:10 +0000 (16:18 +0000)]
Small markup fixes

21 years ago-E doesn't take arguments
Jelmer Vernooij [Tue, 29 Oct 2002 16:16:37 +0000 (16:16 +0000)]
-E doesn't take arguments

21 years agoSync with actual changes
Jelmer Vernooij [Tue, 29 Oct 2002 16:12:57 +0000 (16:12 +0000)]
Sync with actual changes

21 years agoFix a nice little memory leak in our uid changing code.
Andrew Bartlett [Tue, 29 Oct 2002 08:21:40 +0000 (08:21 +0000)]
Fix a nice little memory leak in our uid changing code.

Andrew Bartlett

21 years agoAdded close and unlink functions.
Tim Potter [Tue, 29 Oct 2002 04:39:33 +0000 (04:39 +0000)]
Added close and unlink functions.

21 years agoFix fd leak with kernel change notify.
Jeremy Allison [Mon, 28 Oct 2002 22:04:47 +0000 (22:04 +0000)]
Fix fd leak with kernel change notify.
Jeremy.

21 years agoFix typo (-s -> -S)
Jelmer Vernooij [Mon, 28 Oct 2002 19:57:33 +0000 (19:57 +0000)]
Fix typo (-s -> -S)

21 years agoUpdate info on ldap suffix (thanks metze)
Jelmer Vernooij [Mon, 28 Oct 2002 19:54:11 +0000 (19:54 +0000)]
Update info on ldap suffix (thanks metze)

21 years agodocument ldap suffix
Jelmer Vernooij [Mon, 28 Oct 2002 19:24:48 +0000 (19:24 +0000)]
document ldap suffix

21 years agoImplement 'net maxrid'. Needed to find the maximum current rid to
Volker Lendecke [Mon, 28 Oct 2002 12:55:22 +0000 (12:55 +0000)]
Implement 'net maxrid'. Needed to find the maximum current rid to
set 'algorithmic rid base' correctly after a 'net rpc vampire'.

Volker

21 years agoRemove make_printerdef from binary install process.
John Terpstra [Sun, 27 Oct 2002 00:04:13 +0000 (00:04 +0000)]
Remove make_printerdef from binary install process.