diff options
author | Volker Lendecke <vlendec@samba.org> | 2007-03-11 16:49:16 +0000 |
---|---|---|
committer | Gerald (Jerry) Carter <jerry@samba.org> | 2007-10-10 12:18:33 -0500 |
commit | 0d91334fe799f6b50a8265f9dc097411c3a29e18 (patch) | |
tree | c86395688b41edd01055a2a75ac0ba7f6113ad18 /source3/utils | |
parent | 5214cb6782b1ac01b4b23d53478fa11ad00915fe (diff) | |
download | samba-0d91334fe799f6b50a8265f9dc097411c3a29e18.tar.gz samba-0d91334fe799f6b50a8265f9dc097411c3a29e18.tar.bz2 samba-0d91334fe799f6b50a8265f9dc097411c3a29e18.zip |
r21784: Replace smb_register_idle_event() with event_add_timed(). This fixes winbind
who did not run the idle events to drop ldap connections.
Volker
(This used to be commit af3308ce5a21220ff4c510de356dbaa6cf9ff997)
Diffstat (limited to 'source3/utils')
-rw-r--r-- | source3/utils/net.c | 4 | ||||
-rw-r--r-- | source3/utils/net_sam.c | 2 | ||||
-rw-r--r-- | source3/utils/pdbedit.c | 2 | ||||
-rw-r--r-- | source3/utils/smbpasswd.c | 2 |
4 files changed, 5 insertions, 5 deletions
diff --git a/source3/utils/net.c b/source3/utils/net.c index 068af2626f..5a9b7d31ec 100644 --- a/source3/utils/net.c +++ b/source3/utils/net.c @@ -602,7 +602,7 @@ static int net_getlocalsid(int argc, const char **argv) name = global_myname(); } - if(!initialize_password_db(False)) { + if(!initialize_password_db(False, NULL)) { DEBUG(0, ("WARNING: Could not open passdb - local sid may not reflect passdb\n" "backend knowlege (such as the sid stored in LDAP)\n")); } @@ -672,7 +672,7 @@ static int net_getdomainsid(int argc, const char **argv) DOM_SID domain_sid; fstring sid_str; - if(!initialize_password_db(False)) { + if(!initialize_password_db(False, NULL)) { DEBUG(0, ("WARNING: Could not open passdb - domain sid may not reflect passdb\n" "backend knowlege (such as the sid stored in LDAP)\n")); } diff --git a/source3/utils/net_sam.c b/source3/utils/net_sam.c index bf397803bc..3b7d604dc6 100644 --- a/source3/utils/net_sam.c +++ b/source3/utils/net_sam.c @@ -990,7 +990,7 @@ static int net_sam_provision(int argc, const char **argv) goto failed; } - if (!NT_STATUS_IS_OK(smbldap_init(tc, ldap_uri, &ls))) { + if (!NT_STATUS_IS_OK(smbldap_init(tc, NULL, ldap_uri, &ls))) { d_fprintf(stderr, "Unable to connect to the LDAP server.\n"); goto failed; } diff --git a/source3/utils/pdbedit.c b/source3/utils/pdbedit.c index d1a87260fa..0e8de82043 100644 --- a/source3/utils/pdbedit.c +++ b/source3/utils/pdbedit.c @@ -831,7 +831,7 @@ int main (int argc, char **argv) exit(1); } - if(!initialize_password_db(False)) + if(!initialize_password_db(False, NULL)) exit(1); if (!init_names()) diff --git a/source3/utils/smbpasswd.c b/source3/utils/smbpasswd.c index da9ac8d279..e7bd0e5fae 100644 --- a/source3/utils/smbpasswd.c +++ b/source3/utils/smbpasswd.c @@ -305,7 +305,7 @@ static int process_root(int local_flags) } /* Ensure passdb startup(). */ - if(!initialize_password_db(False)) { + if(!initialize_password_db(False, NULL)) { DEBUG(0, ("Failed to open passdb!\n")); exit(1); } |