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

9195 Commits

Author SHA1 Message Date
Andrew Bartlett
717b27c005 Add const.
(This used to be commit fb28abd120310a591bdf5fa1afc5521443c3d34c)
2002-08-17 06:36:18 +00:00
Andrew Bartlett
c4ebde6b4b Add 'const'.
(This used to be commit 8955f3d63a9d9e5da76331996fba42dc105737da)
2002-08-17 06:34:41 +00:00
Andrew Bartlett
22404245b4 Becouse of changes to the meaning of this feild over time, this doesn't
actually work.  Also, the idea of 'loopback winbind' isn't that bad an idea
anyway (potential PDC/BDC applications).

Given all that, remove it...

Andrew Bartlett
(This used to be commit fc0d6e53fce1d05b16ec58c0bdc38aa8da4422c0)
2002-08-17 05:26:58 +00:00
Andrew Bartlett
ba1d348265 The idea of this function is not to touch the argument, so make it const too...
(This used to be commit 8a63fe45058b15c15d79e15387e908564cfe5c2d)
2002-08-17 04:56:38 +00:00
Andrew Bartlett
a27ec4a011 Rework the 'guest account get's RID 501' code again...
This moves it right into the passdb subsystem, where we can do this in
just one (or 2) places.  Due to the fact that this code can be in a tight loop,
I've had to make 'guest account' a 'const' paramater, where % macros cannot be
used.  In any case, if the 'guest account' varies, we are in for some nasty
cases in the other code, so it's useful anyway.

Andrew Bartlett
(This used to be commit 8718e5e7b2651edad15f52a4262dc745df7ad70f)
2002-08-17 04:51:27 +00:00
Gerald Carter
f56e06476f fix seg fault in _spoolss_enumprinterkey after changes...
add SPOOL_PNPDATA_KEY define
(This used to be commit cdaa3f55e1fcc38b1d7a63d502a9fea3b92bf193)
2002-08-17 00:38:20 +00:00
Tim Potter
3a226d149d Return access granted in create_user2.
(This used to be commit 8ebc295f4a487993474390e0686d2aa9313be8d1)
2002-08-16 17:35:38 +00:00
Gerald Carter
31514f67ae fix small bug in enumprinterdataex due to my changes (still more lurking
though).
(This used to be commit 2feb89601fc45dea13fe45a55a9c058726a5de84)
2002-08-16 16:46:50 +00:00
Gerald Carter
4ed429481c Fairly large change to printing code.
* removed support for PHANTOM_DEVMODE printer data

* s/NT_PRINTER_PARAM/REGISTRY_VALUE/g - This was a good bit
  of work.  Everything seems stable, but is not complete.

* support for printer data keys other than PrinterDriverData
  in the store and fetch routines.  Still needs to be plugged
  into the XxxPrinterDataEx() calls.

Tested against NT4.0 & 2k.  Like I said, it's not done, but doesn't
crash so it shouldn't upset anyone (unless you're trying to build
a Samba printer server off of HEAD).  More work to come.  Should
settle by Monday.


jerry
(This used to be commit 7ba7c04c0e961618c82c2112b9627af114c6cc42)
2002-08-16 15:36:37 +00:00
Andrew Bartlett
b84315e2d5 Return the error if get_group_domain_entries() fails.
(This used to be commit bc9e9e3e2e0d861f34de26a9ef8b627a86c9954d)
2002-08-16 08:47:10 +00:00
Andrew Bartlett
fbaf4d07ae Make the 'guest account' always have a RID of DOMAIN_USER_RID_GUEST.
Andrew Bartlett
(This used to be commit 4725d7d04936335cbd85bd6ac5096c50fed93671)
2002-08-16 08:46:03 +00:00
Jim McDonough
51f62926b3 Re-add the last empty item to the NTLMSSP info list, but this time do it
with an empty string, not a NULL pointer...

Also, check for security=ads before giving a kerberos spnego response.
(This used to be commit 6eca417d1c29c7c18455f8290cad86fb1444e615)
2002-08-16 08:09:55 +00:00
Andrew Bartlett
b92cda9772 Add some const to the 'in' paramaters for these functions.
Andrew Bartlett
(This used to be commit 23f332178526877e9670515eb7c614b81fca21a9)
2002-08-16 07:56:08 +00:00
Andrew Bartlett
54e964a0fb Fix segfault in the new NTLMSSP code. jmcd: can you look at this - what
exactly were you trying to do here?

Andrew Bartlett
(This used to be commit 81b675b54d86d196fb2035dc5d22781160518beb)
2002-08-16 07:04:37 +00:00
Tim Potter
88d321becd Merge of netbios namecache code from APPLIANCE_HEAD.
Tridge suggested a generic caching mechanism for Samba to avoid the
proliferation of little cache files hanging around limpet like in the
locks directory.  Someone should probably implement this at some
stage.
(This used to be commit dad31483b3bd1790356ef1e40ac62624a403bce8)
2002-08-16 00:25:48 +00:00
Tim Potter
298f956eaf The unused variable was actually needed. The correct fix is to move
it inside an #ifdef HAVE_ADS to avoid the warning and breaking the
build.  (-:
(This used to be commit a8c4febdb760beb669048c2bf2bb0a0b1c5ed472)
2002-08-15 22:03:22 +00:00
Tim Potter
9b38f76ab1 Rename unknown_0 field in create_user2 reply in the actual struct.
(This used to be commit 482d873c26bf02e27ffcd92042b476eda765a5ff)
2002-08-15 19:40:34 +00:00
Tim Potter
ef4ff1bc48 Rename unknown_0 field in create_user2 reply in the actual struct.
Remove 9th place leading zero from some constants.
(This used to be commit 876e7b2bf45aad40282fd0ccddadf01df23d8d41)
2002-08-15 19:37:34 +00:00
Tim Potter
14c7250ab4 Removed unused variable.
(This used to be commit 23f1b839e6287089511cd51ceed298d6a6d65a89)
2002-08-15 19:34:57 +00:00
Gerald Carter
3941058359 large set of updates converting some of the textdocs to SGML/DocBook.
I think these were originally from Jelmer, but I've lost
the original message.

Also had some syntax errors in the manpages (does no one regenerate
after making changes to the SGML source?)

Still have some developer specific docs to add from Jelmer in the next
go around....
(This used to be commit 5f673b788314325699a64377d514dda435e6c478)
2002-08-15 13:56:33 +00:00
Simo Sorce
10712f9a22 *** empty log message ***
(This used to be commit cb72eead70509eddaa051571f3eed3c46304b5f8)
2002-08-15 13:25:25 +00:00
Jim McDonough
ec7927a144 Fix NTLMSSP challenge command and auth response. We can now service joins
from win2k AND still use SPNEGO (provided you don't build with kerberos...I
still have to fix that, as we are not properly falling back).
(This used to be commit 1f9b3d46c7c99e84b2983220f79613b7420c5ced)
2002-08-15 12:18:25 +00:00
Tim Potter
702687a3a4 The unknown_0 field in a CREATE_USER2 reply is the access granted.
(This used to be commit 8bca3085836255536794444248e7ff3a2460c045)
2002-08-15 02:26:37 +00:00
Gerald Carter
b28b28ee34 added comment about a new specversion seen from client.
Device mode size is still the same though.




jerry
(This used to be commit fb822e97cb832361062fbb2aa239d949cc83efed)
2002-08-14 10:21:53 +00:00
Gerald Carter
093428852d unresolved symbols fix for pam_smbpass from Steve L.
(This used to be commit 27618a5ca271aef4d5f2f9180729c7d09a46d587)
2002-08-14 10:20:51 +00:00
Jim McDonough
f3a15363d8 Use byteorder.h macros
(This used to be commit eb9004efc3580799063009a8298c35cbc420626f)
2002-08-12 16:39:10 +00:00
Jeremy Allison
cebad9a48d Bugfix for problem pointed out by Sean Trace <Sean.Trace@aveva.com>. We can't
check for POSIX errors in the blocking lock code as we may have never made
a POSIX call (could have denied lock before POSIX checked).
Jeremy.
(This used to be commit 8403253f277299f566f2931fdec53b6e4ece376e)
2002-08-12 16:20:54 +00:00
Jim McDonough
3e5939ccd5 Update secrets_fetch_domain_guid to generate and store it if it doesn't exist.
Only does it for PDCs.
(This used to be commit 3543f92c39a80c8b6eb7ca3188b87f0f15896f33)
2002-08-12 13:55:31 +00:00
Jim McDonough
a40116204d Allow ADS PDC to exist
(This used to be commit e6ceb3482340e06d8a0a0963c6df6cf54090e5c3)
2002-08-12 13:54:42 +00:00
Jim McDonough
a9aa9bd7fe Add lib/util_uuid.c to build.
(This used to be commit ab0e863fcc4d8fc18291f04bedfd0dd52730d833)
2002-08-12 13:54:18 +00:00
Jim McDonough
d8d1d65958 Code to generate uuids for ADS setups. Uses our random generator but
conforms to standard OSF/DCE uuid format.
(This used to be commit 3b50c3b8cd86ff9a12a6e22ca3b3e904671be547)
2002-08-12 13:48:19 +00:00
Jim McDonough
28bf5e5f2d Add lsaqueryinfo2, but keep under "lsaquery" command. It will autoselect
which lsaqueryinfo to do based in infoclass.  Currently 12 is the only one
that causes a queryinfo2.
(This used to be commit f4ec2d52a7b093da701d68906cce6de197f182be)
2002-08-12 13:41:52 +00:00
Jim McDonough
ae6cb0fb31 Add lsa 0x2e (queryinfo2) client side
(This used to be commit c3b05b21a0340d8ff02a79401399e3d43d9e759a)
2002-08-12 13:40:59 +00:00
Shirish Kalele
341e3009a0 Add RESOLVE_DFSPATH to mkdir operations in HEAD.
(This used to be commit cbb6e2fbdb42964107cf033c787a32cedd46e5d8)
2002-08-12 13:35:17 +00:00
Jim McDonough
b3d49538fd Use samr connect4, then fall back to samr connect if it fails. This is
what 2k does.
(This used to be commit 99437db17aa7c2e3448f28f627e993e8ab762d31)
2002-08-12 08:26:28 +00:00
Jim McDonough
4a822be1d3 Add client side support for samr connect4 (0x3e). Seems to have one
additional parm compared to samr connect, but I've only seen 0x00000002
in that field...
(This used to be commit ed2370b91f7f6a36efdf6b65340a5b29a26e7e7a)
2002-08-12 08:25:02 +00:00
Tim Potter
3773419cdf Updated smbcontrol manpage for new printnotify commands.
Jerry, what's the latest on rebuilding doco from source?  I've no idea
whether this actually compiles or not.
(This used to be commit 6a4202a105d36f7d368e6a1d524314ea348be2a9)
2002-08-11 19:52:47 +00:00
Tim Potter
60444c3383 Merge some usage info from APPLIANCE_HEAD.
(This used to be commit aa93db5abed75b5c9a032a080c07473fafa53a43)
2002-08-11 19:23:09 +00:00
Tim Potter
d8d0a4e909 Merge of case fixes from APPLIANCE_HEAD.
(This used to be commit f8072d964f527dcb9b520ec06c3522524d47644f)
2002-08-11 18:19:03 +00:00
Jelmer Vernooij
36d7d26275 Add indent argument to put function name and type on same line -
for satisfying the autoprototyper and abartlet
(This used to be commit c03d8bc24dd45ac615481a82b7ad9ad7fb8b5ed1)
2002-08-11 08:15:49 +00:00
Jelmer Vernooij
e598f1332e Update CodingSuggestions to include 'indent' arguments for the samba coding
style
(This used to be commit 5f2c2a114b9d3739381e4ad683413a7db0187999)
2002-08-11 08:06:14 +00:00
Andrew Bartlett
dd5615c042 Make 'remote_machine' private to lib/substitute.c, and fix all the user to use
the new accessor functions.

Andrew Bartlett
(This used to be commit f393de2310e997d05674eb7f1268655373e03647)
2002-08-11 02:30:35 +00:00
Andrew Bartlett
6ddba1e99b Fix the %m security bug again - and try to make it harder to reintroduce in
future.

This moves us from fstrcpy() and global variables to 'get' and 'set' functions.

In particular, the 'set' function sainity-checks the input, in the same way as
we always have.

Andrew Bartlett
(This used to be commit e57a896f06b16fe7e336e1ae63a0c9e4cc75fd36)
2002-08-10 23:20:04 +00:00
Jelmer Vernooij
3fce46ac7d Adding pdb_xml and pdb_mysql passdb modules.
Added some consts to pdb_test to follow pdb_methods struct more strictly
(This used to be commit bb1c4501992650a5e26b4bc743aeae551852becc)
2002-08-10 20:14:32 +00:00
Gerald Carter
6633633f7d one line merge from APP_HEAD
(This used to be commit b6b64d06a630f741c7ffbec99b71d34496159fa7)
2002-08-08 22:17:42 +00:00
Gerald Carter
1492a040ee delete printer driver fix from APP_HEAD
(This used to be commit 9c6b930068d1e762fad78c9e36792764c280b85c)
2002-08-08 22:14:42 +00:00
Gerald Carter
14d385439d printing change notification merge from APPLIANCE_HEAD
(This used to be commit 11ddfd9cfa550dcd3186c8aaf0cc038ce7f1791f)
2002-08-08 20:54:37 +00:00
Andrew Bartlett
4267fcccda Samba dependency hell claim's another victim...
Back out last night's patch to to reduce -l dependencies until we can ensure
that *all* configurations/platforms work...

Andrew Bartlett
(This used to be commit 35eefe7a19b2b684d3ca05a665e9c13e9d17acc3)
2002-08-08 06:44:03 +00:00
Tim Potter
335aa54b46 Merge of incomplete rffpcnex testing code from APPLIANCE_HEAD.
(This used to be commit fe43c2ac2d2e1dd3b3a25c807d4dd379c5ac4960)
2002-08-08 04:58:19 +00:00
Jim McDonough
16c172c3a4 Hmm, had too many objects added last time in the nmbd changes. Don't
need all of them.  Hopefully this will fix a few builds.
(This used to be commit 521eed1277956b0ebc47c3312edf57d386e026e6)
2002-08-07 12:17:35 +00:00