summaryrefslogtreecommitdiff
path: root/source3/include
AgeCommit message (Collapse)AuthorFilesLines
2009-06-25s3-netlogon: remove init_netr_SamInfo functions.Günther Deschner1-52/+0
Guenther
2009-06-25s3-netlogon: fix validation level 2 support in netr_SamLogon and friends.Günther Deschner1-0/+4
Guenther
2009-06-24s3: Plumb smb_filename through SMB_VFS_STAT and SMB_VFS_LSTATTim Prouty3-18/+21
This patch introduces two new temporary helper functions vfs_stat_smb_fname and vfs_lstat_smb_fname. They basically allowed me to call the new smb_filename version of stat, while avoiding plumbing it through callers that are still too inconvenient. As the conversion moves along, I will be able to remove callers of this, with the goal being to remove all callers. There was also a bug in create_synthetic_smb_fname_split (also a temporary utility function) that caused it to incorrectly handle filenames with ':'s in them when in posix mode. This is now fixed.
2009-06-22s3: forward MSG_DEBUG from smbd parent to all childrenAravind Srinivasan1-0/+6
Before 3.3, an smbcontrol debug message sent to the target "smbd" would actually be sent to all running processes including nmbd and winbindd. This behavior was changed in 3.3 so that the "smbd" target would only send a message to the process found in smbd.pid, while the "all" target would send a message to all processes. The ability to set the debug level of all processes within a single daemon, without specifying each pid is quite useful. This was implemented in winbindd in 065760ed. This patch does the same thing for smbd. Upon receiving a MSG_DEBUG the parent smbd will rebroadcast it to all of its children. The printing process has been added to the list of smbd child processes, and we now always track the number of smbd children regardless of the "max smbd processes" setting.
2009-06-20Add tldap paged searches, together with two helper routinesVolker Lendecke2-0/+29
2009-06-20Reorganize retrieving errors and server-sent controlsVolker Lendecke1-9/+5
This attaches the data to the tldap_message instead of the tevent_req. It adds tldap_ctx_lastmsg() to retrieve the last message for the users of the sync wrappers.
2009-06-20Add tldap_supports_controlVolker Lendecke1-0/+1
2009-06-20Add tldap_entry_has_attrvalueVolker Lendecke1-0/+4
2009-06-20tldap control supportVolker Lendecke1-2/+6
2009-06-20Prepare control supportVolker Lendecke1-19/+33
We will have arrays of controls passed to tldap.c. Follow a mantra from the classic book "Thinking Forth" by Leo Brodie: Favor counts over terminators :-) This makes the parameter lists to tldap pretty long, but everyone will have wrapper routines anyway, see for example tldap_search_fmt. And the OpenLDAP manpages call the non-_ext routines deprecated, probably for a reason.
2009-06-19Fix Coverity IDs 922 and 933Volker Lendecke1-1/+1
In copy_internals(), if the !CAN_WRITE(conn) kicks in, we end up dereferencing a NULL smb_filename. This adds a simple protection around it. Tim, please check! Volker
2009-06-19Add tldap_fetch_rootdseVolker Lendecke1-0/+7
2009-06-19Make tevent_req_is_ldap_error publicVolker Lendecke1-0/+2
2009-06-19Add tldap_context_[gs]etattrVolker Lendecke1-0/+3
This adds the ability to attach extended information to a tldap_context. This will become useful once we start to do automatic reconnects for example, a callback function might want attach a pointer to credentials so that it can rebind. The initial user of this will be a cached rootdse, so that things like the ability to do paged searches can be cached.
2009-06-18Fix bug 4699: Remove pidfile on clean shutdownVolker Lendecke1-0/+1
2009-06-18Add some const to the stat struct in the dosmode calls.Jeremy Allison1-4/+4
Fix a couple more unix_convert uses to filename_convert. Fix bug in acl_group_override() where an uninitialized struct could be used. Move unix_convert with wildcard use in SMBsearch reply to boilerplate code. Jeremy.
2009-06-18Replace the boilerplate calls to :Jeremy Allison1-2/+8
resolve_dfspath() -> unix_convert() -> get_full_smb_filename() -> check_name() with a new function filename_convert(). This restores the check_name() calls that had gone missing since the default create_file was changed. All "standard" pathname processing now goes through filename_convert(). I'll take a look at the non-standard pathname processing next. As a benefit, fixed a missing resolve_dfspath() in the trans2 mkdir call. Jeremy.
2009-06-17s3: Change SMB_VFS_OPEN to take an smb_filename structTim Prouty2-2/+6
This was a little messy because of all of the vfs modules I had to touch. Most of them were pretty straight forward, but the streams modules required a little attention to handle smb_filename. Since the use of smb_filename enables the vfs modules to access the raw, over-the-wire stream, a little bit of the handling that was being done by split_ntfs_stream_name has now been shifted into the individual stream modules. It may be a little more code, but overall it gives more flexibility to the streams modules, while also allowing correct stream handling.
2009-06-17s3: Plumb smb_filename from create_file all of the way down to fd_openTim Prouty1-3/+4
I used the smb_filename struct everywhere that was feasible for the first pass. There are still some places in this path that need to be changed to use smb_filename, but this is a good start. I also: - Removed fname/path arguments from a few functions that weren't really using them. - Added a utility function for detecting whether an smb_filename is a stream.
2009-06-12s3: Plumb smb_filename through SMB_VFS_CREATE_FILETim Prouty3-13/+11
2009-06-12s3: Add smb_filename utility functions and fix a bug in copy_smb_filenameTim Prouty1-0/+9
2009-06-12Add debugging facility to tldap, analogous to teventVolker Lendecke1-0/+15
2009-06-10s3: Prepare the first set of SMB_VFS_CREATE_FILE callers to take an ↵Tim Prouty1-4/+5
smb_filename struct Some of the callers required minimal changes, while others (copy_internals) required significant changes. The task is simplified a little bit because we are able to do operations and checks on the base_name when a stream isn't used. This patch should cause no functional changes. Volker, Jeremy: Please check
2009-06-10s3: Add utility function for copying an smb_filename structTim Prouty1-0/+3
2009-06-10s3: Remove the now unused CFF_DOS_PATH flagTim Prouty1-5/+0
All paths are now unix paths, making this flag useless. This flags argument is now unused and can be safely removed.
2009-06-10Make ctemp async. Fix the test to pass against W2K3.Jeremy Allison1-1/+13
Jeremy.
2009-06-08Add tlda_add_mod_strVolker Lendecke1-0/+2
2009-06-08Pass a talloc_ctx to pdb_enum_aliasmemVolker Lendecke2-4/+5
2009-06-08Set SIGRTMIN to NSIGTimur I. Bakeyev1-1/+1
In the includes we define SIGRTMIN to 32 if it's not defined already. This value could be fairly low and it's better to use NSIG(number of defined signals) as the lower mark for the available signals. We have similar defenition in the source3/smbd/aio.c, which can be safely removed, as it comes from includes.h then. With regards, Timur Bakeyev. Signed-off-by: Stefan Metzmacher <metze@samba.org>
2009-06-07Add tldap_pull_uint32Volker Lendecke1-0/+2
2009-06-07req_del and req_abandon are ASN1_APPLICATION_SIMPLEVolker Lendecke1-2/+4
Ok, ASN1_APPLICATION everywhere was too easy :-)
2009-06-07Fix after making tldap independent of ldap.hVolker Lendecke1-21/+24
2009-06-06Attempt to fix the build without system-ldap.Volker Lendecke1-1/+1
I really tried, but I knew I would miss something... :-)
2009-06-06Add some samba-style tldap utility functionsVolker Lendecke2-0/+54
2009-06-06Add the early start of an async ldap libraryVolker Lendecke2-0/+238
There's a lot of things this does not do yet: For example it does not parse the reply blob in the sasl bind, it does not do anything with controls yet, a lot of the ldap requests are not covered yet. But it provides a basis for me to play with a pdb_ads passdb module.
2009-06-05Make cli_ftruncate async. Also add a simple test.Jeremy Allison1-1/+7
Jeremy.
2009-06-05s3:smbd: implement smbd_smb2_request_error/done() as macros on top of the ↵Stefan Metzmacher1-3/+0
_ex() function metze
2009-06-04Change smbd_smb2_request_error() to add a __location__.Jeremy Allison1-0/+3
This allows quick identification of smb2 parsing errors. Jeremy.
2009-06-03s3:smbd: make make_connection_snum() non staticStefan Metzmacher1-0/+5
metze
2009-06-03s3:smbd: move tcon specific globals to struct smbd_server_connectionStefan Metzmacher1-9/+12
metze
2009-06-03s3:smbd: move more session specific globals to struct smbd_server_connectionStefan Metzmacher1-15/+24
metze
2009-06-03s3:smbd: move negprot related globals to struct smbd_server_connectionStefan Metzmacher1-1/+2
metze
2009-06-03s3:smbd: move pending_auth_data list to struct smbd_server_connectionStefan Metzmacher1-9/+0
metze
2009-06-02Add SMB_VFS_CONNECTPATH operationVolker Lendecke2-0/+8
This is required for the shadow_copy2 module and "wide links = no". The file system snapshots by nature are typically outside of share directory. So the REALPATH result fails the wide links = no test.
2009-05-31Fix some nonempty blank linesVolker Lendecke1-4/+4
2009-05-30libwbclient: Add async call framework.Kai Blin1-75/+0
2009-05-29Make cli_nt_delete_on_close() async.Jeremy Allison1-1/+7
Jeremy.
2009-05-29s3:add prototype of map_nt_error_from_wbcErr() to proto.hMichael Adam1-0/+1
Michael
2009-05-29Add smbldap_talloc_single_blob()Volker Lendecke1-0/+3
2009-05-29s3 async wbclient: Change license to LGPLv3+Volker Lendecke1-8/+12