1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-08 05:57:51 +03:00

9453 Commits

Author SHA1 Message Date
Volker Lendecke
618b02416d small typo, kai is german :-)
(This used to be commit f435bf0095694a283db47e33c9eb1b5b6df13d03)
2002-09-02 09:02:40 +00:00
Tim Potter
1f914af0ec Add a 'key' field to printer data dictionary.
Implemented getprinterdataex, setprinterdataex and enumprinterdataex
(doesn't quite work yet).
(This used to be commit fb0f4f7bfe81923adfe71549973da2be57f0e71f)
2002-09-02 07:47:42 +00:00
Tim Potter
7ee13d88a1 make proto
(This used to be commit 88a97d2174eee884de52e848d30bc2c459bf28bb)
2002-09-02 07:44:48 +00:00
Tim Potter
fc8c6e7cf0 Added methods for getprinterdataex, setprinterdataex and enumprinterdataex.
(This used to be commit ac84b220aa2910abec309f2dc048adb84f609786)
2002-09-02 07:44:00 +00:00
Tim Potter
d75fc27fa1 Fix transposed args in open_pipe_creds() function.
(This used to be commit 63e59b0b737a1cd4ccc588b27e86be8262296052)
2002-09-02 07:42:39 +00:00
Tim Potter
f76bdfdcaa Implemented some more client side spoolss functions:
- getprinterdataex(), setprinterdataex(), enumprinterdataex()

Pass data type down to setprinterdata() fn instead of hardcoding REG_SZ.

Did some trickyness to get enumprinterdataex replies unmarshalled
properly.  The code seems to have been written to require the number
of entries returned before unpacking said entries.  Skip to the end of
the response and read the number of entries then jump back and process
the printer data.
(This used to be commit 6a1953f2431cc848abf210bdecd7080738991296)
2002-09-02 07:41:12 +00:00
Tim Potter
45fc6b503e Implemented some more client side spoolss functions:
- getprinterdataex(), setprinterdataex(), enumprinterdataex()

Pass data type down to setprinterdata() fn instead of hardcoding REG_SZ
(This used to be commit 62a60782533851b3380aa0db300fa16dfe6ca72e)
2002-09-02 07:37:35 +00:00
Simo Sorce
098b0b40fe wrong way to handle things, bug found by kai
(This used to be commit 58f912da47d18a6a548c50dc9d4298c6bec7ea0d)
2002-09-01 10:24:34 +00:00
Volker Lendecke
21a58f5a64 Fix segfault in net command
(This used to be commit 26bee60a419593a5afe4e48614f7f3fc414596a5)
2002-09-01 07:52:54 +00:00
Richard Sharpe
4cb4534dd6 Convert M_DEBUG(0 to M_DEBUG(10 for non-error cases ...
(This used to be commit d5c10e7dc76216db793319f9beb99dd12441e76b)
2002-08-31 16:17:36 +00:00
Andrew Bartlett
110954e8e1 Add a dash of static.
(This used to be commit e3af3adac1a01842bc5242e68393196497a1d71c)
2002-08-31 08:51:38 +00:00
Andrew Bartlett
7aca67c3e9 Add a bit of 'const' and move a lot of our 'repeditive' DEBUG() statements to
'DEBUGADD', so we don't repeat headers.  (Makes them much easier to read).

(Based on patch by kai)

Andrew Bartlett
(This used to be commit 9deada345c5f89f338530c4de62835cc1eeb3d0e)
2002-08-31 06:59:00 +00:00
Andrew Bartlett
40e9d9a54e Avoid writing unitialised bytes to the wire (and consequent valgrind warnings)
by zeroing them out if they don't have meaning.

Andrew Bartlett
(This used to be commit 52db44b5c01e16923393b0ec9a8d0f530be7bb2d)
2002-08-31 06:38:27 +00:00
Andrew Bartlett
724d1c3d2d Add a fix for 'query_disp_info level 2', which should return all machines in
the DC's SAM.  We were only returning workstations, not PDCs or BDCs.

Win2k's 'Computer Manager' tool uses this to list all computers in the domain
(as opposed to using NetBIOS).

Andrew Bartlett
(This used to be commit 004090edffef6cc04c286b9924b8c47ea3260ef2)
2002-08-30 23:56:37 +00:00
Jeremy Allison
35b7dfaa20 Fix bug with stat mode open being done on read-only open with
truncate.
Jeremy.
(This used to be commit 18b9cbd857177a911ef95c9322bdf0709161cd84)
2002-08-30 19:29:59 +00:00
Jeremy Allison
8e33a5d6cc Correct error message.
Jeremy.
(This used to be commit e9392c4a2e1e1ce44fcd1a1105477c17a3410f14)
2002-08-30 19:06:07 +00:00
Jeremy Allison
fcdecb7c29 Correctly fail opens with mismatching SYSTEM or HIDDEN attributes if we
are mapping system or hidden.
Jeremy.
(This used to be commit bd1e3df9ffa0717f26696a222e5ec6a0198b3352)
2002-08-30 18:57:23 +00:00
Herb Lewis
39e21d4ef2 off by one in writing to malloced array. this fixes smbd crash I saw at
the CIFS conference - finally got purify working
(This used to be commit cf9bb66aa9c3217cb8394058c65c84ffc6ae269a)
2002-08-30 18:56:46 +00:00
Jeremy Allison
0b9bf47fda Better error reporting on OPEN test.
Jeremy.
(This used to be commit 4e836c4ce2b51e42ab4f29c6c916fe6a73a58654)
2002-08-30 18:56:00 +00:00
Jelmer Vernooij
85c9ee4ddb Put PRINTER_DRIVER back in
(This used to be commit 0a92c4db1fed6eff577a67e9c4fd54bd4fe4afac)
2002-08-30 18:01:26 +00:00
Jeremy Allison
bf544f12f5 Added attribute specific OPEN tests (for SYSTEM and HIDDEN).
Jeremy.
(This used to be commit 4eeef6ef530acf1cc4e08e24af902c15af57ece7)
2002-08-30 17:22:33 +00:00
Gerald Carter
3cbe892276 fix up print portion of registry. Merge from APP_HEAD.
(This used to be commit ec37633548ed329c05b93499f75883d987b78f1e)
2002-08-30 14:48:33 +00:00
Herb Lewis
dd0d4b5270 based on function prototype, the args were switched - this gave an error
on the IRIX compiler. could whoever put the FIXME message take a look and
see if it is still broken.
(This used to be commit 29a8f2121114cafca07797cadaeb26c9d0055b24)
2002-08-30 14:05:22 +00:00
Gerald Carter
3cf5819133 fix proto
(This used to be commit 4f00844da05b37cf9755def40a63c11e7f82153e)
2002-08-30 12:46:54 +00:00
Jean-François Micouleau
bba043c9e4 allow rpcclient's samlogon command to use cli_net_3().
J.F.
(This used to be commit 3cf419bdfbd3c56f31fb0794b206ab4bd2ac7120)
2002-08-30 11:57:06 +00:00
Gerald Carter
189c4b8fd3 fix broken dependencies....
(This used to be commit 8eab2e79412c771ef57d39e7d61816b705350e0f)
2002-08-30 11:38:39 +00:00
Gerald Carter
4e216f3e94 break out REGISTRY_VALUE & REGVAL_CR objects into separate file for
cleaning linking....
(This used to be commit fd140aadd7c76facb4efa80655e633600f9760b6)
2002-08-30 11:03:44 +00:00
Gerald Carter
de3d0310e2 merge of phant0m key fix from APP_HEAD
(This used to be commit cb13d334a53f27713665570d85607d57eb407f9f)
2002-08-30 10:47:34 +00:00
Jean-François Micouleau
cfb5e91178 added cli_net_auth_3 client code.
changed cli_nt_setup_creds() to call cli_net_auth_2 or cli_net_auth_3 based on a switch.
pass also the negociation flags all the way.
all the places calling cli_nt_setup_creds() are still using cli_net_aut2(), it's just for future use and for rpcclient.

in the future we will be able to call auth_2 or auth_3 as we want.

	J.F.
(This used to be commit 4d38caca40f98d0584fefb9d66424a3db5b5789e)
2002-08-30 10:46:59 +00:00
Volker Lendecke
1f02551bb1 Removed some misleading comment.
Volker
(This used to be commit 70cf2f1e2f0187c546a0193824ab85a416c5236c)
2002-08-30 08:24:26 +00:00
Andrew Tridgell
dcd0291694 convert the LDAP/SASL code to use GSS-SPNEGO if possible
we now do this:

- look for suported SASL mechanisms on the LDAP server
- choose GSS-SPNEGO if possible
- within GSS-SPNEGO choose KRB5 if we can do a kinit
- otherwise use NTLMSSP

This change also means that we no longer rely on having a gssapi
library to do ADS.

todo:
- add TLS/SSL support over LDAP
- change to using LDAP/SSL for password change in ADS
(This used to be commit b04e91f660d3b26d23044075d4a7e707eb41462d)
2002-08-30 06:59:57 +00:00
Andrew Tridgell
a6ace770eb ensure that we unlock in case we hit a tdb error
(This used to be commit 4aa7dfb7e7f4ad33b8768d20ec2eb9cb3fde6385)
2002-08-30 06:56:12 +00:00
Andrew Tridgell
1e8fa8cbb1 removed a debug line
(This used to be commit 5185f495d055cee609872db9e59edbe3220dc5bd)
2002-08-30 06:55:27 +00:00
Jelmer Vernooij
79d3ce624f Remove obsolete documents
(This used to be commit f736b83da65339a225876e50c836b209b2857074)
2002-08-30 06:44:07 +00:00
Andrew Bartlett
40e9487d75 paranoid server security defaults to yes
(This used to be commit 46c49248e3f2ab307218b476b9a659bf54c3031e)
2002-08-30 06:27:17 +00:00
Tim Potter
d63a6aba6c Forgot to check in some of the libsmb stuff.
(This used to be commit 0a2f6049c0b49810abf1c3e909d712f53c7fc8c1)
2002-08-30 02:43:51 +00:00
Tim Potter
677bae21d1 Abstract out the functionality of gtdbtool into a dictionary browser
class.  This should provide a nice framework for browsing any kind of
data presented as a python dictionary:

 - windows registry
 - printer data
 - tdb files
(This used to be commit 8af86f68354f7c803bb66886560b358d6e48681d)
2002-08-30 01:35:56 +00:00
Andrew Tridgell
b2ee64955a fix connecting to a BDC when the PDC is down but in WINS and no bcast
can be used to find a BDC

2nd try ....
(This used to be commit f757223ebe88148b83e1a32b87c014c15c0a68dd)
2002-08-29 23:23:42 +00:00
Andrew Tridgell
36df325533 fix connecting to a BDC when the PDC is down but in WINS and no bcast
can be used to find a BDC
(This used to be commit e95d8e2c9ee5cf22b628f3e0d99fb74bcc632ea0)
2002-08-29 23:16:45 +00:00
Jelmer Vernooij
b9eec5b284 Several small fixes
(This used to be commit 4fc06a9e2274546807beb411e9bcf47931f8b4f6)
2002-08-29 20:43:08 +00:00
Jelmer Vernooij
3f393056db Split up documents at chapter level, not at sect1 level
(This used to be commit f1710a46d0b51fbefc2a1b5230b76aa9ecbbcdab)
2002-08-29 20:14:34 +00:00
Andrew Bartlett
bd11a63c53 We don't need the RTLD_GLOBAL.
(This used to be commit 0d562b81bfd176111a1046560c39b03d986f90ec)
2002-08-29 17:36:44 +00:00
Jelmer Vernooij
afc5c6b2a1 Adding makefile for sam_skel module
(This used to be commit b91fd5a77c493d0c90b45de6a70fb84bbef3f9f1)
2002-08-29 17:08:13 +00:00
Jelmer Vernooij
408fb927c8 SAM_CONTEXT is const
(This used to be commit 3b4cf8f67c2970e7b099ae2382bdd802b79d1dd2)
2002-08-29 16:39:00 +00:00
Jelmer Vernooij
8e729a4d84 Move samr_make_sam_obj_sd to lib/util_seaccess.c. samtest now compiles and
links successfully!
(This used to be commit 0ea4bcb6b772a0d95d20f7c1a2a0c08a0ba9e466)
2002-08-29 16:38:43 +00:00
Jelmer Vernooij
52ea319236 Correct popt argument info in vfstest
Don't use global_ctx in samtest.c
(This used to be commit 0428eb422b50135327daf3040067f5982f1b0b92)
2002-08-29 16:37:39 +00:00
Jelmer Vernooij
1ddc80f1b9 Use popt for --help
(This used to be commit 073106ad25fba8c8aaa57c296ce8e7cb7b3e3e97)
2002-08-29 16:36:37 +00:00
Jelmer Vernooij
b786c9a2ec Make debuglevel a string for use with debug classes
(This used to be commit fc29385029bf000dc70d23154e39970ee76e4d30)
2002-08-29 16:35:33 +00:00
Jelmer Vernooij
f338cf5a83 Remove more obsolete documents
(This used to be commit 60446ad6033f6f9179ac2566f670d04ff8b662c2)
2002-08-29 16:18:59 +00:00
Jelmer Vernooij
38cc0a1b81 Add cifsntdomain
(This used to be commit 31567c3762c0588886792265d7b48432c50f03ba)
2002-08-29 16:17:26 +00:00