Jeremy Allison
c4c6e1e463
Fix usrmgr opening a user object as non-root.
...
Jeremy.
2008-12-10 15:29:14 -08:00
Günther Deschner
b431406357
s3-netlogon: fix netlogon server build.
...
Guenther
2008-12-10 11:58:28 +01:00
Günther Deschner
8608fd87b0
s3-samr: a level 18 password set needs to set the pwdlastset as well.
...
Guenther
2008-12-09 13:20:36 +01:00
Günther Deschner
89e57a8fad
s3-srvsvc: fix build warning.
...
Guenther
2008-12-09 12:41:00 +01:00
Todd Stecher
9985898e94
s3: Add support for access based share enumeration
2008-12-08 22:23:16 -08:00
Günther Deschner
3656cb2e57
s3-samr: fix samr_SetUserInfo level 18 server-side.
...
Guenther
2008-12-05 16:35:22 +01:00
Günther Deschner
b8204ffd03
s3-samr: fix samr callers of samr_UserInfo18.
...
Guenther
2008-12-05 14:27:03 +01:00
Günther Deschner
7423b6a4b8
s3-samr: fix SAMR_FIELD_PASSWORD callers.
...
Guenther
2008-12-05 14:27:03 +01:00
Günther Deschner
eb906e1d2d
s3-samr: fix init_samr_user_info2{1,3,5} callers.
...
Guenther
2008-12-05 14:27:02 +01:00
Tim Prouty
5844012285
s3: Change SMB_VFS_CREATE_FILE to take a create_file_flags argument
...
This replaces the is_dos_path bool with a more future-proof argument.
The next step is to plumb INTERNAL_OPEN_ONLY through this flag instead
of overridding the oplock_request.
2008-12-03 17:51:44 -08:00
Tim Prouty
f995a7af2a
s3: Add new "is_dos_path" argument to SMB_VFS_CREATE_FILE
...
Now unix paths can be differentiated from windows paths so the
underlying create_file implementations can convert paths correctly.
2008-12-03 17:50:37 -08:00
Tim Prouty
f38d7f20a8
s3: Add SMB_VFS_CREATE_FILE to the vfs layer
...
Modify all callers of create_file to go through SMB_VFS_CREATE_FILE
2008-12-03 17:50:17 -08:00
Günther Deschner
9ccd1174f7
s3-samr: simplify _samr_QueryUserInfo a lot and fix some few potential memleaks.
...
Guenther
2008-12-02 10:08:11 +01:00
Günther Deschner
8e5cd8f81c
s3-samr: fix samr_SetUserInfo{2} level 23.
...
Do not just start decoding/setting passwords when fields_present
do not indicate there is a password to be set.
Guenther
2008-12-02 10:08:10 +01:00
Günther Deschner
931f16f622
s3-samr: _samr_EnumDomainUsers always returns a sam array (even w/o users).
...
Guenther
2008-12-02 00:53:27 +01:00
Günther Deschner
b07d3794d2
s3-samr: refuse do process UserSetInfo with 0 fields_present.
...
Guenther
2008-12-02 00:52:11 +01:00
Günther Deschner
798c4b3e6a
s3-samr: use samr_DomainServerState in client tools.
...
Guenther
2008-12-02 00:37:39 +01:00
Günther Deschner
0b7430b054
s3-samr: fix various potential memleaks in samr_SetUserInfo.
...
Was there any reason why we did all these individual TALLOC_FREEs ?
Guenther
2008-12-01 22:30:17 +01:00
Günther Deschner
24fec0a8d7
s3-samr: avoid code duplication for identical code in _samr_Connect2, 4 and 5.
...
Guenther
2008-12-01 21:56:28 +01:00
Günther Deschner
c7c591c19f
s3-samr: modify logging in _samr_Connect2 so that it can be called from other calls as well.
...
Guenther
2008-12-01 21:52:03 +01:00
Volker Lendecke
2bb90b7a88
Remove "conn" parameter from np_open, smb_request contains it
2008-11-28 10:06:32 +01:00
Günther Deschner
6a627b440e
s3-samr: never allow to alter pwdlastset directly.
...
Guenther
2008-11-27 18:29:10 +01:00
Günther Deschner
257d99d0cd
s3-samr: fix return code for invalid password sets in SetUserInfo.
...
Guenther
2008-11-27 18:28:59 +01:00
Günther Deschner
e398eed15a
s3-samr: fix return code for invalid name in _samr_LookupDomain.
...
Guenther
2008-11-27 18:28:51 +01:00
Günther Deschner
d94f3e3db3
s3-samr: avoid enumeration and user creation on builtin domain handle.
...
Guenther
2008-11-27 18:28:43 +01:00
Günther Deschner
5f9524a956
s3-samr: support samr_CreateUser as well.
...
Guenther
2008-11-27 18:28:34 +01:00
Günther Deschner
9c2ed82d07
s3-samr: support samr_QueryUserInfo2 as well.
...
Guenther
2008-11-27 18:28:25 +01:00
Günther Deschner
bed91c0e46
s3-samr: add support for _samr_QueryUserInfo level 5.
...
Guenther
2008-11-27 18:27:36 +01:00
Günther Deschner
948218643a
s3-samr: fix _samr_LookupNames return code.
...
Guenther
2008-11-25 15:39:51 +01:00
Volker Lendecke
907f126d3e
Get rid of pipes_struct->pipe_user, we have server_info now --- YESSS!
2008-11-24 11:39:03 +01:00
Volker Lendecke
c25f5c778a
Convert delete_driver_files to use create_conn_struct
...
Jerry, please check!
2008-11-24 11:39:03 +01:00
Volker Lendecke
cb4f8573ba
Convert get_correct_cversion to use create_conn_struct
...
Jerry, please check!
2008-11-24 11:39:03 +01:00
Volker Lendecke
783ab0480b
Convert move_driver_to_download_area to use create_conn_struct
...
This removes a use of struct current_user and the vuid
The become_user() here is unnecessary, within the spoolss handling code we have
switched to the authenticated pipe user anyway.
Jerry, please check!
2008-11-24 11:39:03 +01:00
Volker Lendecke
ed27d91068
Add auth_serversupplied_info to create_conn_struct
...
srvsvc needs it, as will printing
2008-11-23 22:41:59 +01:00
Jeremy Allison
98bf3ee2f6
Second part of fix for bug #5891 - smbd crashed when viewing the eventlog exported by "eventlog list". Don't leak memory on error paths.
...
Jeremy.
2008-11-20 10:56:14 -08:00
Günther Deschner
f0e75484a7
s3-eventlog: remove trailing whitespace.
...
Guenther
2008-11-20 17:16:03 +01:00
Günther Deschner
70f55ddb70
s3-eventlog: avoid passing down full prs_struct in eventlog server.
...
Guenther
2008-11-20 17:15:38 +01:00
Michael Adam
172628dca2
eventlog: don't crash in sync_eventlog_params().
...
When freeing the talloc ctx at the end of the routine,
it must be a talloc ctx created inside. talloc_tos() needs
to be valid after the function finishes, since callers
(may) have data attached to it.
Michael
Signed-off-by: Günther Deschner <gd@samba.org>
2008-11-20 17:08:37 +01:00
Jeremy Allison
da683d6a73
This code mixes up int and uint32 when pulling out of a TDB. This is very bad. Fixing... May fix bug #5891 , not sure.
...
Jeremy.
2008-11-19 16:49:03 -08:00
Günther Deschner
12fdb5eb46
s3-ntsvcs: use pidl for _PNP_GetDeviceRegProp.
...
Guenther
2008-11-19 23:25:25 +01:00
Tim Prouty
0b1015d73e
Fix build warning introduced by making SERVICE_CONTROL an enum
2008-11-17 10:21:29 -08:00
Günther Deschner
caf0c17e24
s3-spoolss: fix enumports segfault (another malloc vs. talloc candidate).
...
Guenther
2008-11-15 02:25:17 +01:00
Günther Deschner
e76e77c32d
s3-svctl-server: fix remote rpc service management (bug #5888 ).
...
Don't TALLOC_FREE a non-talloced [ref] pointer.
Guenther
2008-11-13 20:49:38 +01:00
Jeremy Allison
c62427c7fc
Fix bug 5891] : smbd crashed when viewing the eventlog exported by "eventlog list"
...
Don't mix TALLOC and SAFE_FREE().
Jeremy.
2008-11-11 14:38:59 -08:00
Günther Deschner
a4c24b4d30
s3-samr-idl: cleanup.
...
Guenther
2008-11-10 21:46:25 +01:00
Volker Lendecke
ace87f16c0
For proxied named pipes, connect to np/<pipe_name> and send auth info
...
Signed-off-by: Stefan Metzmacher <metze@samba.org>
2008-11-06 21:39:15 +01:00
Stefan Metzmacher
6815fd1730
s3: rpc: let serverinfo_to_SamInfo3() work with no pipe_session_key
...
metze
2008-11-06 21:39:14 +01:00
Volker Lendecke
63da08d00f
Apply some const to np_write()
2008-11-01 19:41:07 +01:00
Jelmer Vernooij
ddcab787c4
Rename dos_errstr() to win_errstr() for consistency with Samba 4.
2008-11-01 17:19:26 +01:00
Günther Deschner
66993ab03a
s3-samr: remove duplicate copies of Alias Object specific access rights.
...
Guenther
2008-10-31 21:14:27 +01:00