summaryrefslogtreecommitdiffstats
path: root/ldap/servers/plugins/replication/windows_connection.c
diff options
context:
space:
mode:
authorRich Megginson <rmeggins@redhat.com>2010-01-04 10:54:47 -0700
committerRich Megginson <rmeggins@redhat.com>2010-01-04 11:13:38 -0700
commitfc6040d2a1b57d45f43f55648cff3ccf753b21ad (patch)
tree367b57aa8d4a2b1e2277c23b1033efca7030a2cc /ldap/servers/plugins/replication/windows_connection.c
parent4383fcacf5d3f1c77f04c6b347b80017a12a30eb (diff)
downloadds-fc6040d2a1b57d45f43f55648cff3ccf753b21ad.tar.gz
ds-fc6040d2a1b57d45f43f55648cff3ccf753b21ad.tar.xz
ds-fc6040d2a1b57d45f43f55648cff3ccf753b21ad.zip
Password replication from 389DS to AD fails
https://bugzilla.redhat.com/show_bug.cgi?id=537956 Resolves: bug 537956 Bug Description: Password replication from 389DS to AD2008(64bit) fails, all other replication continues Reviewed by: nhosoi (Thanks!) Branch: HEAD Fix Description: Broken during adding support for openldap API. I added the function slapi_ldap_bind which returns the result code. The old function being used by the winsync code expected the function to return the msgid, which is now returned as one of the function arguments instead. Platforms tested: RHEL5 x86_64 Flag Day: no Doc impact: no
Diffstat (limited to 'ldap/servers/plugins/replication/windows_connection.c')
-rw-r--r--ldap/servers/plugins/replication/windows_connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ldap/servers/plugins/replication/windows_connection.c b/ldap/servers/plugins/replication/windows_connection.c
index b9643b5f..8f7233ae 100644
--- a/ldap/servers/plugins/replication/windows_connection.c
+++ b/ldap/servers/plugins/replication/windows_connection.c
@@ -1825,7 +1825,7 @@ do_simple_bind (Repl_Connection *conn, LDAP *ld, char * binddn, char *password)
LDAPDebug( LDAP_DEBUG_TRACE, "=> do_simple_bind\n", 0, 0, 0 );
- if( ( msgid = slapi_ldap_bind( ld, binddn, password, LDAP_SASL_SIMPLE, NULL, NULL, NULL, &msgid ) ) == -1 )
+ if( LDAP_SUCCESS != slapi_ldap_bind( ld, binddn, password, LDAP_SASL_SIMPLE, NULL, NULL, NULL, &msgid ) )
{
char *ldaperrtext = NULL;
int ldaperr;