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

1067 Commits

Author SHA1 Message Date
Jeremy Allison
842e08e52a Forward port the change to talloc_init() to make all talloc contexts
named. Ensure we can query them.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
f017fa7c47 * fix memory leak when constructing an driver_level_6 structure
and no dependent files (working on smbd memory leak).  No CR# yet.
0001-01-01 00:00:00 +00:00
Jim McDonough
f0fc4e30f6 Store printer guid in the dsspooler registry key so we don't have to
query the directory server every time someone asks
0001-01-01 00:00:00 +00:00
Jim McDonough
adda04379e More printer publishing code.
- Add published attribute to info2, needed for win clients to work properly
- Return proper info on getprinter 7

This means you can now look at the sharing tab of a printer and get correct
info about whether it is published or not, and change it.
0001-01-01 00:00:00 +00:00
Jim McDonough
bbd7c8071a Automatic printer publishing when using APW or choosing 'list in the directory' in printer settings. Currently very little is published, and you cannot unpublish because of a bug in win2k clients. 0001-01-01 00:00:00 +00:00
Gerald Carter
42a2e7d701 [merge from app_head]
XP sends GetPrinterData("ChangeId"). So we now respond accordingly.
Possible fix for CR 1147.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
7e846e7387 Instead of walking the entire group database, grabbing all members of each
group, testing for membership etc, use the already calculated NT_USER_TOKEN.

(which is initgroups() based)

So far we only fill out the 'domain' groups - we need to fill out the
'other sids' as well, and we possibly need to filter the list for 'domain
groups' only (the old code did that), but Win2k doesn't seem to mind
this for now.

I also need to find out what the magic '7' is about.  Fortunetly JF is in town,
so I'll grill him tomorrow :-).

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Tim Potter
43cd6e5a70 Spelling fix. 0001-01-01 00:00:00 +00:00
Andrew Tridgell
ea3787d819 more %U fixes for head 0001-01-01 00:00:00 +00:00
Gerald Carter
6ce20a61a8 formatting fix 0001-01-01 00:00:00 +00:00
Jeremy Allison
82b8f749a3 Removed global_myworkgroup, global_myname, global_myscope. Added liberal
dashes of const. This is a rather large check-in, some things may break.
It does compile though :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
c6d45216f6 fix for CR 601. Only call addprinter command when the port, driver, comment, or location field changed 0001-01-01 00:00:00 +00:00
Jeremy Allison
940b04ddfa First cut of fix for changenotify on a print server handle. Use the connections tdb
with an snum of -1 and a special printername.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
f20de1f9b0 deldriver fix 0001-01-01 00:00:00 +00:00
Gerald Carter
e87829b494 re-enable ffpcn on print server handle 0001-01-01 00:00:00 +00:00
Andrew Bartlett
62ee7b7dc0 Make it easier to track things down here - add some debugs on failure. 0001-01-01 00:00:00 +00:00
Jeremy Allison
10024ed06e Merge of scalable printing code fix... Needs testing.
Also tidied up some of Richard's code (I don't think he uses the compiler
flags -g -Wall -Wshadow -Wstrict-prototypes -Wpointer-arith -Wcast-qual like
I do :-) :-).
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
8af12875b0 PURGE_PRINTER fix from APP_HEAD 0001-01-01 00:00:00 +00:00
Jeremy Allison
e46e38beab Reverted a fix from Volker (sorry). We need to move this fix to the correct
place.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
4d9b205362 Debug level 12 is a typo.
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
a81d700ae9 First cut of new ACL mapping code from Andreas Gruenbacher <agruen@suse.de>.
This is not 100% the same as what SuSE shipped in their Samba, there is
a crash bug fix, a race condition fix, and a few logic changes I'd like to
discuss with Andreas. Added Andreas to (C) notices for posix_acls.c
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
ff537f10a0 Fix for systems that allow more than 65536 open files per process.
Jeremy.
0001-01-01 00:00:00 +00:00
Volker Lendecke
1f702dcd2c Same segfault as in add_groupmem.
Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
f30095852f This moves the group mapping API into the passdb backend.
Currently this calls back to mapping.c, but we have the framework
to get the information into LDAP and the passdb.tdb (should we? I
think so..).

This has received moderate testing with net rpc vampire and
usrmgr. I found the add_groupmem segfault in add_aliasmem as
well, but that will be another checkin.

Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
382c444225 Fix full_name for info23 as well. Thanks, Andrew.
Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
32d6bcf3ac This fixes some bugs for NT4 usrmgr.exe
Volker
0001-01-01 00:00:00 +00:00
Gerald Carter
64a1591444 fix from APP_HEAD to commit a re-init'd printer to disk 0001-01-01 00:00:00 +00:00
Gerald Carter
b130c681d2 merge from app_head to use GMT in job submission notification 0001-01-01 00:00:00 +00:00
Andrew Bartlett
7f237bde21 Nice *big* patch from metze.
The actual design change is relitivly small however:

It all goes back to jerry's 'BOOL store', added to many of the elements in a
SAM_ACCOUNT.  This ensured that smb.conf defaults did not get 'fixed' into
ldap.  This was a great win for admins, and this patch follows in the same way.

This patch extends the concept - we don't store values back into LDAP unless
they have been changed.  So if we read a value, but don't update it, or we
read a value, find it's not there and use a default, we will not update
ldap with that value.  This reduced clutter in our LDAP DB, and makes it
easier to change defaults later on.

Metze's particular problem was that when we 'write back' an unchanged value,
we would clear any muliple values in that feild.  Now he can still have his
mulitivalued 'uid' feild, without Samba changing it for *every* other
operation.

This also applies to many other attributes, and helps to eliminate a nasty
race condition.  (Time between get and set)

This patch is big, and needs more testing, but metze has tested usrmgr, and
I've fixed some pdbedit bugs, and tested domain joins, so it isn't compleatly
flawed ;-).

The same system will be introduced into the SAM code shortly, but this fixes
bugs that people were coming across in production uses of Samba 3.0/HEAD, hence
it's inclusion here.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
b507dba452 print job properties fix from APP_HEAD. a null devmode is not a failure. 0001-01-01 00:00:00 +00:00
Gerald Carter
94201672a5 add_printer_hook() fix from APP_HEAD 0001-01-01 00:00:00 +00:00
Gerald Carter
764b58e2c0 merge from APP_HEAD
* s/driverlocation/comment
* detect native mode domain and enumerate local groups

Also

* Added sendfile stats from SAMBA_2_2
0001-01-01 00:00:00 +00:00
Volker Lendecke
74e4a3479f Third part of my fix for usrmgr. Assuming automagic mapping
only in parts of srv_samr_nt is not good.

This is soo broken. :-)

Volker
0001-01-01 00:00:00 +00:00
Simo Sorce
a123e05877 try to put every security descriptors related definitions in the same file.
also try to uniform names to a clean scheme.

first part.
0001-01-01 00:00:00 +00:00
Jeremy Allison
bb58a08af4 Add a timeout to tdb_lock_bystring(). Ensure we never have more than
MAX_PRINT_JOBS in a queue.
Jeremy.
0001-01-01 00:00:00 +00:00
Gerald Carter
38c9e42998 merge of new client side support the Win2k LSARPC UUID in rpcbind
from APP_HEAD
0001-01-01 00:00:00 +00:00
Jeremy Allison
1b283b649f Missing break meant getprintprocessordirectory always returned UNKNOWN_LEVEL.
Jeremy.
0001-01-01 00:00:00 +00:00
Volker Lendecke
2613d3a48a Second part of my fix -- incorrect merge. 0001-01-01 00:00:00 +00:00
Volker Lendecke
cb05dcab2d We have to hand out info on Builtin here as well. They are stored in
group mapping not as local, but as WKN_GRP.

Volker
0001-01-01 00:00:00 +00:00
Jeremy Allison
322d8b4c83 It turns out that Windows allows delete printer on a handle
opened by an admin user, then used on a pipe handle created
by an anonymous user..... but they're working on security.... riiight !
Jeremy.
0001-01-01 00:00:00 +00:00
Jeremy Allison
0d27cc909b Check for security on delete printer was reversed...
Jeremy.
0001-01-01 00:00:00 +00:00
Andrew Bartlett
e87948c777 Patch from "Kai Krueger" <kai@kruegernetz.de> to get some more of our access
control bits right on the SAMR pipe.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Andrew Bartlett
ab878b6cc4 Patch from "Stefan (metze) Metzmacher" <metze@metzemix.de> to do a *much*
better job of working with usrmgr.   Previously we were blanking out entires,
and all sort of mischif.

The new patch (which I've now had a chance to test/modify) also takes care not
to expand % values (ie we go \\%L\%U -> \\server\user, we don't want to store
\\server\user back) and to correctly notice 'not set' compared to 'null string'
etc.

Andrew Bartlett
0001-01-01 00:00:00 +00:00
Gerald Carter
930c6710fe merge from APP_HEAD 0001-01-01 00:00:00 +00:00
Volker Lendecke
066b163bde Ok, what's this? Samba as a PDC wants to authenticate a user coming in
to a native NT member server. If the logoff time in the samlogon reply
is set to something else but infinity, the tree connect to the member
server comes back with 'bad uid'. In my traces, NT PDC sends
0x7fff.. always. Weird, but true.

I would really like others to double-check this. If you have questions
regarding the setup, feel free to ask!

Thanks!

Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
b959419ed3 Ok, getting a bit more ambitious. Stop me, if this is wrong. ;-)
When creating a group you have to take care of the fact that the
underlying unix might not like the group name. This change gets around
that problem by giving the add group script the chance to invent a
group name. It then must only return the newly created numerical gid.

Volker
0001-01-01 00:00:00 +00:00
Volker Lendecke
9d63315240 trivial comment fix 0001-01-01 00:00:00 +00:00
Gerald Carter
aa52351384 printjob merge from APP_HEAD regarding device modes 0001-01-01 00:00:00 +00:00
Gerald Carter
3524a4a348 merge from APP_HEAD for GetJob() 0001-01-01 00:00:00 +00:00
Gerald Carter
7841753a03 DelPrinterDrvEx() fix from APP_HEAD 0001-01-01 00:00:00 +00:00