1
0
mirror of https://github.com/samba-team/samba.git synced 2025-03-09 08:58:35 +03:00

12663 Commits

Author SHA1 Message Date
Gerald Carter
2072977287 BUG 1080: fix declaration of SMB_BIG_UINT
(This used to be commit 0b17a4105ecbad26b6bb79ed8148495c02518430)
2004-03-04 18:17:54 +00:00
Volker Lendecke
381485668a There's a specific error message NT_STATUS_ALIAS_EXISTS.
(This used to be commit 0ad00bce0752373a1ac471f6629a5e64ee5af280)
2004-03-04 17:59:25 +00:00
Volker Lendecke
e9e6bd66cd Another typo, sorry for samba-cvs spam :-)
(This used to be commit da59bab769dac3702dbddd6ad718f918befee6db)
2004-03-04 17:50:44 +00:00
Volker Lendecke
600327d849 Fix typo.
Volker
(This used to be commit 6287141f10e6c774990b4fdf65bfd2a55afca35a)
2004-03-04 17:47:44 +00:00
Jim McDonough
a6bbc98a49 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. :-)
(This used to be commit 217791cab21b79fdbe2ddb96079fb9abb8545dd7)
2004-03-04 16:24:15 +00:00
Gerald Carter
4c00877894 BUG 848: don't create winbind local users/groups that already exist in the tdb
(This used to be commit 00c998c5030560d096d7f3c0f9d89ce18e2d006b)
2004-03-04 16:00:16 +00:00
Gerald Carter
0b975dd7c6 another fix for bug 761; don't default to bsd printing on linux
(This used to be commit 29bc83080f47b2f945686e706f2cfef221ac3795)
2004-03-04 15:19:00 +00:00
Jeremy Allison
1fcc87b814 Added client "hardlink" commant to test doing NT rename with hard links.
Added hardlink_internals() code - UNIX extensions now use this too.
Jeremy.
(This used to be commit 3f2b9f10dec58d3e3ae463e3804d96052fb27a4d)
2004-03-03 23:14:21 +00:00
Jeremy Allison
74307e3506 Use a common function to parse all pathnames from the wire. This allows
much closer emulation of Win2k3 error return codes.
Jeremy.
(This used to be commit 883f89a0184e37bff4f5877a25d31b994996ab08)
2004-03-03 20:55:40 +00:00
Jim McDonough
0dd6ea2f3a more usrmgr fixes: display lockout timers in minutes, not seconds, for samr 2e
(This used to be commit 95e7cfdb19bab4a5aac59e10afb3b1416e6079c5)
2004-03-03 17:44:10 +00:00
Jim McDonough
3bdcd5c8ce quick for for usrmgr. unknown_6 is really max dimension of logon hours array. need to update passdb for this.
(This used to be commit 1d3079bf4c661939e291cca5e96157b5fa492340)
2004-03-03 04:23:48 +00:00
Gerald Carter
32581b5d7b BUG 1129: patch from shiro@miraclelinux.com (Shiro Yamada) to install image files for SWAT
(This used to be commit 42d8455a02fa89d37864d32c49d598ba9cdc1552)
2004-03-02 18:10:53 +00:00
Jim McDonough
5d123b0d92 fix typo for callback bit
(This used to be commit c1b1a1961f19e2fba680d48e41d0b29cdfd6d39c)
2004-03-02 18:04:21 +00:00
Simo Sorce
6159be06a3 Let's be polite with poorer backends ;-)
(This used to be commit 90640a523e9898157a361f3fbf5923b1ef2a6651)
2004-03-02 15:34:46 +00:00
Volker Lendecke
b5c98c295c 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
(This used to be commit 6cad5bcc280c2964473346cc467423a44cc6a5c2)
2004-03-02 14:49:06 +00:00
Gerald Carter
923a0bed5c 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.
(This used to be commit e721255e8f7d719dbcc2cad94c9b11f6124676e6)
2004-03-02 14:29:01 +00:00
Volker Lendecke
4faa480a4a 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
(This used to be commit b790753f443092a65eeef7b146a18d4c5ffcb323)
2004-03-02 14:19:44 +00:00
Simo Sorce
41951ea78b Sorry, forgot to commit an essential piece.
(This used to be commit fa6500fe773ae1f0aa70f370600b6f7aa7f65f3d)
2004-03-02 10:09:52 +00:00
Volker Lendecke
a1169a863b 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
(This used to be commit 18e48190838907a29347d471e81945257f540aa7)
2004-03-02 07:47:39 +00:00
Gerald Carter
52be5d8319 merging from 3.0
(This used to be commit fae17e0f9d228bab9992287507babd6a8fd53f97)
2004-03-02 04:19:47 +00:00
Gerald Carter
fcab2e5cfb BUG 1147; bad pointer case in get_stored_queue_info() causing seg fault
(This used to be commit eb8a8c290f893b6ffa3d16e282829230be56b212)
2004-03-01 17:03:23 +00:00
Simo Sorce
eebc94d84a 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.
(This used to be commit 7a78c3605e203bd8e0d7ae244605f076a5d0b0bc)
2004-03-01 16:10:28 +00:00
Volker Lendecke
f986f33aa1 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
(This used to be commit eb18cb83d13d664896468d200d9dc353da13c561)
2004-03-01 14:59:32 +00:00
Volker Lendecke
b80e2ff51a When asked to delete an alias member, don't add it ...
Volker
(This used to be commit f95a5d81479b467c837b727831c2224832c8205c)
2004-03-01 13:07:04 +00:00
Volker Lendecke
480fd4f9b5 Add aliases to winbindd_getgroups().
su - WINDOWS\\vl

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

Next will be getent group.

Volker
(This used to be commit 52dae45684317ac8ac529017607bb5787dda7c50)
2004-03-01 13:02:06 +00:00
Tim Potter
0af6ee14c1 Fix bugzilla #1144 where running configure --with-fhs=anything would
turn on fhs compliant paths.  Spotted by Timur Bakeyev.
(This used to be commit e0382635a5490e1a6b6388dc98e6ce318e197808)
2004-03-01 01:09:13 +00:00
Volker Lendecke
0d45ad1b0d 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
(This used to be commit 30ef8fe1e85c0ca229b54f3f1595c4330f7191d1)
2004-02-29 16:48:19 +00:00
Volker Lendecke
4628a2da1e 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
(This used to be commit 26d99204b7cbfa8e259f2a8438eadc9ff6be0709)
2004-02-29 16:33:49 +00:00
Volker Lendecke
6ed848877e Trivial commit to make 'smbdiff 3_0/source head/source' two files smaller.
Volker
(This used to be commit 73117f5e41aa923b07d200a18c84b8082d8b71a6)
2004-02-29 16:32:04 +00:00
Volker Lendecke
55afdfa77c Print an informative error message if trying to add/remove members from
something not a group.

Volker
(This used to be commit 9cfc97df456199c22e199831d28597132cf001a8)
2004-02-29 12:48:29 +00:00
Volker Lendecke
3e2e8d2f4d Add 'net rpc group [add|del]mem' for domain groups and aliases.
Volker
(This used to be commit 6785dc84ce4d9c2d5ebe3113c7f506947b09a7f8)
2004-02-28 18:42:20 +00:00
Volker Lendecke
6cf54c5fbe Fix my fix to net rpc group list. We can certainly have more than a single
set of groups.

Volker
(This used to be commit 710969acaa9ce4467ec09c2fadb03e49fbc207be)
2004-02-28 08:19:00 +00:00
Jeremy Allison
a51129c474 Can't set allocation size on directories, return correct error code on
fail if file exists and target is a directory. gentest.
Jeremy.
(This used to be commit 4b1262322995c8794cd73d84712f82d8c91abdc6)
2004-02-28 01:53:19 +00:00
Jeremy Allison
cff0114f2b More gentest fixes. Fix up regression in IS_NAME_VALID and renames.
Jeremy.
(This used to be commit 2a457e2e28cd1f78778cb41fbb381883ced99592)
2004-02-28 00:56:39 +00:00
Rafal Szczesniak
499fec31b6 Added copyrights I forgot about looong ago...
rafal
(This used to be commit ed26b550b5f24741db6be38542f341be18741e62)
2004-02-27 22:11:31 +00:00
Rafal Szczesniak
9619eb6105 Adding ability to operate on trust passwords to pdbedit. This enables
new functionality and testing interface for new pdb functions.

Also, quite a bit of objects is being added to pdbedit in order to make
it able to find domain sid automatically (if not given explicitly).
If such amount of "wisdom" is not required to be in pdbedit, I'll move
it to 'net' which will have this new functionality, anyway.


rafal
(This used to be commit cfb1b7bda905c8391bf065ecb99bb28806dfe96a)
2004-02-27 21:02:00 +00:00
Rafal Szczesniak
359ca5a5a5 Disabling GUMS (gums_tdbsam2) temporarily, to fix the build.
rafal
(This used to be commit 39bc55e4d407adb31030a57185f7431434b43a51)
2004-02-27 20:00:21 +00:00
Tim Potter
e9f51e2ea9 Fix for writable printerdata problem - bugzilla #1112.
(This used to be commit 892b16404033bbaf72a5a04f558cb41ef544739e)
2004-02-26 22:58:18 +00:00
Volker Lendecke
5cd5e246c1 That const was one too many
(This used to be commit b9ae67a3a232875361d3056eef3b654e6b92c244)
2004-02-26 14:36:28 +00:00
Volker Lendecke
688ea97ba0 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.

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
(This used to be commit 69879ceffa587ccf2bf59e1c716424e1d20a7f68)
2004-02-26 11:34:33 +00:00
Volker Lendecke
92f97426be And another little const
(This used to be commit a3a15be5a2ae419992af004425592cca6796edcd)
2004-02-26 11:08:17 +00:00
Volker Lendecke
12d5c14dd0 Apply some const
Volker
(This used to be commit f1b66461ebce4e89eb65620a09c079ae9697537b)
2004-02-26 10:56:41 +00:00
Jeremy Allison
fb7a1848d1 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.
(This used to be commit 17c88758ae82b20bc7260d5d927325f3f73ba33c)
2004-02-26 01:30:56 +00:00
Andrew Bartlett
41025e8d4f (merge from 3.0)
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
(This used to be commit af1b6447b8292a83851361570219ee6d889e0898)
2004-02-25 23:19:17 +00:00
Richard Sharpe
eb8ed992c6 Adds some more tests of renaming an open file that has been opened with
different share modes. It also has a commented out test to see if we can
actually open a renamed file, and it turns out that we can, it seems. I am
not sure at this stage how long that is the case for, though.
(This used to be commit 89d810d234f53c9731ded85848bd9c17d45d5125)
2004-02-25 22:14:35 +00:00
Andrew Bartlett
ebd86253c6 (merge from 3.0)
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
(This used to be commit f3ecdea56d9ea6d562ace84f0e653a641eb96f6e)
2004-02-25 22:09:46 +00:00
Jeremy Allison
3f67bb3a69 Fixup strange rename error case (gentest).
Jeremy.
(This used to be commit e46aaffe97919afb1c92f56376f9578825012b92)
2004-02-25 21:37:09 +00:00
Jim McDonough
4b6cb540de Do the query part of the previous fix...reset time and duration are set in minutes, not seconds. Works from usrmgr.
(This used to be commit d02dd0e5f5fae3256b1922c2963e18c8fa36a3e6)
2004-02-25 20:02:41 +00:00
Jim McDonough
f6b68d962f reset time and duration are set in minutes, not seconds. Works from usrmgr.
(This used to be commit 08a7c9697d49719e4cfb32a06720873c98585f67)
2004-02-25 15:01:38 +00:00
Jeremy Allison
538633b0f8 Figured out a new flags bit with gentest and ethereal....
Jeremy.
(This used to be commit 755b66303d04b73a855fa8db5fe3ae920a901bf3)
2004-02-25 02:15:20 +00:00