summaryrefslogtreecommitdiffstats
path: root/source3/lib
Commit message (Collapse)AuthorAgeFilesLines
* s3:lib/addrchange: set ctx->sock to -1 after closeStefan Metzmacher2011-02-041-1/+1
| | | | | | | | | The makes the code more consistent with similar destructors. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Fri Feb 4 15:52:55 CET 2011 on sn-devel-104
* s3:lib/addrchange: remove unused pointerStefan Metzmacher2011-02-041-1/+0
| | | | metze
* s3:lib/addrchange: let addrchange_done() retry and ignore unknown message typesStefan Metzmacher2011-02-041-5/+16
| | | | | | Messages like RTM_NEWLINK should be just ignored. metze
* s3:lib: allow_trailing_dollar should only allow '$'Stefan Metzmacher2011-02-031-12/+12
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Feb 3 00:33:48 CET 2011 on sn-devel-104
* s3-libnetapi: prefer dcerpc_lsa_X functions.Günther Deschner2011-02-021-4/+7
| | | | Guenther
* s3: Remove superfluous ;Günther Deschner2011-02-022-5/+5
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Wed Feb 2 15:44:21 CET 2011 on sn-devel-104
* s3: Fix the build on sles8Volker Lendecke2011-02-011-0/+1
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Tue Feb 1 18:34:33 CET 2011 on sn-devel-104
* s3: Add support for AF_NETLINK addr notificationsVolker Lendecke2011-02-012-0/+316
| | | | | | | | | | | | | | Via an AF_NETLINK socket, the Linux kernel can inform us when IP addresses are added or dropped. This will first be used in winbind, it was triggered by clustering with ctdb. When winbind is connected to a domain controller and ctdb decides to move away the IP address that winbind used locally for the connection to the DC, the next request will run into a timeout. winbind sends out its request, but the response will never arrive: The IP is gone. It will also be interesting for more reliable online/offline detection, but this is something for future winbind refactoring.
* s3-libnetapi: prefer dcerpc_samr_X functions in lib/netapi/user.c.Günther Deschner2011-02-011-130/+377
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Tue Feb 1 13:41:42 CET 2011 on sn-devel-104
* s3-libnetapi: prefer dcerpc_samr_X functions in lib/netapi/samr.c.Günther Deschner2011-02-011-14/+48
| | | | Guenther
* s3-libnetapi: prefer dcerpc_samr_X functions in lib/netapi/localgroup.c.Günther Deschner2011-02-011-50/+151
| | | | Guenther
* s3-libnetapi: prefer dcerpc_samr_X functions in lib/netapi/group.c.Günther Deschner2011-02-011-120/+367
| | | | Guenther
* s3:lib/events: use DLIST_DEMOTE() for fd eventsStefan Metzmacher2011-01-311-0/+1
| | | | | | | | | | This makes sure that fd events doesn't dry out, because a fd with a lower number is busy. metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jan 31 16:59:44 CET 2011 on sn-devel-104
* s3:lib/events: don't loop over fd events is select gave -1Stefan Metzmacher2011-01-311-1/+1
| | | | metze
* Revert "s3:events: Call all ready fd event handlers on each iteration of the ↵Stefan Metzmacher2011-01-311-15/+7
| | | | | | | | | | main loop" This reverts commit 455fccf86b6544cd17a2571c63a88f8aebff3f74. I'll add a more generic fix for this problem. metze
* s3-rpc_client: remove some more obsolete cli_X.h header files.Günther Deschner2011-01-281-1/+1
| | | | | | | Guenther Autobuild-User: Günther Deschner <gd@samba.org> Autobuild-Date: Fri Jan 28 11:18:44 CET 2011 on sn-devel-104
* s3-lib: Fixed a missing return value in tldap.Andreas Schneider2011-01-261-0/+1
| | | | s3-lib: Fixed a missing return value in tldap.
* errormap: Add unix_to_werror() functionKai Blin2011-01-261-0/+6
| | | | | | | | | | | While this function technically is closest to the map_nt_status_from_unix() function, I think it is better to keep the new function in line with our usual fooerror_to_barerror() naming scheme. Signed-off-by: Kai Blin <kai@samba.org> Autobuild-User: Kai Blin <kai@samba.org> Autobuild-Date: Wed Jan 26 23:07:24 CET 2011 on sn-devel-104
* libcli/ldap: use lib/ldb_compat.h for the s3 buildStefan Metzmacher2011-01-241-0/+13
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Mon Jan 24 14:55:50 CET 2011 on sn-devel-104
* Revert "s3: Fix an infinite loop"Volker Lendecke2011-01-241-4/+0
| | | | | | | This reverts commit 61f7d7cdeccb1f733590e8bdb8229b32363a815e. Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Mon Jan 24 10:10:43 CET 2011 on sn-devel-104
* s3: Fix an infinite loopVolker Lendecke2011-01-231-0/+4
| | | | | | | | | | | | | | | | | | | | | If select returns EBADF (which should NEVER happen), then we loop infinitely because the select masks seem all active. I've been given an strace where smbd floods syslog with inotify-related error messages. The strace shows that select returns EBADF, and we're calling the inotify event callback. It then complains there's no data on the inotify fd. Metze, please check! We might need to fix this in 3.4 and 3.5 as well. And we need to find the deeper reason where we close a file descriptor and don't tell the events system about it. Volker Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Sun Jan 23 10:05:39 CET 2011 on sn-devel-104
* s3: Fix the code to immediately disconnect from a non-working ctdbdVolker Lendecke2011-01-211-0/+1
|
* s3-libnetapi: prefer dcerpc_srvsvc_X functions.Günther Deschner2011-01-133-15/+86
| | | | | | Guenther Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-libnetapi: prefer dcerpc_netr_X functions.Günther Deschner2011-01-132-13/+32
| | | | | | Guenther Signed-off-by: Andreas Schneider <asn@samba.org>
* s3-libnetapi: add missing error check after switchting to dcerpc_wkssvc_X ↵Günther Deschner2011-01-121-0/+4
| | | | | | functions. Guenther
* s3-initshutdown: prefer dcerpc_initshutdown_X functions.Günther Deschner2011-01-111-3/+9
| | | | Guenther
* s3-wkssvc: prefer dcerpc_wkssvc_X functions.Günther Deschner2011-01-111-6/+21
| | | | Guenther
* s3:lib/netapi: don't set SAMR_FIELD_FULL_NAME if we just want to set the ↵Stefan Metzmacher2010-12-301-3/+0
| | | | | | | | | account name (bug #7896) metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Thu Dec 30 18:09:13 CET 2010 on sn-devel-104
* All calls to event_add_to_select_args() call GetTimeOfDay() andJeremy Allison2010-12-231-6/+5
| | | | | | | | | | | pass this in as the &now parameter. Push this call inside of event_add_to_select_args() to the correct point so it doesn't get called unless needed. Jeremy. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Thu Dec 23 01:08:11 CET 2010 on sn-devel-104
* s3: Remove unused open_any_socket_outVolker Lendecke2010-12-221-165/+0
| | | | | Autobuild-User: Volker Lendecke <vlendec@samba.org> Autobuild-Date: Wed Dec 22 17:27:29 CET 2010 on sn-devel-104
* s3:lib/gencache: fix memory leak in error pathStefan Metzmacher2010-12-221-0/+3
| | | | | | | metze Autobuild-User: Stefan Metzmacher <metze@samba.org> Autobuild-Date: Wed Dec 22 15:08:30 CET 2010 on sn-devel-104
* Added call out to a Linux-compatible fallocate() when we need to extend a fileJeremy Allison2010-12-211-0/+35
| | | | | | | allocation extent without changing end-of-file size. Autobuild-User: Jeremy Allison <jra@samba.org> Autobuild-Date: Tue Dec 21 02:41:24 CET 2010 on sn-devel-104
* wb_reqtrans is not used in libwbclientVolker Lendecke2010-12-192-0/+507
|
* s3: FreeBSD has getpeereid(), use itVolker Lendecke2010-12-191-0/+4
|
* s3: Fix some typosVolker Lendecke2010-12-191-1/+1
|
* s3: Fix serverid_existsVolker Lendecke2010-12-191-0/+4
| | | | | | | In the cluster case it can happen that a node just died and we did not yet have the time to clean up serverid.tdb. If the corresponding serverid.tdb record that represented a process was migrated away from the dead record, it represents existence of a process where it is already dead.
* Fix read/write calls over sockets to cope with EAGAIN/EWOULDBLOCK for ↵Jeremy Allison2010-12-152-16/+68
| | | | non-blocking sockets.
* s3: Add gencache_iterate_blobsVolker Lendecke2010-11-281-57/+87
|
* s3: Convert gencache_get_data_blob to gencache_parseVolker Lendecke2010-11-281-59/+38
|
* s3: Add gencache_parseVolker Lendecke2010-11-281-0/+59
|
* s3-libnetapi Load case tables earlierAndrew Bartlett2010-11-241-2/+3
| | | | | | | | | | If we don't load the case tables as the 'first' thing we do, we will segfault on the first case insensitive string comparison. Andrew Bartlett Autobuild-User: Andrew Bartlett <abartlet@samba.org> Autobuild-Date: Wed Nov 24 09:21:05 CET 2010 on sn-devel-104
* s3-libnetapi Add function header commentsAndrew Bartlett2010-11-241-0/+3
| | | | Andrew Bartlett
* s3-netapi Add libnetapi_net_init(), don't double-init common Samba subsystemsAndrew Bartlett2010-11-243-12/+60
| | | | | | | | | | | | | The issue here is that libnet and net were both trying to load the smb.conf files, the case tables and set the debug levels. The set of the debug levels caused problems, because it would force the level to 0, not (say) 10 as requested on the command line. This regression was apparently introduced in cf4de8ec2c8df2ceabbe3d836d296b058e7b19fb when eliminating AllowDebugChange. Andrew Bartlett
* Move error reporting of messaging context creation fail intoJeremy Allison2010-11-143-6/+3
| | | | | | | | the daemons themselves. Allows client utilities to silently fail to create a messaging context due to access denied on the messaging tdb (which I need for the following patch). Jeremy.
* Fix bug 7781 - Samba transforms ShareName to lowercase (sharename) when ↵Jeremy Allison2010-11-102-1/+5
| | | | | | | | | adding new share via MMC Change the find_service() interface to not depend on fstring, and create a useable talloc-based interface. Jeremy.
* s3:util_str: add strlen_m_ext_term() - variant of strlen_m_ext() counting ↵Michael Adam2010-11-031-0/+9
| | | | terminator
* s3:lib/util_str: add strlen_m_ext() that takes input and output charsetMichael Adam2010-11-031-13/+55
| | | | | | | The function calculates the number of units (8 or 16-bit, depending on the destination charset), that would be needed to convert the input string which is expected to be in in src_charset encoding to the dst_charset (which should be a unicode charset).
* s3:lib/util_str: clarify the comment header for strlen_m().Michael Adam2010-11-031-4/+6
|
* s3:lib/charcnv: clarify comments in next_codepoint_ext()Michael Adam2010-11-031-2/+2
| | | | | (giving the unicod U+<hexnumber> notation of the codepoints referred to in the comments)
* s3:lib/charcnv: rename a parameter for clarity in next_codepoint_ext()Michael Adam2010-11-031-5/+5
|