1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-14 19:24:43 +03:00

13510 Commits

Author SHA1 Message Date
Gerald Carter
d358f72974 BUG 761: read the config file before initialized default values for printing options -
Gerald Carter
822e31d841 BUG 692: patch from SATOH Fumiyasu <fumiya@miraclelinux.com> to correct truncation of share names and workgroup names -
Gerald Carter
91af1fb73a BUG 1147; bad pointer case in get_stored_queue_info() causing seg fault -
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
-
Volker Lendecke
73f26de5c0 Print an informative error message if trying to add/remove members from
something not a group.

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

Volker
-
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.
-
Jeremy Allison
367f5c3bc2 More gentest fixes. Fix up regression in IS_NAME_VALID and renames.
Jeremy.
-
Rafal Szczesniak
33d1e2dd63 Added copyrights I forgot about looong ago...
rafal
-
Tim Potter
a05b9f0cc5 Fix for writable printerdata problem - bugzilla #1112. -
Volker Lendecke
005d92d57e That const was one too many -
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
-
Volker Lendecke
f6bb3304fc And another little const -
Volker Lendecke
0b29d83d33 Apply some const
Volker
-
Steve French
b83802c5a1 Fixes to minor security bug pointed out by AB in the mount helper -
Andrew Tridgell
d2d653a1a6 fixed compilation with --enable-dmalloc
the macro redefinition of free() means we cannot have a structure
element called "free"
-
Jeremy Allison
5646b6c989 Merging Richard's rename test.
Jeremy.
-
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.
-
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
-
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
-
Jeremy Allison
d448fb801e Fixup strange rename error case (gentest).
Jeremy.
-
Jim McDonough
98833a82fa Do the query part of the previous fix...reset time and duration are set in minutes, not seconds. Works from usrmgr. -
Jim McDonough
700049d9ef reset time and duration are set in minutes, not seconds. Works from usrmgr. -
Jeremy Allison
b4b684f115 Figured out a new flags bit with gentest and ethereal....
Jeremy.
-
Jeremy Allison
5107f6ee70 More gentest fun :-). NB. I'm not fixing OpenX breakage 'cos if you look
at what W2K3 accepts here it's COMPLETELY BROKEN ! :-).
Jeremy.
-
Jeremy Allison
d34785194c More gentest fixes.
Jeremy.
-
Volker Lendecke
76c75bb8a7 Add 'net rpc group add'. For this parse_samr.c had to be changed: The
group_info4 in set_dom_group_info also has the level in the record
itself. This seems not to be an align. Tested with NT4 usrmgr.exe. It can
still create a domain group on a samba machine.

Volker
-
Volker Lendecke
eece7ff000 Remove unused variable.
Volker
-
Volker Lendecke
b1eba2188b 'net idmap restore' is too useful to be left broken :-)
Set the HWM values correctly after having manipulated the tdb.

Volker
-
Jeremy Allison
1b0d54170a Ensure '.' and '..' don't match in delete requests.
Jeremy.
-
Jeremy Allison
00f71fc836 More gentest error fixups.
Jeremy.
-
Jeremy Allison
63d47f3364 Fixup bad-path error found by gentest.
Jeremy.
-
Jeremy Allison
dfd7d1c2b7 Added NTrename SMB (0xA5) - how did we miss this.... ?
Jeremy.
-
Jeremy Allison
b38b3a5542 Fixup correct timeout values for blocking lock timeouts (tested at connectathon
by Herb).
Jeremy.
-
Andrew Bartlett
9ffc490fce Found by Fabien Chevalier <fabien.chevalier@supelec.fr> and
JustFillBug <mozbugbox@yahoo.com.au> on the Samba lists - a 'max
password age' of zero should be considered as 'never expire'.

For the timebeing we just set it like -1, but we might revisit this
for closer-to-ms behaviour.

Andrew Bartlett
-
Jeremy Allison
f9c7a42e89 Fix "unable to initialize" bug when smbd hasn't been run with
new system and a user is being added via pdbedit/smbpasswd.
Found at Connectathon setup.
Jeremy.
-
Jim McDonough
4319df7fdc Janitor for tpot...bugzilla #1098, msleep already exists on aix -
Jim McDonough
003318939f Add bad password count/time attributes -
Jim McDonough
3e8a9c3584 Add calls to password lockout functions. Should now work against tdbsam only. -
Tim Potter
2285ec9737 printf -> d_printf
Bugzilla #1066.
-
Jeremy Allison
0ea0ada6c6 Make SMB_FILE_ACCESS_INFORMATION call work correctly.
Jeremy.
-
Jeremy Allison
5c6f8b1053 Make us bug-for-bug compatible with W2K3 - to get delete on close semantics
on an initial open the desired_access field *must* contain DELETE_ACCESS,
simply having it map from a GENERIC_ALL won't do. Fixes delete on close test.
Jeremy.
-
Jim McDonough
84fe24e64e handle both 0 and -1 as disabling reset count and lockout duration -
Jim McDonough
7ff42fffb2 Make default lockout duration and reset count time 30 minutes, to match windows, and also be valid (0 was invalid) -
Gerald Carter
66be4492aa just say no to crack -
Gerald Carter
34e6c5f8f3 <attr/xattr.h> & <sys/xattr.h> are mutually exclusive it seems; fix build on SuSE 8.2 -
Jeremy Allison
a47127e90e Fixup correct (as per W2K3) returns for lookupsids as well as lookupnames.
Inspired by Volkers patch.
Jeremy.
-
Gerald Carter
798dd7299e sys/xattr.h merge from HEAD -
Jim McDonough
bd2e55399c Enable checking/resetting of account lockout and bad password based on policy -