ldap/servers/plugins/dna/dna.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
New commits:
commit f23781293f4670ed84ef0fc5a496ad33dfe334d0
Author: Ludwig Krispenz <lkrispen(a)redhat.com>
Date: Wed Aug 27 15:05:36 2014 +0200
Ticket 47866 - Errors after upgrading related to attribute "dnaremotebindmethod"
Bug Description: the dnaSharedConfig entries can contain "(null)" values
Fix Description: check if remoteBindDn and remoteConnProtocol are set, before
creating a vaue for teh entries.
NOTE: if these values aready have been created they have to be
deleted and the server restarted
https://fedorahosted.org/389/ticket/47866
Reviewed by: mark, thanks
diff --git a/ldap/servers/plugins/dna/dna.c b/ldap/servers/plugins/dna/dna.c
index ab0fc5d..d427dd3 100644
--- a/ldap/servers/plugins/dna/dna.c
+++ b/ldap/servers/plugins/dna/dna.c
@@ -2503,12 +2503,16 @@ dna_get_shared_config_attr_val(struct configEntry *config_entry, char *attr, cha
while (server) {
if(slapi_sdn_compare(server->sdn, server_sdn) == 0){
if(strcmp(attr, DNA_REMOTE_BIND_METHOD) == 0){
- PR_snprintf(value, DNA_REMOTE_BUFSIZ, "%s", server->remote_bind_method);
- found = 1;
+ if (server->remote_bind_method) {
+ PR_snprintf(value, DNA_REMOTE_BUFSIZ, "%s", server->remote_bind_method);
+ found = 1;
+ }
break;
} else if(strcmp(attr, DNA_REMOTE_CONN_PROT) == 0){
- PR_snprintf(value, DNA_REMOTE_BUFSIZ, "%s", server->remote_conn_prot);
- found = 1;
+ if (server->remote_conn_prot) {
+ PR_snprintf(value, DNA_REMOTE_BUFSIZ, "%s", server->remote_conn_prot);
+ found = 1;
+ }
break;
}
}
ldap/servers/plugins/dna/dna.c | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
New commits:
commit 3dcf4a91464b47b9bc06476c0db0ce27d7dd11c8
Author: Ludwig Krispenz <lkrispen(a)redhat.com>
Date: Wed Aug 27 15:05:36 2014 +0200
Ticket 47866 - Errors after upgrading related to attribute "dnaremotebindmethod"
Bug Description: the dnaSharedConfig entries can contain "(null)" values
Fix Description: check if remoteBindDn and remoteConnProtocol are set, before
creating a vaue for teh entries.
NOTE: if these values aready have been created they have to be
deleted and the server restarted
https://fedorahosted.org/389/ticket/47866
Reviewed by: mark, thanks
diff --git a/ldap/servers/plugins/dna/dna.c b/ldap/servers/plugins/dna/dna.c
index 6162137..b42150a 100644
--- a/ldap/servers/plugins/dna/dna.c
+++ b/ldap/servers/plugins/dna/dna.c
@@ -2474,12 +2474,16 @@ dna_get_shared_config_attr_val(struct configEntry *config_entry, char *attr, cha
while (server) {
if(slapi_sdn_compare(server->sdn, server_sdn) == 0){
if(strcmp(attr, DNA_REMOTE_BIND_METHOD) == 0){
- PR_snprintf(value, DNA_REMOTE_BUFSIZ, "%s", server->remote_bind_method);
- found = 1;
+ if (server->remote_bind_method) {
+ PR_snprintf(value, DNA_REMOTE_BUFSIZ, "%s", server->remote_bind_method);
+ found = 1;
+ }
break;
} else if(strcmp(attr, DNA_REMOTE_CONN_PROT) == 0){
- PR_snprintf(value, DNA_REMOTE_BUFSIZ, "%s", server->remote_conn_prot);
- found = 1;
+ if (server->remote_conn_prot) {
+ PR_snprintf(value, DNA_REMOTE_BUFSIZ, "%s", server->remote_conn_prot);
+ found = 1;
+ }
break;
}
}
lib/libadminutil/admutil.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 069de33671fd49732c9baeb7fb0007eb7518d97e
Author: Mark Reynolds <mreynolds(a)redhat.com>
Date: Wed Aug 27 10:25:30 2014 -0400
Ticket 47881 - crash during debug session in adminutil
Bug Description: Encountered a crash at admin server startup when
attempting to debug the admin server. The crash
was in the adminutil code.
Fix Description: The was an uninitialized pointer that upon error
was being dereferenced. I've had problems reproducing
it since, but it is just a one line fix.
https://fedorahosted.org/389/ticket/47881
Reviewed by: rmeggins(Thanks!)
diff --git a/lib/libadminutil/admutil.c b/lib/libadminutil/admutil.c
index 839ab2d..1ab0151 100644
--- a/lib/libadminutil/admutil.c
+++ b/lib/libadminutil/admutil.c
@@ -1210,7 +1210,7 @@ admldapBuildInfoOnly(char* configRoot, int *errorcode)
char buf[MAX_LEN],
*name= NULL, *password=NULL;
int status;
- LDAPURLDesc *ldapInfo;
+ LDAPURLDesc *ldapInfo = NULL;
*errorcode = ADMUTIL_OP_OK;
ldap/admin/src/scripts/DSUtil.pm.in | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit dabb80743473d2cdb12b8065b7ee9c901fb753d5
Author: Ludwig Krispenz <lkrispen(a)redhat.com>
Date: Mon Aug 25 13:04:57 2014 +0200
Ticket 47877 - check_and_add_entry fails for changetype: add and existing entry
Bug Description: If an ldif file in the updates directory contains
changetype: add, the add fails if the entry
already exist
Fix Description: ignore existing entries also in case of
explicite changetype
https://fedorahosted.org/389/ticket/47877
Reviewed by: ?
diff --git a/ldap/admin/src/scripts/DSUtil.pm.in b/ldap/admin/src/scripts/DSUtil.pm.in
index d40d889..818fafa 100644
--- a/ldap/admin/src/scripts/DSUtil.pm.in
+++ b/ldap/admin/src/scripts/DSUtil.pm.in
@@ -406,7 +406,8 @@ sub check_and_add_entry
my $sentry = $conn->search($aentry->{dn}, "base", "(objectclass=*)", 0, ("*", "aci"));
if ($sentry) {
debug(3, "check_and_add_entry: Found entry " . $sentry->getDN() . "\n");
- if (! @ctypes) { # entry exists, and this is not a modify op
+ if ( (! @ctypes) or ("add" eq lc($ctypes[0])) ) { # entry exists, and this is not a modify op
+ # or add is explicitely specified
debug(3, "check_and_add_entry: skipping entry " . $sentry->getDN() . "\n");
return 1; # ignore - return success
}
ldap/admin/src/scripts/DSUtil.pm.in | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit 50c05b4be3792af3d3726a130984395b8059a762
Author: Ludwig Krispenz <lkrispen(a)redhat.com>
Date: Mon Aug 25 13:04:57 2014 +0200
Ticket 47877 - check_and_add_entry fails for changetype: add and existing entry
Bug Description: If an ldif file in the updates directory contains
changetype: add, the add fails if the entry
already exist
Fix Description: ignore existing entries also in case of
explicite changetype
https://fedorahosted.org/389/ticket/47877
Reviewed by: ?
diff --git a/ldap/admin/src/scripts/DSUtil.pm.in b/ldap/admin/src/scripts/DSUtil.pm.in
index d40d889..818fafa 100644
--- a/ldap/admin/src/scripts/DSUtil.pm.in
+++ b/ldap/admin/src/scripts/DSUtil.pm.in
@@ -406,7 +406,8 @@ sub check_and_add_entry
my $sentry = $conn->search($aentry->{dn}, "base", "(objectclass=*)", 0, ("*", "aci"));
if ($sentry) {
debug(3, "check_and_add_entry: Found entry " . $sentry->getDN() . "\n");
- if (! @ctypes) { # entry exists, and this is not a modify op
+ if ( (! @ctypes) or ("add" eq lc($ctypes[0])) ) { # entry exists, and this is not a modify op
+ # or add is explicitely specified
debug(3, "check_and_add_entry: skipping entry " . $sentry->getDN() . "\n");
return 1; # ignore - return success
}