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

12678 Commits

Author SHA1 Message Date
Jeremy Allison
0f84801ff3 Fix assumption about following directory sep in check_path_syntax(). We
need to try and convert 1 byte, then 2 bytes if that fails. Fixes bug
reported by Simo.
Jeremy.
-
Simo Sorce
77142a1ca6 Do some checks about data passed to this function -
Simo Sorce
9f3b0295fe 2 fixes to enhance readability of source code and debug messages
1 fix for a memleak
-
Volker Lendecke
c39f698dde Get us a little closer to Windows LSA semantics.
A windows DC does not reply to DCNAME\\Administrator, only to
DOMAIN\\Administrator. Fix that.

Without winbind we are wrong as domain members, we should forward the request
DOMAIN\\Username to the DC on behalf of the asking client. Winbind fixes that
nicely.

Volker
-
Volker Lendecke
2a2b4a159a This might not be used a lot and might not survive for long, but at least it
should work as expected :-)

Fix wb_delgrpmember.

Volker
-
Tim Potter
7798a52d82 Fix typo. -
Tim Potter
92f6895dd1 Enclose use of fchown() with guards. Bugzilla #1155. -
Tim Potter
311bbf41ec tdbdump doesn't need to #include <sys/mman.h>
Bugzilla #1154.
-
Jeremy Allison
13edba472a Several mb tidyups - getting ready to address the XXX_sub function.
Jeremy.
-
Gerald Carter
f0e454f6eb BUG 488: fix the 'show client in col 1' button and corrctely enumerate active connections -
Gerald Carter
7153cbf8cb fix compiler warning -
Jelmer Vernooij
a90df1c170 Add -O (write downloaded files to stdout), based on patch from
Bas van Sisseren <bas@dnd.utwente.nl>
-
Jeremy Allison
bce0678331 all_string_sub() is broken as it doesn't handle mb chars correctly (and
so breaks when substitution '/' and '\'). It's used by unix_clean_name(),
which is used by reduce_name, which is used by check_name() (phew!).
Now that we know all filenames passed to check_name() are in a "good"
format (no double slashes, all '\\' chars translated to '/' etc.) due
to the new check_path_syntax() we can avoid calling reduce_name unless
widelinks are denied. After this check-in I can fix all_string_sub() to
handle mb chars correctly as it won't be in the direct path in the
main path handling code.
Jeremy.
-
Jeremy Allison
ac5e0c4bb6 Fix my breakage of NT pipes from the previous patch (sorry). Use the
original srvstr_pull_buf() function to get the pipename not srvstr_get_path().
Jeremy.
-
Gerald Carter
d9a9e214a8 BUG 1015: patch from jmcd to fix statfs redeclaration of statfs struct on ppc -
Gerald Carter
0b17a4105e BUG 1080: fix declaration of SMB_BIG_UINT -
Volker Lendecke
0ad00bce07 There's a specific error message NT_STATUS_ALIAS_EXISTS. -
Volker Lendecke
da59bab769 Another typo, sorry for samba-cvs spam :-) -
Volker Lendecke
6287141f10 Fix typo.
Volker
-
Jim McDonough
217791cab2 Fix build farm, older compilers won't let you declare variables
right in the middle of the code.

I just love catching jra on stuff like this, after all the crap
I've done. :-)
-
Gerald Carter
00c998c503 BUG 848: don't create winbind local users/groups that already exist in the tdb -
Gerald Carter
29bc83080f another fix for bug 761; don't default to bsd printing on linux -
Jeremy Allison
3f2b9f10de Added client "hardlink" commant to test doing NT rename with hard links.
Added hardlink_internals() code - UNIX extensions now use this too.
Jeremy.
-
Jeremy Allison
883f89a018 Use a common function to parse all pathnames from the wire. This allows
much closer emulation of Win2k3 error return codes.
Jeremy.
-
Jim McDonough
95e7cfdb19 more usrmgr fixes: display lockout timers in minutes, not seconds, for samr 2e -
Jim McDonough
1d3079bf4c quick for for usrmgr. unknown_6 is really max dimension of logon hours array. need to update passdb for this. -
Gerald Carter
42d8455a02 BUG 1129: patch from shiro@miraclelinux.com (Shiro Yamada) to install image files for SWAT -
Jim McDonough
c1b1a1961f fix typo for callback bit -
Simo Sorce
90640a523e Let's be polite with poorer backends ;-) -
Volker Lendecke
6cad5bcc28 This adds winbind-generated groups showing up in 'getent group'. It is not
very efficient though, it only does one group at a time. Needs improving, but
the structures are not particularly easy to set up, so check in the basically
working part for others to review.

I'm close to saying that I would like to remove aliases from general group
mapping. These can not be reflected correctly in /etc/group, winbind could do
a better job here.

And having aliases only on machines with nss_winbind at least for me is not a
too severe limitation.

Comments?

Volker
-
Gerald Carter
e721255e8f allow the 'printing' parameter to be set on a per share basis.
The problem was that the current_printif struct was set during
print_backend_init() based on the 'printcap name'.  So you could
not use cups and then override the setting for a specific printer
by setting 'printing = bsd' (a common setup for pdf generation
print services.

There is a subtle change in behavior in that the print
interface functions are selecting on the basis of lp_printing()
and not lp_printcap_name(), but the new behavior seems more
intuitive IMHO.
-
Volker Lendecke
b790753f44 Idra, your privileges patch allowed login only with tdbsam. The problem is
that pdb_default_get_privilege_set returns NOT_IMPLEMENTED and not a privilege
set that does not grant anything. I don't really understand privileges yet, so
work around that by not failing if pdb_get_privilege_set fails.

Volker
-
Simo Sorce
fa6500fe77 Sorry, forgot to commit an essential piece. -
Volker Lendecke
18e4819083 Expand aliases for winbind-generated groups.
Do:

wbinfo -C alias
net groupmap set alias alias -L
net rpc group addmem alias DOMAIN\\group -S localhost -Uroot%secret
getent group alias

And hopefully the members of domain\\group show up :-)

Still have to get them to show up in 'getent group'.

Volker
-
Gerald Carter
fae17e0f9d merging from 3.0 -
Gerald Carter
eb8a8c290f BUG 1147; bad pointer case in get_stored_queue_info() causing seg fault -
Simo Sorce
7a78c3605e Ok here it is my latest work on privileges
This patch add privilege support for samba
Currently it is implemented only for tdbsam backend but estending it to
other sam backends is straightforward.

I must make a big thank to JFM for his teachings on the matter and the
functions at the base of this work.

At thye moment only samr_create_user honours SeAddUsersPrivilege and
SeMachineAccountPrivilege to permit any user to add machines and/or users to
the server.

The command "net priv" has been provided to manipulate the privileges
database.

There are still many things to do (like support in "net rpc vampire") but
the working core is here.

Feel free to comment/extend on this work.

Of course I will deny that any bug may affect this code :-)
Simo.


This patch adds also my patch about add share command enhancements.
-
Volker Lendecke
eb18cb83d1 Fix Tim's fix for #1144. Tim, could you look at that again?
With only your fix in for example smb.conf was expected in /smb.conf...

Thanks,

Volker
-
Volker Lendecke
f95a5d8147 When asked to delete an alias member, don't add it ...
Volker
-
Volker Lendecke
52dae45684 Add aliases to winbindd_getgroups().
su - WINDOWS\\vl

now includes the locally defined aliases I'm member of.

Next will be getent group.

Volker
-
Tim Potter
e0382635a5 Fix bugzilla #1144 where running configure --with-fhs=anything would
turn on fhs compliant paths.  Spotted by Timur Bakeyev.
-
Volker Lendecke
30ef8fe1e8 Apply my experimental aliases support to HEAD. This will be a bit difficult to
merge to 3_0, as the pdb interfaces has changed a bit between the two.

This has not been tested too severly (which means it's completely broken ;-),
but I want it in for review. Feel free to revert it :-)

TODO:

make 'net groupmap' a bit more friendly for alias members.

Put that stuff into pdb_ldap.

Getting the information over to winbind. One plan without linking pdb into
winbind would be to fill group_mapping.tdb with the membership information and
have that as a cache (or use gencache.tdb?). smbd on a PDC or stand-alone
could trigger that itself, the problem is a BDC using LDAP. This needs to do
it on a regular basis. The BDC smbd needs to be informed about SAM changes
somehow...

Volker
-
Volker Lendecke
26d99204b7 net_rpc.c: Don't complain if [add|del]mem was successful.
srv_samr_nt.c: Correctly report that a user is not member of an alias.

Volker
-
Volker Lendecke
73117f5e41 Trivial commit to make 'smbdiff 3_0/source head/source' two files smaller.
Volker
-
Volker Lendecke
9cfc97df45 Print an informative error message if trying to add/remove members from
something not a group.

Volker
-
Volker Lendecke
6785dc84ce Add 'net rpc group [add|del]mem' for domain groups and aliases.
Volker
-
Volker Lendecke
710969acaa Fix my fix to net rpc group list. We can certainly have more than a single
set of groups.

Volker
-
Jeremy Allison
4b12623229 Can't set allocation size on directories, return correct error code on
fail if file exists and target is a directory. gentest.
Jeremy.
-
Jeremy Allison
2a457e2e28 More gentest fixes. Fix up regression in IS_NAME_VALID and renames.
Jeremy.
-
Rafal Szczesniak
ed26b550b5 Added copyrights I forgot about looong ago...
rafal
-