[PATCH] MEMBEROF: Do not add the ghost attribute to self
by Jakub Hrozek
I found this ghost users bug when working on #1652.
When the ghost attribute is added, the memberof plugin attempts to add
it to self, which is wrong. I think it's simply a copy-n-paste error
from the similar memberuid operation.
The result of the bug were LDB failures. The patch also contains unit
test.
11 years, 5 months
[PATCHES] Fix build warnings
by Ondrej Kos
While testing the build in FIPS mode, i noticed these warnings (which
occur in normal mode too):
[PATCH 1/2]: [PATCH] LDAP: fix uninitialized variable
src/providers/ldap/sdap_async_users.c:372:9: warning: 'orig_dn' may be
used uninitialized in this function [-Wmaybe-uninitialized]
[PATCH 2/2]: [PATCH] KRB: fix const warning
src/providers/krb5/krb5_child.c: In function ‘changepw_child’:
src/providers/krb5/krb5_child.c:1117:41: warning: passing argument 8 of
‘krb5_get_init_creds_password’ discards ‘const’ qualifier from pointer
target type [enabled by default]
In file included from ./src/util/sss_krb5.h:30:0,
from src/providers/krb5/krb5_child.c:33:
/usr/include/krb5/krb5.h:6686:1: note: expected ‘char *’ but argument is
of type ‘const char *’
src/providers/krb5/krb5_child.c: In function ‘tgt_req_child’:
src/providers/krb5/krb5_child.c:1269:45: warning: passing argument 8 of
‘krb5_get_init_creds_password’ discards ‘const’ qualifier from pointer
target type [enabled by default]
In file included from ./src/util/sss_krb5.h:30:0,
from src/providers/krb5/krb5_child.c:33:
/usr/include/krb5/krb5.h:6686:1: note: expected ‘char *’ but argument is
of type ‘const char *’
patches are attached
Ondra
--
Ondrej Kos
Associate Software Engineer
Identity Management
Red Hat Czech
phone: +420-532-294-558
cell: +420-736-417-909
ext: 82-62558
loc: 1013 Brno 1 office
irc: okos @ #brno
11 years, 5 months