Günther Deschner
0c80d12656
s3-lanman: use spoolss for api_WPrintJobEnumerate().
...
Guenther
2010-04-19 11:23:44 +02:00
Günther Deschner
8d588e96d9
s3-lanman: use spoolss for api_RDosPrintJobDel().
...
Guenther
2010-04-08 16:24:33 +02:00
Günther Deschner
d5e2b43176
s3-lanman: use spoolss for api_WPrintQueueCtrl().
...
Guenther
2010-04-08 16:24:25 +02:00
Jeremy Allison
984eee7e29
Switch over to using get_currect_XXX() accessor functions.
...
Jeremy.
2010-03-15 14:49:15 -07:00
Jeremy Allison
4b85a0ea7f
Rever e80ceb1d73
"Remove more uses of "extern struct current_user current_user;"."
...
As requested by Volker, split this into smaller commits.
Jeremy.
2010-03-15 14:48:54 -07:00
Jeremy Allison
e80ceb1d73
Remove more uses of "extern struct current_user current_user;".
...
Use accessor functions to get to this value. Tidies up much of
the user context code. Volker, please look at the changes in smbd/uid.c
to familiarize yourself with these changes as I think they make the
logic in there cleaner.
Cause smbd/posix_acls.c code to look at current user context, not
stored context on the conn struct - allows correct use of these
function calls under a become_root()/unbecome_root() pair.
Jeremy.
2010-03-12 13:56:51 -08:00
Andrew Tridgell
3f0898a9f5
s3-smbd: convert lanman and notify code to TYPESAFE_QSORT()
2010-02-14 18:44:21 +11:00
Jeremy Allison
8ddc977c14
Fix bug #7122 - Reading a large browselist fails (server returns invalid values in subsequent SMBtrans replies)
...
There are two problems:
1). The server is off-by-one in the end of buffer space test.
2). The server returns 0 in the totaldata (smb_vwv1) and totalparams (smb_vwv0)
fields in the second and subsequent SMBtrans replies.
This patch fixes both.
Jeremy.
2010-02-09 15:14:38 -08:00
Stefan Metzmacher
bc8242a08e
s3:smbd: use StrCaseCmp() instead of strcasecmp
...
metze
2010-02-09 18:59:16 +01:00
Stefan Metzmacher
1686a5e7e7
s3:smbd: Fix really ugly bool vs. int bug!!!
...
A comparison function for qsort needs to return an 'int'!
Otherwise you'll get random results depending on the compiler
and the architecture...
metze
2010-02-09 18:59:15 +01:00
Stefan Metzmacher
30eec0656c
s3:smbd: implement api_RNetServerEnum3
...
This is needed to support large browse lists.
metze
2010-02-08 18:47:41 +01:00
Stefan Metzmacher
495ac46166
s3:smbd: add/improve some DEBUG messages in api_RNetServerEnum2()
...
metze
2010-02-08 18:46:57 +01:00
Stefan Metzmacher
dc58672c65
s3:smbd: rename api_RNetServerEnum => api_RNetServerEnum2
...
metze
2010-02-08 18:35:12 +01:00
Giovanni Bajo
d75d14f8de
s3-lanman: Allow a level2 descriptor for a level1 NetShareGetInfo
...
Windows seems to allow this
http://lists.samba.org/archive/samba-technical/2009-November/068116.html
has a dump of this.
2010-01-11 22:24:22 +01:00
Volker Lendecke
081573091b
s3: Remove the typedef for "auth_serversupplied_info"
2010-01-10 20:56:16 +01:00
Günther Deschner
35c50dcce3
s3-spoolss: use driver level info8 everywhere in spoolss server internally.
...
Guenther
2009-12-08 11:05:21 +01:00
Günther Deschner
3d679a3b5f
s3-rpc: Avoid including every pipe's client and server stubs everywhere in samba.
...
Guenther
2009-11-26 20:03:17 +01:00
Günther Deschner
ec56895bde
s3-printing: use spoolss types and structs while getting and deleting drivers.
...
Guenther
2009-11-23 12:19:11 +01:00
Volker Lendecke
a702dea5a8
s3/lanman: Workaround for KB932762.
...
This addresses bug #6498 .
2009-06-27 10:12:51 +02:00
Stefan Metzmacher
75d03970b7
s3:smbd: move more session specific globals to struct smbd_server_connection
...
metze
2009-06-03 17:54:37 +02:00
Günther Deschner
9966541f89
s3-printing: simplify print_queue helper functions and return WERROR.
...
Guenther
2009-05-06 10:19:04 +02:00
Jeremy Allison
d9804ae3cc
Fix bug #6089 - Winbind samr_OpenDomain not possible with Samba 3.2.6+
...
What a difference a name makes... :-). Just because something is missnamed
SAMR_ACCESS_OPEN_DOMAIN, when it should actually be SAMR_ACCESS_LOOKUP_DOMAIN,
don't automatically use it for a security check in _samr_OpenDomain().
Jeremy.
2009-04-15 15:40:00 -07:00
Volker Lendecke
e07e964729
Convert api_NetUserGetGroups to use samr instead of pdb
2009-02-10 21:55:13 +01:00
Volker Lendecke
422e77f32a
Convert api_RNetGroupEnum to use samr instead of pdb
2009-02-07 19:25:34 +01:00
Volker Lendecke
2fd79e15f7
Close samr_handle if open_domain failed
2009-02-07 19:25:34 +01:00
Volker Lendecke
50ca5af9f3
Convert api_RNetUserEnum to use the srv_samr_nt.c directly
...
This is a sample for other accesses to pdb to go via samr. The goal is to
access passdb only via srv_samr_nt.c. If that is done, then we can easily swap
in another samr implementation like for example samba4's via a unix domain
socket.
2009-02-01 14:34:23 +01:00
Volker Lendecke
dba6624dca
Fix nonempty blank lines
2009-02-01 14:34:22 +01:00
Michael Adam
99ef38c84f
s3:put the browse list into cache_dir, not lock_dir.
...
Michael
2009-01-16 01:02:23 +01:00
Volker Lendecke
c2a280ac63
Pass smb_request to send_trans_reply to match with send_[nt]trans[2]_reply
2008-11-02 21:20:41 +01:00
Jelmer Vernooij
1b99d8fbb5
Use common util_file code.
2008-10-12 17:34:43 +02:00
Volker Lendecke
cf9665016f
Let send_trans_reply work on only the inbuf
...
It does not really need the whole smb_request
(This used to be commit d3facf4cbd
)
2008-06-28 10:38:51 +02:00
Volker Lendecke
e2585b73e9
remove unused extern current_user from lanman.c
...
(This used to be commit e2009c0b8d
)
2008-06-26 13:13:23 +02:00
Volker Lendecke
a3c0be6325
Change print_access_check to take auth_serversupplied_info instead of current_user
...
Reason: This is the main user of p->current_user which I would like to remove
(This used to be commit fd43059b3d
)
2008-06-26 13:13:23 +02:00
Volker Lendecke
40f5eab5eb
Wrap the unix token info in a unix_user_token in auth_serversupplied_info
...
No functional change, this is a preparation for more current_user ref removal
(This used to be commit dcaedf345e
)
2008-06-19 18:51:37 +02:00
Volker Lendecke
50ab871813
Remove some references to get_current_username() and current_user_info
...
(This used to be commit 344d69f95e
)
2008-05-25 11:43:57 +02:00
Volker Lendecke
f4d8141174
Remove reference to current_user_info from lanman.c
...
(This used to be commit f52d7c3fab
)
2008-05-25 11:43:56 +02:00
Tim Prouty
fb37f15600
Cleanup size_t return values in callers of convert_string_allocate
...
This patch is the second iteration of an inside-out conversion to cleanup
functions in charcnv.c returning size_t == -1 to indicate failure.
(This used to be commit 6b189dabc5
)
2008-05-20 22:40:13 +02:00
Volker Lendecke
5bda9a8af0
Remove "user" from connection_struct
...
(This used to be commit 368454a27c
)
2008-05-10 11:17:01 +02:00
Volker Lendecke
53a623d8a6
Remove the unix token info from connection_struct
...
(This used to be commit 2834dacc8d
)
2008-05-10 11:17:01 +02:00
Volker Lendecke
bec1dfab27
Remove "userdom_struct user" from "struct user_struct"
...
(This used to be commit 420de03523
)
2008-05-05 18:28:59 +02:00
Volker Lendecke
71ff1ba2de
Remove "guest" from "struct user_struct"
...
(This used to be commit 570a6b80fe
)
2008-05-05 18:28:59 +02:00
Volker Lendecke
c6d209f834
Remove the unix token info from "struct user_struct"
...
(This used to be commit aa2299d42a
)
2008-05-05 18:28:58 +02:00
Volker Lendecke
faa5e8e12c
Remove "logon_script" from "struct user_struct"
...
(This used to be commit b36fd84186
)
2008-05-05 18:28:58 +02:00
Volker Lendecke
1b2bf00fb9
Remove "homedir" from "struct user_struct"
...
(This used to be commit 41f9afd62d
)
2008-05-05 18:28:58 +02:00
Volker Lendecke
a4c0812af0
Fix some "ignoring asprintf result" warnings
...
(This used to be commit 155d62ddfd
)
2008-04-14 13:13:46 +02:00
Karolin Seeger
55af880341
Fix typo.
...
Karolin
(This used to be commit 3745e398b1
)
2008-02-05 16:22:59 +01:00
Jeremy Allison
9254bb4ef1
Refactor the crypto code after a very helpful conversation
...
with Volker. Mostly making sure we have data on the incoming
packet type, not stored in the smb header.
Jeremy.
(This used to be commit c4e5a50504
)
2008-01-04 12:56:23 -08:00
Volker Lendecke
900288a2b8
Replace sid_string_static by sid_string_dbg in DEBUGs
...
(This used to be commit bb35e794ec
)
2007-12-15 22:09:36 +01:00
Jeremy Allison
7faee02d0d
Remove the char[1024] strings from dynconfig. Replace
...
them with malloc'ing accessor functions. Should save a
lot of static space :-).
Jeremy.
(This used to be commit 52dc5eaef2
)
2007-12-10 11:30:37 -08:00
Jeremy Allison
42cfffae80
Remove next_token - all uses must now be next_token_talloc.
...
No more temptations to use static length strings.
Jeremy.
(This used to be commit ec003f3936
)
2007-12-07 17:32:32 -08:00