summaryrefslogtreecommitdiff
path: root/source3/include
AgeCommit message (Collapse)AuthorFilesLines
2009-07-07s3: QNX doesn't know uint - replace with uint_tBjörn Jacke1-4/+4
2009-07-06s3: Plumb smb_filename through SMB_VFS_NTIMESTim Prouty2-6/+7
2009-07-06s3 sticky write time: Removed unused args and tighten up a function by ↵Tim Prouty1-3/+4
making an arg const
2009-07-06s3: Plumb smb_filename around SMB_VFS_CHFLAGSTim Prouty1-4/+2
SMB_VFS_CHFLAGS isn't actually getting the smb_filename struct for now since it only operates on the basefile. This is the strategy for all path-based operations that will never actually operate on a stream. By clarifying the meaning of path based operations that don't take an smb_filename struct, modules that implement streams such as vfs_onefs no longer need to implement SMB_VFS_CHFLAGS to ensure it's only called on the base_name.
2009-07-06s3: Plumb smb_filename through SMB_VFS_UNLINKTim Prouty2-3/+4
2009-07-06s3: Plumb smb_filename through SMB_VFS_RENAMETim Prouty2-4/+6
2009-07-05Add const to init_rpc_hdr_baVolker Lendecke1-1/+1
2009-07-05Remove "typedef struct ndr_syntax_id RPC_IFACE;"Volker Lendecke2-8/+6
2009-07-05Introduce null_ndr_syntax_idVolker Lendecke1-0/+1
2009-07-05Make check_bind_req static to rpc_server/srv_pipe.cVolker Lendecke1-2/+0
2009-07-05Actually increase PASSDB_INTERFACE_VERSION to 18 :-)Volker Lendecke1-1/+1
2009-07-04Add tldap_pull_guidVolker Lendecke1-0/+2
2009-07-04Add pdb_get_domain_infoVolker Lendecke2-0/+12
2009-07-04Make pdb_ads return an additional flagVolker Lendecke1-0/+1
2009-07-03s3-spoolss: add rpccli_spoolss_getprinterdriver convenience wrapper.Günther Deschner1-0/+7
Guenther
2009-07-03do not redefine _INT32Matt Kraai1-2/+4
2009-07-02s3:smbd: make change_notify_reply() more generic and hide send_nt_replies() ↵Stefan Metzmacher1-3/+9
behind a callback This prepares change notify support for SMB2. metze
2009-07-02s3:smbd: simplify the notify code a bit and always reply via ↵Stefan Metzmacher1-1/+3
change_notify_reply() -> send_nt_replies() metze
2009-06-30Fix bug #6496 - MS-DFS: cannot follow multibyte char link name.SATOH Fumiyasu1-1/+1
consumed_ucs is the number of bytes of the UCS2 path consumed not counting any terminating null. We need to convert back to unix charset and count again to get the number of bytes consumed from the incoming path.
2009-06-29Fix ndrdump to use a common setup_logging() APIAndrew Bartlett1-0/+1
By adding a new common setup_logging_stdout() API, we no longer need to abuse the ABI compatability between the different setup_logging() calls in Samba3 and Samba4's DEBUG() subsystems. The revert of 49a6d757b4d944cd22c91b2838beb83f04fbe1e9 works with this to fix bug 6211. Andrew Bartlett
2009-06-28Turn the pdb_rid_algorithm into a capabilities call that returns flagsVolker Lendecke2-2/+5
2009-06-28If the connection is down, don't try another write.Volker Lendecke1-0/+1
2009-06-28Add tldap_search_vaVolker Lendecke1-0/+4
2009-06-27Add tstream_read_packetVolker Lendecke2-0/+11
2009-06-25s3: pass a valid stat into file_ntimes()Tim Prouty1-1/+1
file_ntimes() calls can_write_to_file() which expects a valid stat struct
2009-06-25s3 file_access: Convert some more functions over to use smb_filneameTim Prouty1-1/+2
2009-06-25s3: Change set_ea() and its callers to use smb_filenameTim Prouty1-1/+2
2009-06-25s3-netlogon: remove remaining netlogon init functions.Günther Deschner1-26/+0
Guenther
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