summaryrefslogtreecommitdiff
path: root/server/nss/nsssrv_cmd.c
AgeCommit message (Collapse)AuthorFilesLines
2009-02-24Add PAM responderSumit Bose1-2237/+0
Also move responders under server/responder with shared code in server/responder/common Signed-off-by: Simo Sorce <ssorce@redhat.com>
2009-02-20Completely rework the nss interface to be able to use 2Simo Sorce1-369/+1301
types of domains: modern and legacy modern uses member/meberof, legacy uses memberUid for group memberships. Rework the proxy backend to use the legacy style as that's the format the data comes in (trying to convert would require too many transformations and increased the number of queries). Add support for fetching groups in nss. Add support for enumerating users and groups (requires to enable enumeration in config) both in nss and in the proxy provider. Remove confdb_get_domain_basedn() and substitute with generic calls in the nss init function. Store a domain structure in the btree not the basedn so that we can add enumeration flags. Also make sure NSS understand how to make multiple calls on enumerations, also make passing the domian parameter always mandatory, passing in domain=* is not valid anymore. This work fixes also a few memory, degfault, and logic bugs found while testing all nss functions (there are still some to fix that are less critical and much harder to find yet).
2009-02-12Adding sysdb_store_group_posix with unit testStephen Gallagher1-1/+1
2009-01-13Now that we have the domain name passed in, dispatch to the rightSimo Sorce1-3/+9
domain when possible.
2009-01-12Add checks to make sure we are getting a user from the correct domain.Simo Sorce1-0/+59
2009-01-12Regroup database rleated functions under db andSimo Sorce1-43/+41
rename everything with the sysdb suffix.
2009-01-12Adding parsing code to separate names from domains.Stephen Gallagher1-7/+45
Currently, if an invalid domain was specified, it will result in EINVAL being returned.
2009-01-11Use a unified base (temp. dc=sssd), for all domain including LOCAL.Simo Sorce1-57/+74
It makes no sense to have internal attribute names user configurable, remove that option and use macros internally. Also now always pass the domain name to all nss_ldb_* calls.
2009-01-11Add support for getpwuid in proxy backendSimo Sorce1-21/+70
2009-01-11Add caching behavior to nsssrv_cmd.c check cache first andSimo Sorce1-16/+72
dispatch to backends only if we have a cache miss.
2009-01-09Lots of little nasty bugs fixed.Simo Sorce1-10/+10
I was finally able to get a getpwnam() request go through sssd, hit the remote ldap server and get the answer back with 'getent passwd foo' Yupiee!
2009-01-08The code now successfully sends a getpwnam request to a remote LDAP server,Simo Sorce1-90/+114
and caches the result in LDAP. Still chasing a bug that does not let NSS known that the BE was successful. This makes NSS timeout the client and not return any results yet.
2009-01-06Add initial support to connect nss to the data provider as a frontendSimo Sorce1-0/+57
2009-01-06Change cli_ctx to include nss_ctx, not just select members of it.Simo Sorce1-14/+14
2008-10-20Add configuration database functions.Simo Sorce1-23/+28
Convert nss responder to use the confdb
2008-10-14 add code for initgroups callsSimo Sorce1-0/+82
2008-10-14Fix error in parsing multiple groupsSimo Sorce1-2/+219
Revert to use 'cn' for group names Implement getgrent()
2008-10-13Implement getgrgid()Simo Sorce1-1/+31
2008-10-12Implement getgrnam()Simo Sorce1-4/+176
2008-10-09Implement getpwent() supportSimo Sorce1-30/+264
2008-10-09Use classic errno instead of inventing our own, it's broad enough fro atm.Simo Sorce1-11/+11
2008-10-08Add getpwuid supportSimo Sorce1-5/+35
2008-10-08Use a utility function (to be shared with getpwent)Simo Sorce1-60/+75
2008-10-08First retrieval of a user (getpwnam only) from an actual ldb fileSimo Sorce1-24/+122
2008-10-06First working daemon that responds only to a getpwnam() request with fake dataSimo Sorce1-0/+118