1
0
mirror of https://github.com/samba-team/samba.git synced 2024-12-25 23:21:54 +03:00
Commit Graph

13438 Commits

Author SHA1 Message Date
Volker Lendecke
7ed61edbbe 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
0001-01-01 00:00:00 +00:00
Volker Lendecke
9fc0025d12 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
0001-01-01 00:00:00 +00:00
Tim Potter
e6e8b59f53 Fix typo. 0001-01-01 00:00:00 +00:00
Tim Potter
89f3173f4f Merge from HEAD. 0001-01-01 00:00:00 +00:00
Tim Potter
1bba071126 Merge from HEAD. 0001-01-01 00:00:00 +00:00
Jeremy Allison
92c3ae3458 Several mb tidyups - getting ready to address the XXX_sub function.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
d77d38560d BUG 488: fix the 'show client in col 1' button and corrctely enumerate active connections 0001-01-01 00:00:00 +00:00
Gerald Carter
df19b6066e fix compiler warning 0001-01-01 00:00:00 +00:00
Jelmer Vernooij
cc164e5afb Add -O (for writing downloaded files to standard out) based on patch by
Bas van Sisseren <bas@dnd.utwente.nl>
0001-01-01 00:00:00 +00:00
Jeremy Allison
6080186fc4 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.
0001-01-01 00:00:00 +00:00
Jeremy Allison
2a263873fd 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.
0001-01-01 00:00:00 +00:00
Gerald Carter
fafb243278 BUG 1015: patch from jmcd to fix statfs redeclaration of statfs struct on ppc 0001-01-01 00:00:00 +00:00
Gerald Carter
810bc1e2a0 BUG 1080: fix declaration of SMB_BIG_UINT 0001-01-01 00:00:00 +00:00
Volker Lendecke
f0d99f318c There's a specific error message NT_STATUS_ALIAS_EXISTS. 0001-01-01 00:00:00 +00:00
Volker Lendecke
3e39d157cb Another typo, sorry for samba-cvs spam :-) 0001-01-01 00:00:00 +00:00
Volker Lendecke
8ba5bdc330 Fix typo.
Volker
0001-01-01 00:00:00 +00:00
Jim McDonough
dc7dc51758 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. :-)
0001-01-01 00:00:00 +00:00
Gerald Carter
89da3df07b BUG 848: don't create winbind local users/groups that already exist in the tdb 0001-01-01 00:00:00 +00:00
Gerald Carter
d58139d64f another fix for bug 761; don't default to bsd printing on linux 0001-01-01 00:00:00 +00:00
Jeremy Allison
aad6eb2240 Added client "hardlink" commant to test doing NT rename with hard links.
Added hardlink_internals() code - UNIX extensions now use this too.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
c9f31fafed Use a common function to parse all pathnames from the wire. This allows
much closer emulation of Win2k3 error return codes.
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
832674c099 more usrmgr fixes: display lockout timers in minutes, not seconds, for samr 2e 0001-01-01 00:00:00 +00:00
Jim McDonough
fbf909926b quick for for usrmgr. unknown_6 is really max dimension of logon hours array. need to update passdb for this. 0001-01-01 00:00:00 +00:00
Jim McDonough
840340bd96 Merge fields_present function from HEAD. Now, a field will not be updated
on setuserinfo levels which include this field, unless the corresponding
bit (defined in passdb.h) is turned on.  Without this, newer versions
of usrmgr break us pretty bad.
0001-01-01 00:00:00 +00:00
Gerald Carter
a01a7fdbd9 BUG 1129: patch from shiro@miraclelinux.com (Shiro Yamada) to install image files for SWAT 0001-01-01 00:00:00 +00:00
Jeremy Allison
64eded518b Janitorial duty for tpot - --with-fhs fix.
Jeremy.
0001-01-01 00:00:00 +00:00
Jim McDonough
31a15164ff fix typo for callback bit 0001-01-01 00:00:00 +00:00
Gerald Carter
14de9c0657 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.
0001-01-01 00:00:00 +00:00
Gerald Carter
d358f72974 BUG 761: read the config file before initialized default values for printing options 0001-01-01 00:00:00 +00:00
Gerald Carter
822e31d841 BUG 692: patch from SATOH Fumiyasu <fumiya@miraclelinux.com> to correct truncation of share names and workgroup names 0001-01-01 00:00:00 +00:00
Gerald Carter
91af1fb73a BUG 1147; bad pointer case in get_stored_queue_info() causing seg fault 0001-01-01 00:00:00 +00:00
Volker Lendecke
540f625036 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
0001-01-01 00:00:00 +00:00
Volker Lendecke
73f26de5c0 Print an informative error message if trying to add/remove members from
something not a group.

Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
e597420421 Add 'net rpc group [add|del]mem' for domain groups and aliases.
Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
e77fe4a77a Fix my fix to net rpc group list. We can certainly have more than a single
set of groups.

Volker
0001-01-01 00:00:00 +00:00
Jeremy Allison
f4a7ea6dc2 Can't set allocation size on directories, return correct error code on
fail if file exists and target is a directory. gentest.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
367f5c3bc2 More gentest fixes. Fix up regression in IS_NAME_VALID and renames.
Jeremy.
0001-01-01 00:00:00 +00:00
Rafal Szczesniak
33d1e2dd63 Added copyrights I forgot about looong ago...
rafal
0001-01-01 00:00:00 +00:00
Tim Potter
a05b9f0cc5 Fix for writable printerdata problem - bugzilla #1112. 0001-01-01 00:00:00 +00:00
Volker Lendecke
005d92d57e That const was one too many 0001-01-01 00:00:00 +00:00
Volker Lendecke
eb4d4faff8 Implement 'net groupmap set' and 'net groupmap cleanup'.
I was rather annoyed by the net groupmap syntax, I could never get it
right.

net groupmap set "domain admins" domadm

creates a mapping,

net groupmap set "domain admins" -C "Comment" -N "newntname"

should also do what you expect. I'd like to have some feedback on the usability
of this.

net groupmap cleanup

solves a problem I've had two times now: Our SID changed, and a user's primary
group was mapped to a SID that is not ours. net groupmap cleanup removes all
mappings that are not from our domain sid.

Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
f6bb3304fc And another little const 0001-01-01 00:00:00 +00:00
Volker Lendecke
0b29d83d33 Apply some const
Volker
0001-01-01 00:00:00 +00:00
Steve French
b83802c5a1 Fixes to minor security bug pointed out by AB in the mount helper 0001-01-01 00:00:00 +00:00
Andrew Tridgell
d2d653a1a6 fixed compilation with --enable-dmalloc
the macro redefinition of free() means we cannot have a structure
element called "free"
0001-01-01 00:00:00 +00:00
Jeremy Allison
5646b6c989 Merging Richard's rename test.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
3f35e3975f Interesting fact found by IFSTEST /t LockOverlappedTest...
Even if it's our own lock context, we need to wait here as
there may be an unlock on the way.
So I removed a "&& !my_lock_ctx" from the following
if statement.

if ((lock_timeout != 0) && lp_blocking_locks(SNUM(conn)) && ERROR_WAS_LOCK_DENIED(status)) {

Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
191b43159e Fix bug in previous global_sam_sid() commit. I broke the 'read from
MACHINE.SID' file functionality.

Also, before we print out the results of 'net getlocalsid' and 'net
getdomainsid', ensure we have tried to read that file, or have
generated one.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
86ad04d26d I *hate* global variables...
OK, what was happening here was that we would invalidate global_sam_sid
when we set the sid into secrets.tdb, to force a re-read.

The problem was, we would do *two* writes into the TDB, and the second one
(in the PDC/BDC case) would be of a NULL pointer.  This caused smbd startups
to fail, on a blank TDB.

By using a local variable in the pdb_generate_sam_sid() code, we avoid this
particular trap.

I've also added better debugging for the case where this all matters, which
is particularly for LDAP, where it finds out a domain SID from the sambaDomain
object.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Jeremy Allison
d448fb801e Fixup strange rename error case (gentest).
Jeremy.
0001-01-01 00:00:00 +00:00