kai/samba.git
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.
(This used to be commit 2c906ff77d81bc7097129d3f34be48857ce3a48b)

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.
(This used to be commit e4c13c51fa559d24da73f57b348cfe7d711b3c7d)

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.
(This used to be commit 9930cf97330dd93985c5558cec6b24406e90c228)

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
(This used to be commit 6f977036ad1053cc4c06f801b989afdd8cfca10d)

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
(This used to be commit 86d5326d0dc6a070dfeb24a5306a2b4404bfc0f1)

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
(This used to be commit 3a413ef1eabbb28b589e5238d9c837a8275b54d0)

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!)
(This used to be commit ab049355af965f7d5a9851ddbb7400d3d9986b5a)

22 years agoAdded wrepld_proto.h
Tim Potter [Wed, 30 Jan 2002 06:09:48 +0000 (06:09 +0000)]
Added wrepld_proto.h
(This used to be commit 1b9b4e46d2dec69cc6de67aad93614412ae61379)

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.
(This used to be commit 6a58c9bd06d0d7502a24bf5ce5a2faf0a146edfa)

22 years agoUnused file.
Tim Potter [Wed, 30 Jan 2002 05:49:20 +0000 (05:49 +0000)]
Unused file.
(This used to be commit 78013c0eccc1fed356781cf2fbba3025fcbb080c)

22 years agomerge from 2.2
Gerald Carter [Wed, 30 Jan 2002 05:45:09 +0000 (05:45 +0000)]
merge from 2.2
(This used to be commit 69a9c005c21833bdf22b72aaa3704bd14f627840)

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.
(This used to be commit 539b025397e569796f2349d33438c2be469c8c69)

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>
(This used to be commit 418bdd5919265bc74844401901d91edc84076314)

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.
(This used to be commit b5540bee7be957d1def62ee85a84488e0250624b)

22 years agoDoc.
Martin Pool [Tue, 29 Jan 2002 05:34:16 +0000 (05:34 +0000)]
Doc.
(This used to be commit 91e8cb76628e9fcc5dc117d98d464b26db71654e)

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.
(This used to be commit 48fc42c7104d118bd43c80c801866ebd03be1638)

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...
(This used to be commit 3c887d9021269aaa9fc0bc771af8589077e6208e)

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
(This used to be commit 7235a21ca4f558fbea7e156e891683767dc2cda1)

22 years agoName another talloc.
Andrew Bartlett [Mon, 28 Jan 2002 00:54:37 +0000 (00:54 +0000)]
Name another talloc.
(This used to be commit 9d62f25f5d3c25d71d8b87801084d42ae9b66f8c)

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

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
(This used to be commit f1d8d509766e9169d39332559162cfec249bfc70)

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
(This used to be commit 8cac618174365825e8b1824f70cb42afbce5e500)

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.
(This used to be commit cd6a2dad4e3092a19f784b6548fce49ecd8bb549)

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
(This used to be commit 55c53ef08974947cf10a79882b63d6d8e8baad4c)

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
(This used to be commit e40a0a7f27950bd0484fe7d6b67dce45cd75d25c)

22 years agomerge from APPLIANCE_HEAD
Gerald Carter [Sat, 26 Jan 2002 22:27:12 +0000 (22:27 +0000)]
merge from APPLIANCE_HEAD
(This used to be commit e3b87ffc8c26f9fd4c3e8181897b8812b7dc4ab6)

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
(This used to be commit 25cadce67bc8effd4248ab993ae78e1d8511d994)

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
(This used to be commit 5dfba2cf536f761b0aee314ed9e30dc53900b691)

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.
(This used to be commit 151dd7bc6c61e19a993017e5e0b50314801e26de)

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
(This used to be commit c84fa7f5fd62940e397d3353fb688f283349393e)

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.
(This used to be commit 3e71521957d579f00249679de837490aca5ba92f)

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.
(This used to be commit e7b3d64f6055b5d3b036f525f0ece3c9479d4f7a)

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
(This used to be commit 6e7667125d142670db7393ed7a48386f3821d896)

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).
(This used to be commit 100d2705ddfa1fde73a0bb06e8e097b2b1cbf36a)

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.
(This used to be commit d1ea20cc2392f8ba4ac4241f9b5ec14489e49147)

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.
(This used to be commit ce1b4d4c309e4a60bec5a53224585bd504264672)

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.
(This used to be commit 85018fecfad1f7f6ef44b511bac937881a7bf937)

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
(This used to be commit a41fe2f6c845789c719de1d9a26a1374fb0e7fdb)

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'.
(This used to be commit e72e511935ce7f2b658a133bd536833864bc6a92)

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
(This used to be commit 554842e0a55155193f25aefca6480b89d5c512ca)

22 years agofix typo
Andrew Bartlett [Sat, 26 Jan 2002 06:18:59 +0000 (06:18 +0000)]
fix typo
(This used to be commit 8ffc024ebc73dee32a9dfc1873e824c996205475)

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
(This used to be commit 168c712bf3b8be19e6e72b7bf4563ed3ae87c176)

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
(This used to be commit 5fe1ea7f11a314a42f867a4f159c1c63c516568f)

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
(This used to be commit 6650b21ceabefab037cfd3b135039914fb75e3a9)

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
(This used to be commit 4fc9e16ad7a77cf2e37b27640c0dec2052e9cda0)

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().
(This used to be commit 3db417c2ebfda0d5872dee39e36edc4fb6299b9a)

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.
(This used to be commit 27f65b3aad13ecd33bbb84048d70e3dde212f278)

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.
(This used to be commit 2506c98d19263bd5f367a488c2238dcdfec46ee9)

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.
(This used to be commit b902e087d06c32797af19021a7f56895d86d7364)

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
(This used to be commit f0137ac126f782e83ed15d8e905def708cdb6c64)

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.
(This used to be commit 7e5d7dfa834c0161460bde8a2f0d4824c0a0d1fe)

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.
(This used to be commit 248770d73072e36fd9812ec5986dce5380dfab33)

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.
(This used to be commit 5f4de275a3a63a95e76d077ffc94321a078833bf)

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.
(This used to be commit 5fef8a5ad29074bcf02904a1cca72133d57cc3e4)

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.
(This used to be commit ca7665c6b3618d3160bbd8e55ab56a8783cf8934)

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.
(This used to be commit 873dba59cf4e1f7ebb3593d890b9de7c8cd25653)

22 years agomerge from 2.2
Gerald Carter [Fri, 25 Jan 2002 15:47:12 +0000 (15:47 +0000)]
merge from 2.2
(This used to be commit 7dc1c34145d66f4bbc5c6ce0bca4b224088366af)

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
(This used to be commit 7d576d89d7b4a7b95e87a844568d7d7cd89f0542)

22 years agoFix a 'const' warning.
Andrew Bartlett [Fri, 25 Jan 2002 10:38:00 +0000 (10:38 +0000)]
Fix a 'const' warning.
(This used to be commit 56be51d648da971bcf1250470b29918e43dc622b)

22 years agoBring auth_winbind into line with the protocol changes
Andrew Bartlett [Fri, 25 Jan 2002 10:16:20 +0000 (10:16 +0000)]
Bring auth_winbind into line with the protocol changes

Andrew Bartlett
(This used to be commit c796799afd69fe627b1c8e51fb47957d30da9fae)

22 years agomicro fix :-)
Simo Sorce [Fri, 25 Jan 2002 09:55:29 +0000 (09:55 +0000)]
micro fix :-)
(This used to be commit 8929f07a15e7c6f6dbc72b1c50b45eb4c321d516)

22 years agoRemoved dodgy init of local variable.
Tim Potter [Fri, 25 Jan 2002 05:28:38 +0000 (05:28 +0000)]
Removed dodgy init of local variable.
(This used to be commit 1f7172b48e77dcda8bfd20d8e79a90b523727493)

22 years agoReturn correct RPC fault PDU on bad handle incoming.
Jeremy Allison [Fri, 25 Jan 2002 05:28:37 +0000 (05:28 +0000)]
Return correct RPC fault PDU on bad handle incoming.
Jeremy.
(This used to be commit 0db93d8752197e213f0974edae53e2dafdd77b51)

22 years agoMuch more useful handling of backup domain controllers in winbindd. Honour
Tim Potter [Fri, 25 Jan 2002 05:24:07 +0000 (05:24 +0000)]
Much more useful handling of backup domain controllers in winbindd.  Honour
the "password server" smb.conf parameter when choosing a DC to connect to.

Due to the origin of the code in cm_get_dc_name() it wouldn't try
additional DCs if the first DC didn't work.  This would wedge winbindd if you
had "password server = foo1, foo2" and foo1 was down.
(This used to be commit fc7ed1b4a8774a6a07a8d8fd08d9d2f15cd5c1dc)

22 years agoRemove check for passwordserver = "*" as we now initialise it.
Tim Potter [Fri, 25 Jan 2002 05:17:49 +0000 (05:17 +0000)]
Remove check for passwordserver = "*" as we now initialise it.

Added TODO about perhaps doing a SAMLOGON udp/138 request before a
cli_full_connection in connect_to_domain_password_server()
(This used to be commit b61e40a5be3b8bacc74399902169755dbc4c7fca)

22 years agoInitialise password server to "*" in init_globals()
Tim Potter [Fri, 25 Jan 2002 05:16:40 +0000 (05:16 +0000)]
Initialise password server to "*" in init_globals()
(This used to be commit 97b243c488e8b976e40c6d873282a153f80c06e4)

22 years agoRemoved unused static variable.
Tim Potter [Fri, 25 Jan 2002 04:26:16 +0000 (04:26 +0000)]
Removed unused static variable.
(This used to be commit 7c2d7205938ddd958b8399599febbf63ac4c8a88)

22 years agominor fixes
Simo Sorce [Fri, 25 Jan 2002 00:35:14 +0000 (00:35 +0000)]
minor fixes
(This used to be commit 04f492980b73800b60dde764fdeb43f2eab79624)

22 years agomerge from 2.2
Gerald Carter [Thu, 24 Jan 2002 17:04:30 +0000 (17:04 +0000)]
merge from 2.2
(This used to be commit 2137c7163475691056fe1701b75128e238520b05)

22 years agohandle filenames like .bashrc better in the new mangling code
Andrew Tridgell [Thu, 24 Jan 2002 13:31:34 +0000 (13:31 +0000)]
handle filenames like .bashrc better in the new mangling code
(This used to be commit 05adb30eabceea0ebbd7a7831533e2d4f20e58c8)

22 years agoCheck request flag for unicode capability and respond accordingly, rather than only...
Jim McDonough [Wed, 23 Jan 2002 18:09:56 +0000 (18:09 +0000)]
Check request flag for unicode capability and respond accordingly, rather than only doing unicode.  smbfs didn't work.
(This used to be commit 95857a3515d67effb1242ca07daa5643458bb2f0)

22 years agoOops...
Andrew Bartlett [Wed, 23 Jan 2002 13:44:32 +0000 (13:44 +0000)]
Oops...
(This used to be commit 9b63a872239bf7757c802bb3db3761cf3ec66e85)

22 years agogetpwnam -> getpwnam_alloc.
Andrew Bartlett [Wed, 23 Jan 2002 12:59:24 +0000 (12:59 +0000)]
getpwnam -> getpwnam_alloc.

idra has promised not to revert these this time :-)
(This used to be commit f556ad67e82518f5a024ffe9184ff9430ab5c541)

22 years agoChange the order of this a bit - as unix password change can fail.
Andrew Bartlett [Wed, 23 Jan 2002 11:57:11 +0000 (11:57 +0000)]
Change the order of this a bit - as unix password change can fail.

This due for abstraction into chgpasswd.c shortly.

Andrew Bartlett
(This used to be commit 635942ae21793136814a84b1d344f411a5d6e242)

22 years agoSync up startpageprinter with appliance.
Tim Potter [Wed, 23 Jan 2002 11:47:19 +0000 (11:47 +0000)]
Sync up startpageprinter with appliance.
(This used to be commit 6025ab201aa34bbf4a7e897149ef6ba370a89703)

22 years agomerge from 2.2
Gerald Carter [Wed, 23 Jan 2002 05:10:27 +0000 (05:10 +0000)]
merge from 2.2
(This used to be commit 8ed7c1ffad2df03c66151c1dfe7477301bd3ebad)

22 years agoMerge of fixes from 2.2.
Jeremy Allison [Tue, 22 Jan 2002 19:45:17 +0000 (19:45 +0000)]
Merge of fixes from 2.2.
Jeremy.
(This used to be commit 6406a42d012184f5289d4a2b1c07a55556635fe4)

22 years agomerge from appliance_head
Gerald Carter [Tue, 22 Jan 2002 18:19:00 +0000 (18:19 +0000)]
merge from appliance_head
(This used to be commit 38d2d26af9ef4d90dcb57fa940267f7136876191)

22 years agomerge from 2.2. of
Gerald Carter [Tue, 22 Jan 2002 18:14:31 +0000 (18:14 +0000)]
merge from 2.2. of

  * PRINTER_ATTRIBUTE's
  * "default devmode" parameter
(This used to be commit 90a7a1840b4823d4ebe047130a95dd15a824500b)

22 years agoEnsure fsp->size is correct so readraw's return correct data.
Jeremy Allison [Tue, 22 Jan 2002 07:24:12 +0000 (07:24 +0000)]
Ensure fsp->size is correct so readraw's return correct data.
Jeremy.
(This used to be commit 443d2530a7fe32392bdb8c7d38a10b7071392b13)

22 years agoAdd more string explanations of RAP errors that are already documented
Martin Pool [Tue, 22 Jan 2002 05:11:28 +0000 (05:11 +0000)]
Add more string explanations of RAP errors that are already documented
in clirap2.
(This used to be commit 935955b50ff503d18265f745e6e0df90d3e5dd4b)

22 years agoWe have to do some initialization before the string conversion
Martin Pool [Tue, 22 Jan 2002 03:51:28 +0000 (03:51 +0000)]
We have to do some initialization before the string conversion
routines can work.  The code was copied into both convert_string and
convert_string_allocate -- I split it into a little static function,
and removed an apparently duplicate call to init_valid_table().
(This used to be commit 7f7d22880d40c7344bc402203dd150255fc694cf)

22 years agoRaise log level of warning produced when the open() of the tdb fails.
Tim Potter [Tue, 22 Jan 2002 00:38:36 +0000 (00:38 +0000)]
Raise log level of warning produced when the open() of the tdb fails.
Sometimes an open error is OK.
(This used to be commit 5fb3be62910faf91e0e8381ba91f314f2092cb8e)

22 years agoDisplay tdb name of "unknown" in logging debug when tdb has not been named.
Tim Potter [Tue, 22 Jan 2002 00:36:53 +0000 (00:36 +0000)]
Display tdb name of "unknown" in logging debug when tdb has not been named.
(This used to be commit 96c36e51ee4df4c46e5e9e611844dfa83260f606)

22 years agoAdded comment about running lp_load() before calling pidfile_create().
Tim Potter [Tue, 22 Jan 2002 00:35:51 +0000 (00:35 +0000)]
Added comment about running lp_load() before calling pidfile_create().
(This used to be commit e05c9b34f084874fef3d9e6f39484242ed541940)

22 years agoCall pidfile_create() as part of init sequence.
Tim Potter [Tue, 22 Jan 2002 00:35:05 +0000 (00:35 +0000)]
Call pidfile_create() as part of init sequence.
(This used to be commit fa05a7de6d2311293242825dc98596d8e42c6249)

22 years agoHaving a const parameter for set_socket_options() causes too much confusion.
Tim Potter [Tue, 22 Jan 2002 00:31:41 +0000 (00:31 +0000)]
Having a const parameter for set_socket_options() causes too much confusion.
(This used to be commit 025a0ea8bac876633b790b62558a8ec1b7460e1b)

22 years agoRemoved freebsd hack. Not correct.
Jeremy Allison [Mon, 21 Jan 2002 23:36:47 +0000 (23:36 +0000)]
Removed freebsd hack. Not correct.
Jeremy.
(This used to be commit 61b4ce7aef53ab82bdc5bc214e50c1891e097c11)

22 years agoFound and fixed the logic bug in write cache code. Amazingly helpful
Jeremy Allison [Mon, 21 Jan 2002 23:34:13 +0000 (23:34 +0000)]
Found and fixed the logic bug in write cache code. Amazingly helpful
work from Juergen.Hasch@de.bosch.com in tracking this down.
Jermy.
(This used to be commit 40060fe3459cf103a143c324f99c2233a8e53825)

22 years agogetpwnam_alloc -> getpwnam
Simo Sorce [Mon, 21 Jan 2002 08:08:54 +0000 (08:08 +0000)]
getpwnam_alloc -> getpwnam
same reason as per pdb_tdb.c
there isn't (and will never be probably) another call to any getpw* fn,
let's use getpwnam_alloc only when needed.
(This used to be commit f12361b1327306e6a3fcf8ff138413ad9a6c69a3)

22 years agohmm, get it right this time.
Simo Sorce [Mon, 21 Jan 2002 07:55:35 +0000 (07:55 +0000)]
hmm, get it right this time.
(This used to be commit 57a145bff6b382e6dc9a9af96451175d81462c8d)

22 years agofix also the comment.
Simo Sorce [Mon, 21 Jan 2002 07:54:09 +0000 (07:54 +0000)]
fix also the comment.
(This used to be commit 7f7a15e09a53a03dd423d40201f037f8da049cd7)

22 years agoreplace getpwnam_alloc with plain getpwnam.
Simo Sorce [Mon, 21 Jan 2002 07:51:26 +0000 (07:51 +0000)]
replace getpwnam_alloc with plain getpwnam.
We are not going to reuse any getpw* call, so the extra alloc,copy and free
only uses extra memory and extra cpu time for nothing.
(This used to be commit 5c0bb0487bec00df494b72b64ddf274f42bfefea)

22 years agoMake the -L option to smbclient slightly less gross:
Martin Pool [Mon, 21 Jan 2002 06:42:45 +0000 (06:42 +0000)]
Make the -L option to smbclient slightly less gross:

  smbclient -L //nautilus1/

should definitely not say "unknown host "nautilus1/".  Sheesh.
(This used to be commit 1cd431b8f17e5ac394436d31f64032387ca11930)

22 years agoSpelling fix.
Tim Potter [Mon, 21 Jan 2002 06:12:22 +0000 (06:12 +0000)]
Spelling fix.
(This used to be commit 6380f9ff7a57975b9827fb7252439ee28a25970d)

22 years agogetpwnam -> getpwnam_alloc
Andrew Bartlett [Mon, 21 Jan 2002 02:51:23 +0000 (02:51 +0000)]
getpwnam -> getpwnam_alloc
(This used to be commit 59905d44e51d83f2d4a7b6844e0ae764e0b35c0c)

22 years agogetpwnam -> getpwnam_alloc
Andrew Bartlett [Mon, 21 Jan 2002 00:47:02 +0000 (00:47 +0000)]
getpwnam -> getpwnam_alloc
(This used to be commit f8208458b3ac05743932d96e4d0a919adc0d9e55)

22 years agoOne less Get_Pwnam_Modify call!
Andrew Bartlett [Mon, 21 Jan 2002 00:32:26 +0000 (00:32 +0000)]
One less Get_Pwnam_Modify call!

(the passdb backend is case-insensitive, so there isn't any point to this).

Andrew Bartlett
(This used to be commit 5e868b403340d84d68c1831a09bf1a4dd710da90)

22 years agoAdd the -s command to keep smbpasswd quiet during the tests.
Andrew Bartlett [Mon, 21 Jan 2002 00:25:24 +0000 (00:25 +0000)]
Add the -s command to keep smbpasswd quiet during the tests.

Andrew Bartlett
(This used to be commit 180d7e8c43d754a0ba4494707ac7924ab4a06d72)

22 years agoInititialise the gid to what standard_sub_advanced wants for 'no value'.
Andrew Bartlett [Sun, 20 Jan 2002 23:17:36 +0000 (23:17 +0000)]
Inititialise the gid to what standard_sub_advanced wants for 'no value'.

Andrew Bartlett
(This used to be commit a96503475d9c1d91c2dfcdebb4f60183432d9aff)