tprouty/samba.git
22 years agoThis commit was manufactured by cvs2svn to create tag release-2-2-3
cvs2svn Import User [Sat, 2 Feb 2002 23:34:05 +0000 (23:34 +0000)]
This commit was manufactured by cvs2svn to create tag
'release-2-2-3'.

22 years agoLast changes (fingers crossed :-).
Jeremy Allison [Sat, 2 Feb 2002 23:34:04 +0000 (23:34 +0000)]
Last changes (fingers crossed :-).
Jeremy.

22 years agoSync with new packaging.
Jeremy Allison [Sat, 2 Feb 2002 23:29:21 +0000 (23:29 +0000)]
Sync with new packaging.
Jeremy.

22 years agoSync with new Caldera packaging.
Jeremy Allison [Sat, 2 Feb 2002 23:28:07 +0000 (23:28 +0000)]
Sync with new Caldera packaging.
Jeremy.

22 years ago2.2.3 now in sync.
Jeremy Allison [Sat, 2 Feb 2002 21:28:10 +0000 (21:28 +0000)]
2.2.3 now in sync.
Jeremy.

22 years agoSync.
Jeremy Allison [Sat, 2 Feb 2002 21:09:28 +0000 (21:09 +0000)]
Sync.
Jeremy.

22 years agoSync with 2.2. tree.
Jeremy Allison [Sat, 2 Feb 2002 21:03:55 +0000 (21:03 +0000)]
Sync with 2.2. tree.
Jeremy.

22 years agoSync with new debian packaging.
Jeremy Allison [Sat, 2 Feb 2002 20:57:21 +0000 (20:57 +0000)]
Sync with new debian packaging.
Jeremy.

22 years agoSync with 2.2.3.
Jeremy Allison [Sat, 2 Feb 2002 20:48:33 +0000 (20:48 +0000)]
Sync with 2.2.3.
Jeremy.

22 years agoRemove - not used.
Jeremy Allison [Sat, 2 Feb 2002 20:46:17 +0000 (20:46 +0000)]
Remove - not used.
Jeremy.

22 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn Import User [Sat, 2 Feb 2002 15:44:38 +0000 (15:44 +0000)]
This commit was manufactured by cvs2svn to create branch
'SAMBA_2_2_RELEASE'.

22 years agomerge from 2.2
Gerald Carter [Sat, 2 Feb 2002 15:44:37 +0000 (15:44 +0000)]
merge from 2.2

22 years agomerge from 2.2 and regen
Gerald Carter [Sat, 2 Feb 2002 06:08:43 +0000 (06:08 +0000)]
merge from 2.2 and regen

22 years agomerge from 2.2
Gerald Carter [Sat, 2 Feb 2002 04:58:57 +0000 (04:58 +0000)]
merge from 2.2

22 years agoremove duplicate code
Herb Lewis [Sat, 2 Feb 2002 02:55:42 +0000 (02:55 +0000)]
remove duplicate code

22 years agoAdd support for net ads printer to publish, remove, or display printer info in the...
Jim McDonough [Sat, 2 Feb 2002 02:06:03 +0000 (02:06 +0000)]
Add support for net ads printer to publish, remove, or display printer info in the directory.  Only publishes required fields right now.

22 years agoMinor bug fixes, plus support to remove a printer. Commented out optional attributes...
Jim McDonough [Sat, 2 Feb 2002 02:04:01 +0000 (02:04 +0000)]
Minor bug fixes, plus support to remove a printer.  Commented out optional attributes until a method for checking for their existence is done.

22 years agoSync for release.
Jeremy Allison [Sat, 2 Feb 2002 00:28:32 +0000 (00:28 +0000)]
Sync for release.
Jeremy

22 years agoSync for release.
Jeremy Allison [Sat, 2 Feb 2002 00:26:36 +0000 (00:26 +0000)]
Sync for release.
Jeremy.

22 years agoSync for release.
Jeremy Allison [Fri, 1 Feb 2002 23:31:31 +0000 (23:31 +0000)]
Sync for release.
Jeremy.

22 years agoSync for release.
Jeremy Allison [Fri, 1 Feb 2002 23:22:42 +0000 (23:22 +0000)]
Sync for release.
Jeremy.

22 years agoupdate from 2.2
Simo Sorce [Fri, 1 Feb 2002 23:20:08 +0000 (23:20 +0000)]
update from 2.2

22 years agoMerge for release.
Jeremy Allison [Fri, 1 Feb 2002 22:59:07 +0000 (22:59 +0000)]
Merge for release.
Jeremy

22 years agoSync for release.
Jeremy Allison [Fri, 1 Feb 2002 22:22:26 +0000 (22:22 +0000)]
Sync for release.
Jeremy.

22 years agoMerging for release.
Jeremy Allison [Fri, 1 Feb 2002 22:18:53 +0000 (22:18 +0000)]
Merging for release.
Jeremy.

22 years agoMove over to RELEASE branch.
Jeremy Allison [Fri, 1 Feb 2002 22:15:18 +0000 (22:15 +0000)]
Move over to RELEASE branch.
Jeremy.

22 years agoAdd ads printer information
Jim McDonough [Fri, 1 Feb 2002 17:42:41 +0000 (17:42 +0000)]
Add ads printer information

22 years agoFix build errors on non-ldap systems...change function parms from LDAPMod ** to void **
Jim McDonough [Fri, 1 Feb 2002 17:13:39 +0000 (17:13 +0000)]
Fix build errors on non-ldap systems...change function parms from LDAPMod ** to void **

22 years agoFix file header description and copyright (from cut-and-paste laziness)
Jim McDonough [Fri, 1 Feb 2002 16:58:01 +0000 (16:58 +0000)]
Fix file header description and copyright (from cut-and-paste laziness)

22 years agoAdd ldap_printer.c build for ADS printer objects.
Jim McDonough [Fri, 1 Feb 2002 16:17:39 +0000 (16:17 +0000)]
Add ldap_printer.c build for ADS printer objects.

22 years agoModule for ADS operations on a printer object in the directory. Initially it creates...
Jim McDonough [Fri, 1 Feb 2002 16:15:53 +0000 (16:15 +0000)]
Module for ADS operations on a printer object in the directory.  Initially it creates and modifies a printQueue object in the directory

22 years agoAdd functions for modifying an entry in ADS. Needed for printer publishing.
Jim McDonough [Fri, 1 Feb 2002 16:14:33 +0000 (16:14 +0000)]
Add functions for modifying an entry in ADS.  Needed for printer publishing.

22 years agoFix from Michael Steffens <michael_steffens@hp.com> to make signal
Jeremy Allison [Thu, 31 Jan 2002 23:26:12 +0000 (23:26 +0000)]
Fix from Michael Steffens <michael_steffens@hp.com> to make signal
processing work correctly in winbindd. This is a really good patch
that gives full select semantics to the Samba modified select.
Jeremy.

22 years agoreduced memory usage in winbindd with a rpc backend by using a
Andrew Tridgell [Thu, 31 Jan 2002 12:47:42 +0000 (12:47 +0000)]
reduced memory usage in winbindd with a rpc backend by using a
separate talloc context for each partial fetch

22 years agoRemoved unused variables.
Tim Potter [Thu, 31 Jan 2002 11:54:01 +0000 (11:54 +0000)]
Removed unused variables.

22 years agoadded 'wbinfo --sequence' to show sequence numbers of all domains
Andrew Tridgell [Thu, 31 Jan 2002 11:49:29 +0000 (11:49 +0000)]
added 'wbinfo --sequence' to show sequence numbers of all domains

22 years agoAdded administrator access check for server side add, delete and setform
Tim Potter [Thu, 31 Jan 2002 11:44:00 +0000 (11:44 +0000)]
Added administrator access check for server side add, delete and setform
rpcs.  The only one I have been able to verify is addform - can't get the
client side routines working properly yet.  )-:

22 years agoAdded make functions for SPOOL_Q_{ADD,SET,DELETE}FORM.
Tim Potter [Thu, 31 Jan 2002 11:42:16 +0000 (11:42 +0000)]
Added make functions for SPOOL_Q_{ADD,SET,DELETE}FORM.

I'm pretty sure that the useless_ptr in spoolss_io_q_setform() needs to be
initialised to 1 otherwise the form isn't marshalled at all.  JF, can you
verify this?  If so then this probably applies to the io functions for
setform and deleteform.

22 years agoInitialise some SAM_ACCOUNT structs to NULL, and add some more error checking.
Andrew Bartlett [Thu, 31 Jan 2002 11:38:47 +0000 (11:38 +0000)]
Initialise some SAM_ACCOUNT structs to NULL, and add some more error checking.

Andrew Bartlett

22 years agoAdded addform, setform and deleteform cli functions.
Tim Potter [Thu, 31 Jan 2002 11:37:48 +0000 (11:37 +0000)]
Added addform, setform and deleteform cli functions.

22 years agoAdded addform, setform and deleteform commands. The only one I could get
Tim Potter [Thu, 31 Jan 2002 11:36:30 +0000 (11:36 +0000)]
Added addform, setform and deleteform commands.  The only one I could get
to actually work was addform.  )-:

Removed a whole bunch of calls to werror_to_ntstatus() because there isn't
a one-to-one mapping of NTSTATUS values to WERROR values.  This function
maps WERR_ACCESS_DENIED to NTSTATUS_INVALID_LOCK_SEQUENCE or something
silly like that.

22 years agoAdded some constants for the flags field in the FORM_1 structure.
Tim Potter [Thu, 31 Jan 2002 11:30:36 +0000 (11:30 +0000)]
Added some constants for the flags field in the FORM_1 structure.

The level2 field in SPOOL_Q_ADDFORM is probably part of the FORM structure
as a discriminated union.

22 years agoAdded constant for WERR_FILE_EXISTS.
Tim Potter [Thu, 31 Jan 2002 11:28:02 +0000 (11:28 +0000)]
Added constant for WERR_FILE_EXISTS.

22 years agothis fixes the problem of not being able to add a SD to a file on a
Andrew Tridgell [Thu, 31 Jan 2002 09:37:26 +0000 (09:37 +0000)]
this fixes the problem of not being able to add a SD to a file on a
non-domain Samba server from a NT4 client.

Note that this exactly reverses a change by Jeremy on the 18th of
December 2001, reverting the code back to what JF originally wrote. I
have looked carefully with a sniffer and JFs original NULL sid is
correct (ie. it matches what NT4 does) and also fixes the problem.

Sending a blank sid (which is what jeremy's patch did) causes NT4 to
give a classic "parameter is incorrect error" and prevents the
addition of new ACLs.

22 years agopreparing for release of 3.0-alpha14
Samba Release Account [Wed, 30 Jan 2002 12:12:16 +0000 (12:12 +0000)]
preparing for release of 3.0-alpha14

22 years agoBack out herb's changes (to allow smbpasswd -x to work on accounts outside
Andrew Bartlett [Wed, 30 Jan 2002 12:06:22 +0000 (12:06 +0000)]
Back out herb's changes (to allow smbpasswd -x to work on accounts outside
/etc/passwd) and replace them with a version that works.  Unfortunetly HEAD and
2.2 have different passdb interfaces and different local_password_change
functions...

Andrew Bartlett

22 years agoAn attempt at producing the correct Makefile magic for wrepld_proto.h to be
Andrew Bartlett [Wed, 30 Jan 2002 10:50:07 +0000 (10:50 +0000)]
An attempt at producing the correct Makefile magic for wrepld_proto.h to be
automatically generated on first 'make'.  This wasn't being picked up by the
build farm becouse of the explicit 'make proto'.

The 'make proto' bit isn't somthing our alpha testers know about (its certainly
not clearly documented) and its meant to be automatic.

I hope this works...

Andrew Bartlett

22 years agoAddd wrepld (what a cool name!)
Tim Potter [Wed, 30 Jan 2002 06:10:09 +0000 (06:10 +0000)]
Addd wrepld (what a cool name!)

22 years agoAdded wrepld_proto.h
Tim Potter [Wed, 30 Jan 2002 06:09:48 +0000 (06:09 +0000)]
Added wrepld_proto.h

22 years agoThis commit was manufactured by cvs2svn to create branch
cvs2svn Import User [Wed, 30 Jan 2002 06:08:47 +0000 (06:08 +0000)]
This commit was manufactured by cvs2svn to create branch
'SAMBA_2_2_RELEASE'.

22 years agoRemoved version number from file header.
Tim Potter [Wed, 30 Jan 2002 06:08:46 +0000 (06:08 +0000)]
Removed version number from file header.

Changed "SMB/Netbios" to "SMB/CIFS" in file header.

22 years agoUnused file.
Tim Potter [Wed, 30 Jan 2002 05:49:20 +0000 (05:49 +0000)]
Unused file.

22 years agomerge from 2.2
Gerald Carter [Wed, 30 Jan 2002 05:45:09 +0000 (05:45 +0000)]
merge from 2.2

22 years agomerge change from @_2 to allow smbpasswd -x to delete user even if no
Herb Lewis [Wed, 30 Jan 2002 04:07:42 +0000 (04:07 +0000)]
merge change from @_2 to allow smbpasswd -x to delete user even if no
entry in /etc/passwd.

There are still differences in the local_password_change function. I'm
not sure which was the latest so I didn't change any thing else. Someone
needs to take a look and sync these up.

22 years agoFix for password change from Samuel Ziegler <sam@xpedion.com>
Tim Potter [Wed, 30 Jan 2002 03:23:40 +0000 (03:23 +0000)]
Fix for password change from Samuel Ziegler <sam@xpedion.com>

22 years agoRemoved silly fprintf(stderr, ...) debug.
Tim Potter [Wed, 30 Jan 2002 03:14:20 +0000 (03:14 +0000)]
Removed silly fprintf(stderr, ...) debug.

Part of Samuel Ziegler's patch to get winbind password changing working
again in HEAD.

22 years agoDoc.
Martin Pool [Tue, 29 Jan 2002 05:34:16 +0000 (05:34 +0000)]
Doc.

22 years agoFix "strict allocate" to write the data out on ftruncate with extend.
Jeremy Allison [Tue, 29 Jan 2002 01:17:44 +0000 (01:17 +0000)]
Fix "strict allocate" to write the data out on ftruncate with extend.
Jeremy.

22 years agoSince we have dynamic initialisation in the group mapping code, make
Tim Potter [Tue, 29 Jan 2002 01:01:14 +0000 (01:01 +0000)]
Since we have dynamic initialisation in the group mapping code, make
init_group_mapping() a static function and don't call it from any client
programs.

Not sure whether I've made a bigger mess here or not...

22 years agomake all-docs to make sure everything is up-to-date
Gerald Carter [Mon, 28 Jan 2002 17:36:33 +0000 (17:36 +0000)]
make all-docs to make sure everything is up-to-date

22 years agoName another talloc.
Andrew Bartlett [Mon, 28 Jan 2002 00:54:37 +0000 (00:54 +0000)]
Name another talloc.

22 years agominor fix and checks
Simo Sorce [Sun, 27 Jan 2002 16:37:12 +0000 (16:37 +0000)]
minor fix and checks

22 years agoSome more 'winbind default domain' support patches from Alexander Bokovoy
Andrew Bartlett [Sun, 27 Jan 2002 12:12:22 +0000 (12:12 +0000)]
Some more 'winbind default domain' support patches from Alexander Bokovoy
<a.bokovoy@sam-solutions.net>.

This patch is designed to remove the 'special cases' required for this support.

In particular this now kills off winbind_initgroups, as it appears no longer to
be required.

Andrew Bartlett

22 years agoYes, dev is an 'input/output' paramater...
Andrew Bartlett [Sun, 27 Jan 2002 12:06:27 +0000 (12:06 +0000)]
Yes, dev is an 'input/output' paramater...

Andrew Bartlett

22 years agoPatch from Kevin Stefanik <kstef@mtppi.org> to do some more error checking for
Andrew Bartlett [Sun, 27 Jan 2002 10:53:43 +0000 (10:53 +0000)]
Patch from Kevin Stefanik <kstef@mtppi.org> to do some more error checking for
group mapping init failures.

22 years agomerge from 2.2 and regenerate
Gerald Carter [Sun, 27 Jan 2002 05:37:23 +0000 (05:37 +0000)]
merge from 2.2 and regenerate

22 years agoGive pdbedit a -D paramater for setting the DEBUGLEVEL (makes debugging passdb
Andrew Bartlett [Sun, 27 Jan 2002 03:00:56 +0000 (03:00 +0000)]
Give pdbedit a -D paramater for setting the DEBUGLEVEL (makes debugging passdb
much saner :-).

Change to pdb_init_sam()/pdb_free_sam() loop rather than reset based due to
the talloc basis.

Andrew Bartlett

22 years agomerge from APPLIANCE_HEAD
Gerald Carter [Sat, 26 Jan 2002 22:27:12 +0000 (22:27 +0000)]
merge from APPLIANCE_HEAD

22 years ago - Provide sid->name lookup support for non-unix accounts.
Andrew Bartlett [Sat, 26 Jan 2002 12:24:18 +0000 (12:24 +0000)]
 - Provide sid->name lookup support for non-unix accounts.

 - Rework the name -> sid lookup function to always try local lookup first (for
local domain names) before trying winbind.  This seems to eliminate my winbind
feedback loop problems.  (I don't use winbind for nsswitch, where there are
almost certainly further issues).

Andrew Bartlett

22 years agoBack out some of the less well thought out ideas from last weeks work on
Andrew Bartlett [Sat, 26 Jan 2002 11:48:42 +0000 (11:48 +0000)]
Back out some of the less well thought out ideas from last weeks work on
winbind default domains, particulary now I understand whats going on a lot
better.  This ensures that the RPC client code does as little 'magic' as
possible - this is up to the application/user.  (Where - for to name->sid code
- it was all along).  This leaves the change that allows the sid->name code to
return domains and usernames in seperate paramaters.

Andrew Bartlett

22 years agoBring this code into line with new winbind_lookup_name() interface. I think
Andrew Bartlett [Sat, 26 Jan 2002 10:10:25 +0000 (10:10 +0000)]
Bring this code into line with new winbind_lookup_name() interface.  I think
this might need a bit more work - or at least documentation.

This is certainly a worthwile little hack, as it avoids the need to invert the
group database.  I don't think we should allow unqualified domains here - as
that allows us to distinguish between (at least some) usernames and these
'special' groups.

22 years agoMake a talloc'ed copy of this strings so we can pass the right kind of pointer
Andrew Bartlett [Sat, 26 Jan 2002 10:06:23 +0000 (10:06 +0000)]
Make a talloc'ed copy of this strings so we can pass the right kind of pointer
to the function.  This fixes a nice little segfault the brute-force-casting
created. :-)

Andrew Bartlett

22 years agoRework lookup_name() to take seperate username/domain args, and to remove
Andrew Bartlett [Sat, 26 Jan 2002 10:05:10 +0000 (10:05 +0000)]
Rework lookup_name() to take seperate username/domain args, and to remove
varioius crazy 'if winbind didn't find it' cases.  This makes winbind default
domain support easier to intergrate with smbd.

22 years agoAdd the become_root()/unbecome_root() wrapper around the lookup_name() call,
Andrew Bartlett [Sat, 26 Jan 2002 10:03:25 +0000 (10:03 +0000)]
Add the become_root()/unbecome_root() wrapper around the lookup_name() call,
and its new args.

22 years agoMove the lsa code across to the changed args for lookup_name, and surround it
Andrew Bartlett [Sat, 26 Jan 2002 10:02:23 +0000 (10:02 +0000)]
Move the lsa code across to the changed args for lookup_name, and surround it
in become_root()/unbecome_root().

Also only allocate the memory the client reqests - and don't allow the client
to trigger an SMB_ASSERT if they ask for 'more'.

Up the maximum number of sids allowed, and note that this is an arbiary guess,
and can be raised without consequence.

Andrew Bartlett

22 years agoWe may as well not use these temporary variables - they are only used once and
Andrew Bartlett [Sat, 26 Jan 2002 09:58:11 +0000 (09:58 +0000)]
We may as well not use these temporary variables - they are only used once and
just make it harder to debug (gcc stips optomises them away).

22 years agolocal_lookup_name() doens't acutally use its 'domain' argument, so drop it and
Andrew Bartlett [Sat, 26 Jan 2002 09:56:47 +0000 (09:56 +0000)]
local_lookup_name() doens't acutally use its 'domain' argument, so drop it and
make its use clearer.

22 years agoChange the winbind interface to use seperate 'domain' and 'username' feilds for
Andrew Bartlett [Sat, 26 Jan 2002 09:55:38 +0000 (09:55 +0000)]
Change the winbind interface to use seperate 'domain' and 'username' feilds for
the sid->uid and uid->sid conversions.

Remove some duplicate arguments from these funcitons, and update the
request/response structures for this and the 'winbind domain name' feature.

As such 'winbindd_lookup_name' now takes both a domain and username.

22 years agoAllow a winbind client to obtain the server's domain name.
Andrew Bartlett [Sat, 26 Jan 2002 09:52:55 +0000 (09:52 +0000)]
Allow a winbind client to obtain the server's domain name.

22 years agoRemove the 'direct to winbind' hacks, as they should (if I understand
Andrew Bartlett [Sat, 26 Jan 2002 09:50:28 +0000 (09:50 +0000)]
Remove the 'direct to winbind' hacks, as they should (if I understand
correctly) be no longer needed.  This is in aid of the 'winbind default domain'
code - which works much better when smbd always goes via the standard unix
interfaces.

Andrew Bartlett

22 years agoThis always points at a string literal, so it probably should be 'const'.
Andrew Bartlett [Sat, 26 Jan 2002 06:28:50 +0000 (06:28 +0000)]
This always points at a string literal, so it probably should be 'const'.

22 years agoFix up a security issue with the way we handle domain groups retuned on the
Andrew Bartlett [Sat, 26 Jan 2002 06:24:53 +0000 (06:24 +0000)]
Fix up a security issue with the way we handle domain groups retuned on the
info3.  These are RIDs, and it only makes sense to combine them with the domain
SID returned with them.  This is important for trusted domains, where that sid
might be other than the one we currently reterive from the secrets.tdb.

Also remove the become_root()/unbecome_root() wrapper from around both
remaining TDB users:  Both are now initialised at smbd startup.

Andrew Bartlett

22 years agofix typo
Andrew Bartlett [Sat, 26 Jan 2002 06:18:59 +0000 (06:18 +0000)]
fix typo

22 years agoThe new plugable password backend system needs to be initialised after
Andrew Bartlett [Sat, 26 Jan 2002 06:16:36 +0000 (06:16 +0000)]
The new plugable password backend system needs to be initialised after
lp_load().

Andrew Bartlett

22 years agoThese changes commited on a 'no less broken' basis.
Andrew Bartlett [Sat, 26 Jan 2002 06:02:28 +0000 (06:02 +0000)]
These changes commited on a 'no less broken' basis.

The previous code attempted to call winbind to find out the domain sid.  This
couldn't work for a number of reasons - not the least of which was that both
the client and server ends would reject any name (in this case domain name)
without a \ in it (or lp_winbind_seperator()).

I think this is what was intended to occour.  If there is still some need to
contact winbind for this information, I suggest a new call be created for this
- as it the server-side code doesn't allow for this information to be extracted
easily in any case.

Finally, it gets in the way of the default domain code a bit - hence why I was
actually looking at it...

Andrew Bartlett

22 years agoTry to get the compiler not to complain about assignments and truth values...
Andrew Bartlett [Sat, 26 Jan 2002 05:53:07 +0000 (05:53 +0000)]
Try to get the compiler not to complain about assignments and truth values...

Andrew Bartlett

22 years agoTry to move towards slightly sane linking for Samba by removing some pdb_...()
Andrew Bartlett [Sat, 26 Jan 2002 05:52:20 +0000 (05:52 +0000)]
Try to move towards slightly sane linking for Samba by removing some pdb_...()
calls from rpc_parse/parse_net.c - instead these values are passed as a
paramater.

Unfortunetly some there is still some samr work to be done before this is
actually useful.

Andrew Bartlett

22 years agoAdd some information tidbits to an error DEBUG().
Andrew Bartlett [Sat, 26 Jan 2002 01:52:52 +0000 (01:52 +0000)]
Add some information tidbits to an error DEBUG().

22 years agoFixed ADDPRINTEREX to take a devmode and a security descriptor...
Jeremy Allison [Sat, 26 Jan 2002 01:20:38 +0000 (01:20 +0000)]
Fixed ADDPRINTEREX to take a devmode and a security descriptor...
Jeremy.

22 years agothat's the wins replication daemon !
Jean-François Micouleau [Fri, 25 Jan 2002 22:53:49 +0000 (22:53 +0000)]
that's the wins replication daemon !

there are still some work to do on it but it's already functionnal.

        J.F.

22 years agorewrote nmbd's wins backend to use a tdb instead of a flat text file.
Jean-François Micouleau [Fri, 25 Jan 2002 22:50:15 +0000 (22:50 +0000)]
rewrote nmbd's wins backend to use a tdb instead of a flat text file.
Changed the way the wins record are handled in memory. Now they are living
much longer with the different states: active, released and tombstone.
Also added a version ID, some wins flags and the wins owner ip address to
the namrec->data struct, and a function to process messages sent by the
wins replication daemon.

the initiate_wins_processing() function is not correct, I'll fix it later.

        J.F.

22 years agoChange this code so that we don't do a lookup_name() on root.
Andrew Bartlett [Fri, 25 Jan 2002 22:44:21 +0000 (22:44 +0000)]
Change this code so that we don't do a lookup_name() on root.

This matches the lookup failure case in 2.2, and seems to make more sense than
giving the printer to 'world'.  (Avoiding this lookup makes some of my other
changes - including winbind default domains - a little easier).

In any case, tpot has promised to look at this and test it when he gets back to
work. :-)

Andrew Bartlett

22 years agoEnable net ads commands to use existing tickets if the user doesn't specify a usernam...
Jim McDonough [Fri, 25 Jan 2002 22:07:46 +0000 (22:07 +0000)]
Enable net ads commands to use existing tickets if the user doesn't specify a username on the commandline.  Also don't continue past the kinit if a password is entered and fails because existing tickets would be used, which may not be desired if the username was specified.

22 years agoFixed display of "remote downlevel document" in old print job submission
Jeremy Allison [Fri, 25 Jan 2002 20:16:14 +0000 (20:16 +0000)]
Fixed display of "remote downlevel document" in old print job submission
case.
Jeremy.

22 years agoMake systemtime work for spooling on bigendian systems. Fix from
Jeremy Allison [Fri, 25 Jan 2002 18:27:40 +0000 (18:27 +0000)]
Make systemtime work for spooling on bigendian systems. Fix from
Benjamin (Bj) Kuit bj@it.uts.edu.au.
Jeremy.

22 years agonew message type for nmbd
Jean-François Micouleau [Fri, 25 Jan 2002 17:04:47 +0000 (17:04 +0000)]
new message type for nmbd

J.F.

22 years agoremove unused variable
Jean-François Micouleau [Fri, 25 Jan 2002 17:03:36 +0000 (17:03 +0000)]
remove unused variable

J.F.

22 years agopicky about realloc
Jean-François Micouleau [Fri, 25 Jan 2002 17:02:54 +0000 (17:02 +0000)]
picky about realloc

J.F.

22 years agomerge from 2.2
Gerald Carter [Fri, 25 Jan 2002 15:47:12 +0000 (15:47 +0000)]
merge from 2.2

22 years agoPassdb changes:
Andrew Bartlett [Fri, 25 Jan 2002 11:44:15 +0000 (11:44 +0000)]
Passdb changes:

Modules now name themselves, which should allow for sane behaviour when we get
an 'extern' passdb module (which in turn loads a .so).

Fix up tdbsam for non-unix-accounts.  Not sure if this fixes idra's bug, but
its a start...

Andrew Bartlett