Hello community, here is the log from the commit of package sssd for openSUSE:Factory checked in at Thu Apr 14 15:05:04 CEST 2011.
-------- --- sssd/sssd.changes 2011-03-29 17:12:36.000000000 +0200 +++ sssd/sssd.changes 2011-04-14 13:36:26.000000000 +0200 @@ -1,0 +2,15 @@ +Thu Apr 14 11:31:38 UTC 2011 - [email protected] + +- Update to 1.5.5 + * Fixes for several crash bugs + * LDAP group lookups will no longer abort if there is a + zero-length member attribute + * Add automatic fallback to 'cn' if the 'gecos' attribute does not + exist + +------------------------------------------------------------------- +Wed Mar 30 09:47:23 UTC 2011 - [email protected] + +- Should build in SLE-11-SP1 now + +------------------------------------------------------------------- calling whatdependson for head-i586 Old: ---- sssd-1.5.4.tar.bz2 New: ---- sssd-1.5.5.tar.bz2 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ sssd.spec ++++++ --- /var/tmp/diff_new_pack.3VP4PF/_old 2011-04-14 15:04:13.000000000 +0200 +++ /var/tmp/diff_new_pack.3VP4PF/_new 2011-04-14 15:04:13.000000000 +0200 @@ -18,7 +18,7 @@ Name: sssd -Version: 1.5.4 +Version: 1.5.5 Release: 1 Group: System/Daemons Summary: System Security Services Daemon @@ -34,6 +34,12 @@ %define pipepath %{sssdstatedir}/pipes %define pubconfpath %{sssdstatedir}/pubconf +# SLES11 doesn't know the python_* macros +%if %suse_version <= 1110 +%define python_sitelib %py_sitedir +%define python_sitearch %py_sitedir +%endif + ### Build Dependencies ### BuildRequires: autoconf BuildRequires: automake @@ -149,6 +155,18 @@ $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_ipa.la \ $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_simple.la \ $RPM_BUILD_ROOT/%{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.la + +%if %suse_version <= 1110 +# remove some unsupported languages, sssd does not contain +# translations for these anyway +rm -rf \ + $RPM_BUILD_ROOT/usr/share/locale/fa_IR \ + $RPM_BUILD_ROOT/usr/share/locale/ja_JP \ + $RPM_BUILD_ROOT/usr/share/locale/lt_LT \ + $RPM_BUILD_ROOT/usr/share/locale/ta_IN \ + $RPM_BUILD_ROOT/usr/share/locale/vi_VN +%endif + %find_lang %{name} --all-name %clean ++++++ sssd-1.5.4.tar.bz2 -> sssd-1.5.5.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sssd-1.5.4/configure new/sssd-1.5.5/configure --- old/sssd-1.5.4/configure 2011-03-24 19:56:34.000000000 +0100 +++ new/sssd-1.5.5/configure 2011-04-12 16:49:33.000000000 +0200 @@ -1,6 +1,6 @@ #! /bin/sh # Guess values for system-dependent variables and create Makefiles. -# Generated by GNU Autoconf 2.66 for sssd 1.5.4. +# Generated by GNU Autoconf 2.66 for sssd 1.5.5. # # Report bugs to <[email protected]>. # @@ -562,8 +562,8 @@ # Identity of this package. PACKAGE_NAME='sssd' PACKAGE_TARNAME='sssd' -PACKAGE_VERSION='1.5.4' -PACKAGE_STRING='sssd 1.5.4' +PACKAGE_VERSION='1.5.5' +PACKAGE_STRING='sssd 1.5.5' PACKAGE_BUGREPORT='[email protected]' PACKAGE_URL='' @@ -1474,7 +1474,7 @@ # Omit some internal or obsolete options to make the list less imposing. # This message is too long to be a string in the A/UX 3.1 sh. cat <<_ACEOF -\`configure' configures sssd 1.5.4 to adapt to many kinds of systems. +\`configure' configures sssd 1.5.5 to adapt to many kinds of systems. Usage: $0 [OPTION]... [VAR=VALUE]... @@ -1544,7 +1544,7 @@ if test -n "$ac_init_help"; then case $ac_init_help in - short | recursive ) echo "Configuration of sssd 1.5.4:";; + short | recursive ) echo "Configuration of sssd 1.5.5:";; esac cat <<\_ACEOF @@ -1760,7 +1760,7 @@ test -n "$ac_init_help" && exit $ac_status if $ac_init_version; then cat <<\_ACEOF -sssd configure 1.5.4 +sssd configure 1.5.5 generated by GNU Autoconf 2.66 Copyright (C) 2010 Free Software Foundation, Inc. @@ -2418,7 +2418,7 @@ This file contains any messages produced by compilers while running configure, to aid debugging if configure makes a mistake. -It was created by sssd $as_me 1.5.4, which was +It was created by sssd $as_me 1.5.5, which was generated by GNU Autoconf 2.66. Invocation command line was $ $0 $@ @@ -3238,7 +3238,7 @@ # Define the identity of the package. PACKAGE='sssd' - VERSION='1.5.4' + VERSION='1.5.5' cat >>confdefs.h <<_ACEOF @@ -18029,7 +18029,7 @@ # report actual input values of CONFIG_FILES etc. instead of their # values after options handling. ac_log=" -This file was extended by sssd $as_me 1.5.4, which was +This file was extended by sssd $as_me 1.5.5, which was generated by GNU Autoconf 2.66. Invocation command line was CONFIG_FILES = $CONFIG_FILES @@ -18095,7 +18095,7 @@ cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" ac_cs_version="\\ -sssd config.status 1.5.4 +sssd config.status 1.5.5 configured by $0, generated by GNU Autoconf 2.66, with options \\"\$ac_cs_config\\" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sssd-1.5.4/src/man/po/sssd-docs.pot new/sssd-1.5.5/src/man/po/sssd-docs.pot --- old/sssd-1.5.4/src/man/po/sssd-docs.pot 2011-03-24 19:54:25.000000000 +0100 +++ new/sssd-1.5.5/src/man/po/sssd-docs.pot 2011-04-12 16:48:35.000000000 +0200 @@ -6,9 +6,9 @@ #, fuzzy msgid "" msgstr "" -"Project-Id-Version: sssd-docs 1.5.4\n" +"Project-Id-Version: sssd-docs 1.5.5\n" "Report-Msgid-Bugs-To: [email protected]\n" -"POT-Creation-Date: 2011-03-24 14:46-0300\n" +"POT-Creation-Date: 2011-04-12 10:39-0300\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Language-Team: LANGUAGE <[email protected]>\n" diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sssd-1.5.4/src/providers/fail_over.c new/sssd-1.5.5/src/providers/fail_over.c --- old/sssd-1.5.4/src/providers/fail_over.c 2011-03-24 19:54:25.000000000 +0100 +++ new/sssd-1.5.5/src/providers/fail_over.c 2011-04-12 16:48:35.000000000 +0200 @@ -312,7 +312,7 @@ time_t timeout; if (server->common == NULL) - return SERVER_NAME_NOT_RESOLVED; + return SERVER_NAME_RESOLVED; DEBUG(7, ("Status of server '%s' is '%s'\n", SERVER_NAME(server), str_server_status(server->common->server_status))); @@ -1132,15 +1132,6 @@ } for (reply = reply_list; reply; reply = reply->next) { - ret = EOK; - DLIST_FOR_EACH(server, state->service->server_list) { - if (server->port == reply->port) { - ret = EEXIST; - break; - } - } - if (ret == EEXIST) continue; - server = create_fo_server(state->service, reply->host, reply->port, state->meta->user_data); if (!server) { diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sssd-1.5.4/src/providers/ldap/sdap.c new/sssd-1.5.5/src/providers/ldap/sdap.c --- old/sssd-1.5.4/src/providers/ldap/sdap.c 2011-03-24 19:54:25.000000000 +0100 +++ new/sssd-1.5.5/src/providers/ldap/sdap.c 2011-04-12 16:48:35.000000000 +0200 @@ -606,46 +606,48 @@ last_usn_name = opts->gen_map[SDAP_AT_LAST_USN].name; entry_usn_name = opts->gen_map[SDAP_AT_ENTRY_USN].name; - if (last_usn_name) { - ret = sysdb_attrs_get_string(rootdse, - last_usn_name, &last_usn_value); - if (ret != EOK) { - switch (ret) { - case ENOENT: - DEBUG(1, ("%s configured but not found in rootdse!\n", - opts->gen_map[SDAP_AT_LAST_USN].opt_name)); - break; - case ERANGE: - DEBUG(1, ("Multiple values of %s found in rootdse!\n", - opts->gen_map[SDAP_AT_LAST_USN].opt_name)); - break; - default: - DEBUG(1, ("Unkown error (%d) checking rootdse!\n", ret)); - } - } else { - if (!entry_usn_name) { - DEBUG(1, ("%s found in rootdse but %s is not set!\n", - last_usn_name, - opts->gen_map[SDAP_AT_ENTRY_USN].opt_name)); + if (rootdse) { + if (last_usn_name) { + ret = sysdb_attrs_get_string(rootdse, + last_usn_name, &last_usn_value); + if (ret != EOK) { + switch (ret) { + case ENOENT: + DEBUG(1, ("%s configured but not found in rootdse!\n", + opts->gen_map[SDAP_AT_LAST_USN].opt_name)); + break; + case ERANGE: + DEBUG(1, ("Multiple values of %s found in rootdse!\n", + opts->gen_map[SDAP_AT_LAST_USN].opt_name)); + break; + default: + DEBUG(1, ("Unkown error (%d) checking rootdse!\n", ret)); + } } else { - so->supports_usn = true; + if (!entry_usn_name) { + DEBUG(1, ("%s found in rootdse but %s is not set!\n", + last_usn_name, + opts->gen_map[SDAP_AT_ENTRY_USN].opt_name)); + } else { + so->supports_usn = true; + } } - } - } else { - /* no usn option configure, let's try to autodetect. */ - for (i = 0; usn_attrs[i].last_name; i++) { - ret = sysdb_attrs_get_string(rootdse, - usn_attrs[i].last_name, - &last_usn_value); - if (ret == EOK) { - /* Fixate discovered configuration */ - opts->gen_map[SDAP_AT_LAST_USN].name = - talloc_strdup(opts->gen_map, usn_attrs[i].last_name); - opts->gen_map[SDAP_AT_ENTRY_USN].name = - talloc_strdup(opts->gen_map, usn_attrs[i].entry_name); - so->supports_usn = true; - last_usn_name = usn_attrs[i].last_name; - break; + } else { + /* no usn option configure, let's try to autodetect. */ + for (i = 0; usn_attrs[i].last_name; i++) { + ret = sysdb_attrs_get_string(rootdse, + usn_attrs[i].last_name, + &last_usn_value); + if (ret == EOK) { + /* Fixate discovered configuration */ + opts->gen_map[SDAP_AT_LAST_USN].name = + talloc_strdup(opts->gen_map, usn_attrs[i].last_name); + opts->gen_map[SDAP_AT_ENTRY_USN].name = + talloc_strdup(opts->gen_map, usn_attrs[i].entry_name); + so->supports_usn = true; + last_usn_name = usn_attrs[i].last_name; + break; + } } } } diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sssd-1.5.4/src/providers/ldap/sdap_async_accounts.c new/sssd-1.5.5/src/providers/ldap/sdap_async_accounts.c --- old/sssd-1.5.4/src/providers/ldap/sdap_async_accounts.c 2011-03-24 19:54:25.000000000 +0100 +++ new/sssd-1.5.5/src/providers/ldap/sdap_async_accounts.c 2011-04-12 16:48:35.000000000 +0200 @@ -91,6 +91,15 @@ if (el->num_values == 0) gecos = NULL; else gecos = (const char *)el->values[0].data; + if (!gecos) { + /* Fall back to the user's full name */ + ret = sysdb_attrs_get_el( + attrs, + opts->user_map[SDAP_AT_USER_FULLNAME].sys_name, &el); + if (ret) goto fail; + if (el->num_values > 0) gecos = (const char *)el->values[0].data; + } + ret = sysdb_attrs_get_el(attrs, opts->user_map[SDAP_AT_USER_HOME].sys_name, &el); if (ret) goto fail; @@ -1231,10 +1240,15 @@ char *member_name; char *strdn; int ret; + errno_t sret; int i; for (i=0; i < memberel->num_values; i++) { member_name = (char *)memberel->values[i].data; + + /* We need to skip over zero-length usernames */ + if (member_name[0] == '\0') continue; + ret = sysdb_search_user_by_name(state, state->sysdb, state->dom, member_name, NULL, &msg); @@ -1282,12 +1296,22 @@ DEBUG(2, ("Cannot commit sysdb transaction\n")); goto done; } + in_transaction = false; } ret = EOK; memberel->values = talloc_steal(state->group, state->sysdb_dns->values); memberel->num_values = state->sysdb_dns->num_values; + done: + if (in_transaction) { + /* If the transaction is still active here, we need to cancel it */ + sret = sysdb_transaction_cancel(state->sysdb); + if (sret != EOK) { + DEBUG(0, ("Unable to cancel transaction! [%d][%s]\n", + sret, strerror(sret))); + } + } return ret; } @@ -1349,7 +1373,7 @@ sdap_process_missing_member_2307(struct sdap_process_group_state *state, char *username, bool *in_transaction) { - int ret; + int ret, sret; struct ldb_dn *dn; char* dn_string; @@ -1400,7 +1424,13 @@ return EOK; fail: if (*in_transaction) { - sysdb_transaction_cancel(state->sysdb); + sret = sysdb_transaction_cancel(state->sysdb); + if (sret == EOK) { + *in_transaction = false; + } else { + DEBUG(0, ("Unable to cancel transaction! [%d][%s]\n", + sret, strerror(sret))); + } } return ret; } @@ -3317,7 +3347,7 @@ if (ret != EOK && ret != ENOENT) { ret = EIO; goto error; - } else if (ret == ENOENT || count == 9) { + } else if (ret == ENOENT || count == 0) { if (ret == EOK) talloc_zfree(msgs); /* It wasn't found in the groups either diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sssd-1.5.4/src/providers/ldap/sdap_async_connection.c new/sssd-1.5.5/src/providers/ldap/sdap_async_connection.c --- old/sssd-1.5.4/src/providers/ldap/sdap_async_connection.c 2011-03-24 19:54:25.000000000 +0100 +++ new/sssd-1.5.5/src/providers/ldap/sdap_async_connection.c 2011-04-12 16:48:35.000000000 +0200 @@ -1261,6 +1261,7 @@ * work properly. */ state->use_rootdse = false; + rootdse = NULL; } else { @@ -1269,19 +1270,22 @@ } } - /* save rootdse data about supported features */ - ret = sdap_set_rootdse_supported_lists(rootdse, state->sh); - if (ret) { - tevent_req_error(req, ret); - return; - } + if (state->use_rootdse) { + /* save rootdse data about supported features */ + ret = sdap_set_rootdse_supported_lists(rootdse, state->sh); + if (ret) { + tevent_req_error(req, ret); + return; + } + + ret = sdap_set_config_options_with_rootdse(rootdse, state->sh, + state->opts); + if (ret) { + DEBUG(1, ("sdap_set_config_options_with_rootdse failed.\n")); + tevent_req_error(req, ret); + return; + } - ret = sdap_set_config_options_with_rootdse(rootdse, state->sh, - state->opts); - if (ret) { - DEBUG(1, ("sdap_set_config_options_with_rootdse failed.\n")); - tevent_req_error(req, ret); - return; } ret = sdap_get_server_opts_from_rootdse(state, diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sssd-1.5.4/src/resolv/ares/ares_parse_srv_reply.c new/sssd-1.5.5/src/resolv/ares/ares_parse_srv_reply.c --- old/sssd-1.5.4/src/resolv/ares/ares_parse_srv_reply.c 2011-03-24 19:54:25.000000000 +0100 +++ new/sssd-1.5.5/src/resolv/ares/ares_parse_srv_reply.c 2011-04-12 16:48:35.000000000 +0200 @@ -143,11 +143,11 @@ srv_last = srv_curr; vptr = aptr; - srv_curr->priority = ntohs (*((const unsigned short *)vptr)); + srv_curr->priority = DNS__16BIT(vptr); vptr += sizeof(const unsigned short); - srv_curr->weight = ntohs (*((const unsigned short *)vptr)); + srv_curr->weight = DNS__16BIT(vptr); vptr += sizeof(const unsigned short); - srv_curr->port = ntohs (*((const unsigned short *)vptr)); + srv_curr->port = DNS__16BIT(vptr); vptr += sizeof(const unsigned short); status = ares_expand_name (vptr, abuf, alen, &srv_curr->host, &len); diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/sssd-1.5.4/version.m4 new/sssd-1.5.5/version.m4 --- old/sssd-1.5.4/version.m4 2011-03-24 19:54:25.000000000 +0100 +++ new/sssd-1.5.5/version.m4 2011-04-12 16:48:35.000000000 +0200 @@ -1,5 +1,5 @@ # Primary version number -m4_define([VERSION_NUMBER], [1.5.4]) +m4_define([VERSION_NUMBER], [1.5.5]) # If the PRERELEASE_VERSION_NUMBER is set, we'll append # it to the release tag when creating an RPM or SRPM ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Remember to have fun... -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
