5e2142b66589e5e50cb404fc972ed5418bbaa772 |
|
07-Sep-2016 |
Michal Židek <mzidek@redhat.com> |
TOOLS: use internal fqdn for DN
Use internal fqdn when creating sysdb group dn.
Resolves:
https://fedorahosted.org/sssd/ticket/3178
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
6be723a089a1e07a1cd19b4fa53fd142c13f0c69 |
|
07-Sep-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
TOOLS: Fix a typo in groupadd()
Resolves:
https://fedorahosted.org/sssd/ticket/3173
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
f9d3aec54d19a771a6eafe09ba6d445cc094bfae |
|
12-Jul-2016 |
Lukas Slebodnik <lslebodn@redhat.com> |
TOOLS: Prevent dereference of null pointer
VAR_CHECK is called with (var, EOK, ...)
EOK would be returned in case of "var != EOK"
and output argument _attrs would not be initialized.
Therefore there could be dereference of null pointer
after calling function usermod_build_attrs.
Reviewed-by: Pavel Březina <pbrezina@redhat.com> |
bd524624bab2ea89f17fc84bc873ea0eb6ca7d20 |
|
07-Jul-2016 |
Jakub Hrozek <jhrozek@redhat.com> |
TOOLS: Make the local domain operate on FQDNs
Normally we convert the names from short to internal format on input.
For the local domain tools, we can consider the sss_sync_ops an input
interface, to avoid having to convert the name in each tool and
interface separately.
Reviewed-by: Sumit Bose <sbose@redhat.com> |
691387507c256e49845d4ca2a7bd558a2b41e4bb |
|
05-Nov-2015 |
Petr Cech <pcech@redhat.com> |
TOOLS: DFL_UMASK --> SSS_DFL_UMASK
We could use SSS_DFL_UMASK instead of DFL_UMASK.
Resolves:
https://fedorahosted.org/sssd/ticket/2424
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
87f8bee53ee1b4ca87b602ff8536bc5fd5b5b595 |
|
17-Mar-2015 |
Lukas Slebodnik <lslebodn@redhat.com> |
Add missing new lines to debug messages
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com> |
c9f94bc64ed7dfbaef5a520bfc4e911c5d0ad6fe |
|
18-Jun-2014 |
Sumit Bose <sbose@redhat.com> |
Fix return value of attr_name_val_split() and attr_op()
Reviewed-by: Lukáš Slebodník <lslebodn@redhat.com> |
d10fb882aa4a30f78493b7162f482bb0f17d3ff5 |
|
01-Jun-2014 |
Jakub Hrozek <jhrozek@redhat.com> |
TOOLS: Allow adding and modifying custom attributes with sss_usermod
https://fedorahosted.org/sssd/ticket/2182
Adds three new options to the sss_usermod tool:
--addattr
--setattr
--delattr
The syntax is attrname=val1,val2, For example:
sss_usermod --addattr=phone-123-456 tuser
The operations are performed in the order of add, mod, del.
Reviewed-by: Michal Židek <mzidek@redhat.com> |
a842b7eb49fd640d66aeaec26c05166ef55784f8 |
|
26-Feb-2014 |
Lukas Slebodnik <lslebodn@redhat.com> |
Remove unused structures.
Reported by: cppcheck
'struct py_sss_transaction', 'struct resolve_get_domain_stat',
'struct sync_op_res' were defined in implementation modules, but they were not
used anywhere.
Reviewed-by: Michal Žídek <mzidek@redhat.com> |
83bf46f4066e3d5e838a32357c201de9bd6ecdfd |
|
12-Feb-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
Update DEBUG* invocations to use new levels
Use a script to update DEBUG* macro invocations, which use literal
numbers for levels, to use bitmask macros instead:
grep -rl --include '*.[hc]' DEBUG . |
while read f; do
mv "$f"{,.orig}
perl -e 'use strict;
use File::Slurp;
my @map=qw"
SSSDBG_FATAL_FAILURE
SSSDBG_CRIT_FAILURE
SSSDBG_OP_FAILURE
SSSDBG_MINOR_FAILURE
SSSDBG_CONF_SETTINGS
SSSDBG_FUNC_DATA
SSSDBG_TRACE_FUNC
SSSDBG_TRACE_LIBS
SSSDBG_TRACE_INTERNAL
SSSDBG_TRACE_ALL
";
my $text=read_file(\*STDIN);
my $repl;
$text=~s/
^
(
.*
\b
(DEBUG|DEBUG_PAM_DATA|DEBUG_GR_MEM)
\s*
\(\s*
)(
[0-9]
)(
\s*,
)
(
\s*
)
(
.*
)
$
/
$repl = $1.$map[$3].$4.$5.$6,
length($repl) <= 80
? $repl
: $1.$map[$3].$4."\n".(" " x length($1)).$6
/xmge;
print $text;
' < "$f.orig" > "$f"
rm "$f.orig"
done
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com> |
a3c8390d19593b1e5277d95bfb4ab206d4785150 |
|
12-Feb-2014 |
Nikolai Kondrashov <Nikolai.Kondrashov@redhat.com> |
Make DEBUG macro invocations variadic
Use a script to update DEBUG macro invocations to use it as a variadic
macro, supplying format string and its arguments directly, instead of
wrapping them in parens.
This script was used to update the code:
grep -rwl --include '*.[hc]' DEBUG . |
while read f; do
mv "$f"{,.orig}
perl -e \
'use strict;
use File::Slurp;
my $text=read_file(\*STDIN);
$text=~s#(\bDEBUG\s*\([^(]+)\((.*?)\)\s*\)\s*;#$1$2);#gs;
print $text;' < "$f.orig" > "$f"
rm "$f.orig"
done
Reviewed-by: Jakub Hrozek <jhrozek@redhat.com>
Reviewed-by: Stephen Gallagher <sgallagh@redhat.com>
Reviewed-by: Simo Sorce <simo@redhat.com> |
28ce9dab8537870210761b15f037addd1de65e02 |
|
27-Nov-2013 |
Lukas Slebodnik <lslebodn@redhat.com> |
Remove unused parameter from groupadd |
b76531423695f649f1907422d9ecbb8c14143999 |
|
27-Nov-2013 |
Lukas Slebodnik <lslebodn@redhat.com> |
Remove unused parameter from useradd |
397af5a7fa1db08b8b24dbd67d350b21263035a8 |
|
27-Nov-2013 |
Lukas Slebodnik <lslebodn@redhat.com> |
Remove unused parameter from groupmod |
a117f51165005d880af58d017e6e7e1881b54ddd |
|
27-Nov-2013 |
Lukas Slebodnik <lslebodn@redhat.com> |
Remove unused parameter from usermod |
11ab7f35db65cd647d0d90d7ec3180f352bfe4e8 |
|
27-Nov-2013 |
Lukas Slebodnik <lslebodn@redhat.com> |
Remove unused parameter from mod_groups_member |
e2ac9be4f293b96f3c8992f1171e44bc1da5cfca |
|
15-Nov-2013 |
Michal Zidek <mzidek@redhat.com> |
SYSDB: Drop redundant sysdb_ctx parameter from sysdb.c |
d115f40c7a3999e3cbe705a2ff9cf0fd493f80fb |
|
15-Nov-2013 |
Michal Zidek <mzidek@redhat.com> |
SYSDB: Drop the sysdb_ctx parameter - module sysdb_ops (part 2) |
4c08db0fb0dda3d27b1184248ca5c800d7ce23f0 |
|
15-Nov-2013 |
Michal Zidek <mzidek@redhat.com> |
SYSDB: Drop the sysdb_ctx parameter - module sysdb_ops (part 1) |
b3292840ebaa747a9fd596ff47cc5d18198361d0 |
|
15-Nov-2013 |
Michal Zidek <mzidek@redhat.com> |
SYSDB: Drop the sysdb_ctx parameter from the sysdb_search module |
5c1135221ff3ea9132b6ebf073f2dcae88b73b3f |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain arguments to sysdb_add_group functions. |
7c26e3568d0d789067feef945086dff367408a1c |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain argument to sysdb_add_user() |
20d2466dbce2bb950813e3f739bc40b511020efb |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain argument to sysdb_set_group_attr() |
3f94d6718d44185137e13b6d326dfd63e8dc61c6 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Add domain argument to sysdb_set_user_attr() |
58fd3aa25c5292bc67432647ab7e5059439fcc6d |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Pass domain to sysdb_get<pw/gr>nam() functions
Also allows us to remove sysdb_subdom_get<pw/gr>nam() wrappers and restore
fqnames proper value in subdomains, by testing for a parent domain being
present or not. |
52c72ae8587d8d47393a891ccd4ef06bd4bef856 |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Make sysdb_group_dn() require a domain explictly. |
3613cc1eba1337256a2d06ba7a84532156139ccd |
|
15-Jan-2013 |
Simo Sorce <simo@redhat.com> |
Make sysdb_user_dn() require a domain explictly. |
8455d5ab61184e0d126fc074a9ce6e98391eb909 |
|
20-Nov-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
LDAP: Only convert direct parents' ghost attribute to member
https://fedorahosted.org/sssd/ticket/1612
This patch changes the handling of ghost attributes when saving the
actual user entry. Instead of always linking all groups that contained
the ghost attribute with the new user entry, the original member
attributes are now saved in the group object and the user entry is only
linked with its direct parents.
As the member attribute is compared against the originalDN of the user,
if either the originalDN or the originalMember attributes are missing,
the user object is linked with all the groups as a fallback.
The original member attributes are only saved if the LDAP schema
supports nesting. |
95f5e7963a36b7b68859ce91ae4b232088bbaa09 |
|
24-Sep-2012 |
Jakub Hrozek <jhrozek@redhat.com> |
SYSDB: Remove unnecessary domain parameter from several sysdb calls
The domain can be read from the sysdb object. Removing the domain string
makes the API more self-contained. |
3bea01f01d76e1e95a8239c0d3f67073992136a1 |
|
22-Feb-2012 |
Jan Zeleny <jzeleny@redhat.com> |
Don't give memory context in confdb where not needed |
ac3a1f3da772cf101101c31675c63dc3549b21b5 |
|
22-Nov-2011 |
Jakub Hrozek <jhrozek@redhat.com> |
Cleanup: Remove unused parameters |
684d1b48b5582a1bf7812b8c3c663592dc6dfed9 |
|
13-Oct-2011 |
Pavel Březina <pbrezina@redhat.com> |
SysDB commands that save lastUpdate allows this value to be passed in
https://fedorahosted.org/sssd/ticket/836 |
e79d23932ef9d52cf4eb32ddec2d0a9b3af9a9eb |
|
15-Aug-2011 |
Jan Zeleny <jzeleny@redhat.com> |
sysdb refactoring: memory context deleted
This patch deletes memory context parameter in those places in sysdb
where it is not necessary. The code using modified functions has been
updated. Tests updated as well. |
8a1738f9379a1b8fb5c95c3df649e014ff5a1434 |
|
15-Aug-2011 |
Jan Zeleny <jzeleny@redhat.com> |
sysdb refactoring: deleted domain variables in sysdb API
The patch also updates code using modified functions. Tests have also
been adjusted. |
04f0cf2ce6140bcb3b38dccd4f9e44858b53a4fd |
|
05-Jan-2011 |
Stephen Gallagher <sgallagh@redhat.com> |
Fix boolean comparison against string
Coverity 10082 and 100083 |
b830ab156f032e2a8823f1365da2ed6801427e8f |
|
30-Apr-2010 |
Jakub Hrozek <jhrozek@redhat.com> |
Silence warnings with -O2 |
d86fc9163127f7c5bd0c3af950fcddff7911867f |
|
12-Apr-2010 |
Simo Sorce <ssorce@redhat.com> |
tools: remove creation of event_context
Since the sysdb is now synchronous and creates its own event context we
don't need an explicit event context anymore in the tools. |
e5e32021c23f3726d68ee756e8e3de48b3214063 |
|
12-Apr-2010 |
Simo Sorce <ssorce@redhat.com> |
sysdb: remove remaining traces of sysdb_handle |
25465215742b9c78566d44cd06a886c4a4e43ffa |
|
12-Apr-2010 |
Simo Sorce <ssorce@redhat.com> |
sysdb: convert sysdb_getgrnam |
7ffaa2afb9e03a6f0b9c602c0f03b2074ea33eac |
|
12-Apr-2010 |
Simo Sorce <ssorce@redhat.com> |
sysdb: convert sysdb_getpwnam |
40bb1ddf0a3f69922466b2b99bcdaf7746fc81ba |
|
12-Apr-2010 |
Simo Sorce <ssorce@redhat.com> |
Use the sysdb synchronous transaction functions |
02a9d8a40dc3a5fd671ede0e4fa7dac5178fbc75 |
|
12-Apr-2010 |
Simo Sorce <ssorce@redhat.com> |
sysdb: convert sysdb_mod/add/remove_group_member |
ace612f5998f619ba41828d2ba4b80d02a965162 |
|
12-Apr-2010 |
Simo Sorce <ssorce@redhat.com> |
sysdb: convert sysdb_store/add(_basic)_group |
a6ecb562529430be5a4cd6e8cdd541a383c9a2e1 |
|
12-Apr-2010 |
Simo Sorce <ssorce@redhat.com> |
sysdb: convert sysdb_store/add(_basic)_user |
506d34d2e84268c6589f613de0cb3992b8fb87a6 |
|
12-Apr-2010 |
Simo Sorce <ssorce@redhat.com> |
sysdb: convert sysdb_set_entry/user/group_attr |
cae9c9fbdebc3f6a4c390a20e75447217439dff7 |
|
12-Apr-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
sysdb: convert sysdb_delete_entry |
e45fcd9e478300e6be8a49402fcea81fce623804 |
|
15-Mar-2010 |
Jakub Hrozek <jhrozek@redhat.com> |
Flush NSCD cache after modifying local database
Fixes: #221 |
1c48b5a62f73234ed26bb20f0ab345ab61cda0ab |
|
18-Feb-2010 |
Stephen Gallagher <sgallagh@redhat.com> |
Rename server/ directory to src/
Also update BUILD.txt |