1
0
mirror of https://github.com/samba-team/samba.git synced 2025-02-02 09:47:23 +03:00

20334 Commits

Author SHA1 Message Date
Stefan Metzmacher
7facd9bf3f r24533: merge from SAMBA_4_0:
rename dcerpc_syntax_id -> ndr_syntax_id

metze
2007-10-10 12:29:54 -05:00
Michael Adam
3b762ab183 r24527: Add a function lp_canonicalize_parameter_with_value that turns
a parameter and value into the canonical paramter with the value
inverted if it was in invers boolean synonym.

Make net conf use this function when storing parameters.

Michael
2007-10-10 12:29:54 -05:00
Michael Adam
0dfb5eee25 r24526: Refactor determiniation of the index of the canonical form of a
parameter given in string representation into a function of its
own (map_parameter_canonical).

Michael
2007-10-10 12:29:54 -05:00
Michael Adam
fd2dbae825 r24525: Add output of synonym information to show_parameter_list().
Also simplify lp_canonicalize_parameter by making use of
the new function "is_synonym_of".

Michael

Note: If anything depends on the exact former output format of
show_parameter list, I would trigger the output of synonym information
by a boolean verbose switch (that could be passed to testparm
via the "-v" command line switch).
2007-10-10 12:29:53 -05:00
Michael Adam
70dfe5d098 r24519: Refactor printing of one parameter into a helper function of its own. 2007-10-10 12:29:53 -05:00
Michael Adam
00432bcd69 r24513: Reformatting: eliminate trailing spaces, overly long lines
and adjust some formattings to standard.

Michael
2007-10-10 12:29:53 -05:00
Volker Lendecke
2b8ecda30f r24512: Fix RAW-NOTIFY
With the inbuf consistency checks we have to more correctly fake the
inbuf
2007-10-10 12:29:53 -05:00
Michael Adam
ce1d7ad1ac r24510: Fix logic. Thanks to Volker for the hint!
Michael
2007-10-10 12:29:53 -05:00
Jeremy Allison
9d9ed41f21 r24501: Added bcc test for reply_tcon & removed Vl's comment :-).
Jeremy.
2007-10-10 12:29:53 -05:00
Jeremy Allison
267a0ac48d r24500: Add check that bcc is correct in an incoming packet.
Jeremy.
2007-10-10 12:29:52 -05:00
Jeremy Allison
43ddfb8c91 r24498: More extra code into a function, reply_openerror.
Jeremy.
2007-10-10 12:29:52 -05:00
Volker Lendecke
01f701ba1e r24497: Revert r24485 -- this needs more thought 2007-10-10 12:29:52 -05:00
Michael Adam
95447dde86 r24496: Add initial synonym handling to "net conf":
When storing parameters in the smbconf portion of the registry,
up to now, synonyms could be misused to store a parameter twice.
Now this is prevented by canonicalizing the paramter name first.

Also, the value for a boolean parameter checked for validity
before storing the bool in registry.

(The canonicalization should finally go into the registry smbconf
code to also prevent e.g. "regedit" or "net rpc registry" from
storing synonyms. - This is in the making.)

Michael
2007-10-10 12:29:52 -05:00
Michael Adam
113ac07199 r24495: Add a function lp_canonicalize_parameter: It takes a name of a parameter
and produces the "canonical" (or main) name of the parameter (the one
synonym that does not have the flag FLAG_HIDE). The function also sets
a flag as to whether the synonym is a reverse boolean synonym.

Add some functions for the handling of string representations of boolean
values: return the canonical string representation of a bool, invert
a bool given as a string, canonicalize a bool given as a string.

Michael
2007-10-10 12:29:52 -05:00
Volker Lendecke
301ae3d68b r24485: Even in the failure case unix_convert must pass the already converted
part of the string to the caller.
2007-10-10 12:29:51 -05:00
Jeremy Allison
74d10b09a6 r24476: Fix the mappings in reply_opeXXX calls. Now to test renames.
Jeremy.
2007-10-10 12:29:51 -05:00
Jeremy Allison
6dac315ba1 r24475: Fix the error mapping for SMB_POSIX_PATH_OPEN.
Jeremy.
2007-10-10 12:29:51 -05:00
Jeremy Allison
5b2316d173 r24474: Map error value NT_STATUS_OBJECT_NAME_COLLISION
to ERRDOS, ERRfilexists for NTCreateX and NTTransCreate.
Jeremy.
2007-10-10 12:29:51 -05:00
Jeremy Allison
4674486450 r24470: Start fixing up the mapping of OBJECT_NAME_COLLISION
to DOS error ERRDOS, ERRfilexists on open calls.
Jeremy.
2007-10-10 12:29:50 -05:00
Jeremy Allison
4d01e0b744 r24468: Don't forget the +4 for length :-).
Jeremy.
2007-10-10 12:29:50 -05:00
Jeremy Allison
dbd58dd647 r24467: Do range checking on incoming smb request.
Jeremy.
2007-10-10 12:29:50 -05:00
Derrell Lipman
8f371e2ea9 r24466: - Sort ACEs according to http://support.microsoft.com/kb/269175 so that
Windows Explorer doesn't complain about the order (and so that they get
  interpreted properly).

Derrell
2007-10-10 12:29:50 -05:00
Jeremy Allison
9256ec0a20 r24464: Now Volker removed the readbmpx we don't need cached errors any more.
Jeremy.
2007-10-10 12:29:50 -05:00
Derrell Lipman
319df380e5 r24462: - Removing all ACEs was causing removal of the DACL entirely. Win2000 ignored
the request, presumably due to the PROTECTED flag not being set.  Setting
  that flag (in make_sec_desc()) has much wider implications than just to
  libsmbclient, so instead of modifying that, we'll remove security
  descriptors by setting the number of ACEs to zero.  At some point, we might
  want to look into whether we should actually be setting the PROTECTED flag
  in the DACL.

  Reference http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/distrib/dsce_ctl_qxju.mspx?mfr=true

Derrell
2007-10-10 12:29:50 -05:00
Volker Lendecke
0fecd8a0c3 r24461: Fix Bug 4852, thank to anto <sistemac@prosoft.ba> for reporting it. 2007-10-10 12:29:49 -05:00
Stefan Metzmacher
cedf7022c5 r24458: regenerate pidl output after pidl fixes:
fixes winreg_EnumValues()

metze
2007-10-10 12:29:49 -05:00
Volker Lendecke
1e08fddafd r24457: Convert reply_tcon to the new API
Jeremy, I really apologize for doing this, but I just wanted to enjoy
converting the last SMB call :-)

I've left one little task for you there, I'm not certain that checking
the inbuf length is correct here.

Volker
2007-10-10 12:29:49 -05:00
Volker Lendecke
d941aae2df r24453: Remove the read and write bmpx calls
Talked to both Tridge and Jeremy about this, Tridge said that there is a
special error message persuading OS/2 to fall back to other methods.
The calls now checked in always return the error message we used to
return when "read bmpx = False" was set (the default): ERRSRV, ERRuseSTD.

If someone has a reproducable test case where this is really needed, we
can always dig it up from version control and convert it to the new API.
But that time without that silly parameter, and with a torture test case
for "make test" please :-)

Volker
2007-10-10 12:29:49 -05:00
Stefan Metzmacher
a3fd68d485 r24450: merge from SAMBA_4_0:
length_is() isn't supported without size_is().

I assume what we need is an array of strings,
so the code isn't used and broken anyway without
a testsuite...just get rid of the pidl warning

metze
2007-10-10 12:29:49 -05:00
Jeremy Allison
edc17dfcbd r24445: Convert SMBwritebraw. No test suite unfortunately.... I need to write one for this.
Jeremy
2007-10-10 12:29:48 -05:00
Volker Lendecke
6af8595346 r24444: Convert reply_find[n]close to the new API 2007-10-10 12:29:48 -05:00
Volker Lendecke
a8a33c377e r24443: Convert reply_search/fclose to the new API 2007-10-10 12:29:48 -05:00
Volker Lendecke
0cb00c5475 r24442: Convert reply_copy to the new API 2007-10-10 12:29:48 -05:00
Volker Lendecke
a5af7ebb7f r24441: Convert reply_ioctl to the new API 2007-10-10 12:29:48 -05:00
Volker Lendecke
a64bc31098 r24440: Convert the reply_sendXX functions to the new API 2007-10-10 12:29:48 -05:00
Volker Lendecke
6b0ad071d8 r24439: Convert reply_get/setattrE to the new API 2007-10-10 12:29:47 -05:00
Günther Deschner
adaa5e423d r24438: Use dump_data_pw() instead of dump_data() on sensitive data in winbindd.
Guenther
2007-10-10 12:29:47 -05:00
Günther Deschner
44c10bbe94 r24437: Remove "done" in winbindd_raw_kerberos_login() as well.
Guenther
2007-10-10 12:29:47 -05:00
Volker Lendecke
1b6add251c r24436: Convert reply_lockread/writeunlock to the new API 2007-10-10 12:29:47 -05:00
Günther Deschner
8705f890b1 r24435: Fix typo.
Guenther
2007-10-10 12:29:47 -05:00
Günther Deschner
98ffae031a r24434: Simplify winbindd_raw_kerberos_login().
Guenther
2007-10-10 12:29:46 -05:00
Volker Lendecke
42b07a52b9 r24433: Convert reply_ntrename to the new API 2007-10-10 12:29:46 -05:00
Günther Deschner
e70bf0ecc3 r24432: Expand kerberos_return_pac() so that it can be used in winbindd.
Guenther
2007-10-10 12:29:46 -05:00
Volker Lendecke
e528479f56 r24431: Convert the reply_printXX calls to the new API 2007-10-10 12:29:46 -05:00
Volker Lendecke
6def2ee03b r24430: Convert reply_writeclose to the new API 2007-10-10 12:29:46 -05:00
Volker Lendecke
ca27a718b0 r24429: reply_setdir is not used... 2007-10-10 12:29:46 -05:00
Volker Lendecke
01c7426fc0 r24428: Convert reply_unlock to the new API 2007-10-10 12:29:45 -05:00
Volker Lendecke
212f43ddea r24427: Convert reply_lock to the new API 2007-10-10 12:29:45 -05:00
Volker Lendecke
30aada0ef8 r24426: Convert reply_read to the new API 2007-10-10 12:29:45 -05:00
Volker Lendecke
244965f7b6 r24425: Convert reply_write to the new API 2007-10-10 12:29:45 -05:00