1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-15 23:24:37 +03:00

7652 Commits

Author SHA1 Message Date
Andrew Bartlett
714cdd47cb 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)
2002-01-26 06:24:53 +00:00
Andrew Bartlett
806991158e fix typo
(This used to be commit 8ffc024ebc73dee32a9dfc1873e824c996205475)
2002-01-26 06:18:59 +00:00
Andrew Bartlett
306ee55f91 The new plugable password backend system needs to be initialised after
lp_load().

Andrew Bartlett
(This used to be commit 168c712bf3b8be19e6e72b7bf4563ed3ae87c176)
2002-01-26 06:16:36 +00:00
Andrew Bartlett
a7b5354078 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)
2002-01-26 06:02:28 +00:00
Andrew Bartlett
3e29c28a0b Try to get the compiler not to complain about assignments and truth values...
Andrew Bartlett
(This used to be commit 6650b21ceabefab037cfd3b135039914fb75e3a9)
2002-01-26 05:53:07 +00:00
Andrew Bartlett
29ad4a76cd 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)
2002-01-26 05:52:20 +00:00
Andrew Bartlett
8a05b8c53f Add some information tidbits to an error DEBUG().
(This used to be commit 3db417c2ebfda0d5872dee39e36edc4fb6299b9a)
2002-01-26 01:52:52 +00:00
Jeremy Allison
5b0dca4998 Fixed ADDPRINTEREX to take a devmode and a security descriptor...
Jeremy.
(This used to be commit 27f65b3aad13ecd33bbb84048d70e3dde212f278)
2002-01-26 01:20:38 +00:00
Jean-François Micouleau
2452515a16 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)
2002-01-25 22:53:49 +00:00
Jean-François Micouleau
558e4cf0b8 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)
2002-01-25 22:50:15 +00:00
Andrew Bartlett
38ac78c3df 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)
2002-01-25 22:44:21 +00:00
Jim McDonough
de260eadf9 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)
2002-01-25 22:07:46 +00:00
Jeremy Allison
9d8ed7220f Fixed display of "remote downlevel document" in old print job submission
case.
Jeremy.
(This used to be commit 248770d73072e36fd9812ec5986dce5380dfab33)
2002-01-25 20:16:14 +00:00
Jeremy Allison
b3e5d34171 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)
2002-01-25 18:27:40 +00:00
Jean-François Micouleau
214542b874 new message type for nmbd
J.F.
(This used to be commit 5fef8a5ad29074bcf02904a1cca72133d57cc3e4)
2002-01-25 17:04:47 +00:00
Jean-François Micouleau
a2cff140cf remove unused variable
J.F.
(This used to be commit ca7665c6b3618d3160bbd8e55ab56a8783cf8934)
2002-01-25 17:03:36 +00:00
Jean-François Micouleau
b387638d48 picky about realloc
J.F.
(This used to be commit 873dba59cf4e1f7ebb3593d890b9de7c8cd25653)
2002-01-25 17:02:54 +00:00
Gerald Carter
107b12ec11 merge from 2.2
(This used to be commit 7dc1c34145d66f4bbc5c6ce0bca4b224088366af)
2002-01-25 15:47:12 +00:00
Andrew Bartlett
320f7cb4ac 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)
2002-01-25 11:44:15 +00:00
Andrew Bartlett
30802965d2 Fix a 'const' warning.
(This used to be commit 56be51d648da971bcf1250470b29918e43dc622b)
2002-01-25 10:38:00 +00:00
Andrew Bartlett
24dc27b4b9 Bring auth_winbind into line with the protocol changes
Andrew Bartlett
(This used to be commit c796799afd69fe627b1c8e51fb47957d30da9fae)
2002-01-25 10:16:20 +00:00
Simo Sorce
2836f3fbdd micro fix :-)
(This used to be commit 8929f07a15e7c6f6dbc72b1c50b45eb4c321d516)
2002-01-25 09:55:29 +00:00
Tim Potter
5bd34d995d Removed dodgy init of local variable.
(This used to be commit 1f7172b48e77dcda8bfd20d8e79a90b523727493)
2002-01-25 05:28:38 +00:00
Jeremy Allison
565b9cc157 Return correct RPC fault PDU on bad handle incoming.
Jeremy.
(This used to be commit 0db93d8752197e213f0974edae53e2dafdd77b51)
2002-01-25 05:28:37 +00:00
Tim Potter
d82e73ae55 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)
2002-01-25 05:24:07 +00:00
Tim Potter
5fb852d047 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)
2002-01-25 05:17:49 +00:00
Tim Potter
01a1516f15 Initialise password server to "*" in init_globals()
(This used to be commit 97b243c488e8b976e40c6d873282a153f80c06e4)
2002-01-25 05:16:40 +00:00
Tim Potter
9731bbe06d Removed unused static variable.
(This used to be commit 7c2d7205938ddd958b8399599febbf63ac4c8a88)
2002-01-25 04:26:16 +00:00
Simo Sorce
114eaabdcb minor fixes
(This used to be commit 04f492980b73800b60dde764fdeb43f2eab79624)
2002-01-25 00:35:14 +00:00
Gerald Carter
ca12d82eaf merge from 2.2
(This used to be commit 2137c7163475691056fe1701b75128e238520b05)
2002-01-24 17:04:30 +00:00
Andrew Tridgell
dfed852520 handle filenames like .bashrc better in the new mangling code
(This used to be commit 05adb30eabceea0ebbd7a7831533e2d4f20e58c8)
2002-01-24 13:31:34 +00:00
Jim McDonough
723b368dc2 Check request flag for unicode capability and respond accordingly, rather than only doing unicode. smbfs didn't work.
(This used to be commit 95857a3515d67effb1242ca07daa5643458bb2f0)
2002-01-23 18:09:56 +00:00
Andrew Bartlett
7c05db4803 Oops...
(This used to be commit 9b63a872239bf7757c802bb3db3761cf3ec66e85)
2002-01-23 13:44:32 +00:00
Andrew Bartlett
158efc3aa2 getpwnam -> getpwnam_alloc.
idra has promised not to revert these this time :-)
(This used to be commit f556ad67e82518f5a024ffe9184ff9430ab5c541)
2002-01-23 12:59:24 +00:00
Andrew Bartlett
44dd648a64 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)
2002-01-23 11:57:11 +00:00
Tim Potter
f0fe8ff18a Sync up startpageprinter with appliance.
(This used to be commit 6025ab201aa34bbf4a7e897149ef6ba370a89703)
2002-01-23 11:47:19 +00:00
Gerald Carter
e710c07411 merge from 2.2
(This used to be commit 8ed7c1ffad2df03c66151c1dfe7477301bd3ebad)
2002-01-23 05:10:27 +00:00
Jeremy Allison
1182b7cd8c Merge of fixes from 2.2.
Jeremy.
(This used to be commit 6406a42d012184f5289d4a2b1c07a55556635fe4)
2002-01-22 19:45:17 +00:00
Gerald Carter
e24937d9a2 merge from appliance_head
(This used to be commit 38d2d26af9ef4d90dcb57fa940267f7136876191)
2002-01-22 18:19:00 +00:00
Gerald Carter
528ff0d6f7 merge from 2.2. of
* PRINTER_ATTRIBUTE's
  * "default devmode" parameter
(This used to be commit 90a7a1840b4823d4ebe047130a95dd15a824500b)
2002-01-22 18:14:31 +00:00
Jeremy Allison
73af0a70f5 Ensure fsp->size is correct so readraw's return correct data.
Jeremy.
(This used to be commit 443d2530a7fe32392bdb8c7d38a10b7071392b13)
2002-01-22 07:24:12 +00:00
Martin Pool
c69d1b9434 Add more string explanations of RAP errors that are already documented
in clirap2.
(This used to be commit 935955b50ff503d18265f745e6e0df90d3e5dd4b)
2002-01-22 05:11:28 +00:00
Martin Pool
c4fe824c42 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)
2002-01-22 03:51:28 +00:00
Tim Potter
a4bd608b48 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)
2002-01-22 00:38:36 +00:00
Tim Potter
5916634a3a Display tdb name of "unknown" in logging debug when tdb has not been named.
(This used to be commit 96c36e51ee4df4c46e5e9e611844dfa83260f606)
2002-01-22 00:36:53 +00:00
Tim Potter
a45dbdd722 Added comment about running lp_load() before calling pidfile_create().
(This used to be commit e05c9b34f084874fef3d9e6f39484242ed541940)
2002-01-22 00:35:51 +00:00
Tim Potter
48c4877194 Call pidfile_create() as part of init sequence.
(This used to be commit fa05a7de6d2311293242825dc98596d8e42c6249)
2002-01-22 00:35:05 +00:00
Tim Potter
50648ac3cc Having a const parameter for set_socket_options() causes too much confusion.
(This used to be commit 025a0ea8bac876633b790b62558a8ec1b7460e1b)
2002-01-22 00:31:41 +00:00
Jeremy Allison
71bc6b9af2 Removed freebsd hack. Not correct.
Jeremy.
(This used to be commit 61b4ce7aef53ab82bdc5bc214e50c1891e097c11)
2002-01-21 23:36:47 +00:00
Jeremy Allison
2383fd87a7 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)
2002-01-21 23:34:13 +00:00