summaryrefslogtreecommitdiff
path: root/server
AgeCommit message (Collapse)AuthorFilesLines
2009-03-09Always pass sss_domain_info to sysdb functions.Simo Sorce6-95/+60
2009-03-09Move MPG checks within sysdb.Simo Sorce6-138/+199
This allows to perform checks and modifications in one transaction. Uses configuration stored in confdb to determins if a domain uses MPGs.
2009-03-09Do not duplicate attribute names macros.Simo Sorce4-34/+31
Also shorten names oh other user attributes.
2009-03-09make openldap the only used LDAP librarySumit Bose2-41/+27
2009-03-09typo, changed initrd to initSumit Bose3-12/+12
2009-03-09sss_groupmodJakub Hrozek3-1/+288
2009-03-09use fixed paths to sockets to make sure clients and server are using the sameSumit Bose7-59/+80
2009-03-09Make MPG a configurable option for the domain.Simo Sorce2-0/+12
2009-03-09Improve error handling and replies in the InfoPipeStephen Gallagher3-48/+62
When detecting an internal error in the InfoPipe, make a best- attempt at sending an error message back to the calling program, instead of simply leaving the client to wait for the timeout.
2009-03-09Implement SetGroupGID in the InfoPipeStephen Gallagher6-3/+289
2009-03-09Implement AddGroupMembers and RemoveGroupMembers in the InfoPipeStephen Gallagher2-16/+263
2009-03-09sss_usermodJakub Hrozek6-45/+415
Move parse_groups into tools_utils
2009-03-09Fix SIGSEGV in InfoPipe startupStephen Gallagher1-2/+4
If the user that starts InfoPipe is not permitted by the system bus to request the InfoPipe name, the sssd_info process would segfault, since the destructor for the connection object was called before it was completely created. I have moved the initialization of the destructor to later in the setup routine.
2009-03-09Fix parameter parsing and adding to groups in useraddJakub Hrozek1-4/+10
2009-03-08Use LOCAL for the default domain in confdb_init_dbStephen Gallagher1-0/+4
2009-03-08Fix initialization problemsJakub Hrozek4-11/+12
Init tools ctx in groupadd before copying its value
2009-03-07sss_groupdel, delete by DN in sss_userdelJakub Hrozek4-74/+181
Don't convert username->uid in userdel, use DN
2009-03-07Fix race condition with initial sysdb creationStephen Gallagher1-0/+14
When the sysdb LDB file does not exist on the system, the first attempt to connect to it will invoke a creation routine. However, both the NSS and the InfoPipe are started in parallel by the monitor, resulting in a race condition as they both try to initialize the sysdb. The easiest fix for this is to simply have the monitor create the sysdb before it launches NSS and InfoPipe.
2009-03-06sss_groupaddJakub Hrozek3-1/+176
2009-03-06Implement DeleteGroup in InfoPipeStephen Gallagher2-2/+149
2009-03-06Implement CreateGroup in InfoPipeStephen Gallagher2-4/+193
Also fixed two minor bugs in CreateUser
2009-03-06Specfile changes related to package review, package initscript Call ldconfigJakub Hrozek4-0/+126
2009-03-06sss_userdelJakub Hrozek3-2/+235
Also install tools into /sbin, own them in specfile
2009-03-06Implement DeleteUser in the InfoPipeStephen Gallagher1-2/+166
2009-03-06Add sbus_reply_internal_error() feature to sbus_message_handler()Stephen Gallagher1-2/+14
If an SBUS function returns an error code, we'll immediately return an error reply to the client stating "Internal Error" instead of ignoring the request and forcing the client to wait for a timeout.
2009-03-06Add infp_req_init() function to simplify method setupStephen Gallagher3-64/+43
2009-03-06Implement CreateUser in InfoPipeStephen Gallagher5-9/+223
Changed the order of the arguments to CreateUser in the Introspection XML to match the other functions (domain belongs second on the list) A few other minor fixes as well: Fixed a typo in SYSDB_GETCACHED_FILTER and sysdb_transaction_end(). Added missing error handling in infp_do_user_set_uid().
2009-03-06Remove obsolete commentSimo Sorce1-3/+0
2009-03-06Add userspace tools to manipulate accounts.Simo Sorce6-1/+654
The first functional command is sss_useradd (Name is temporary, while looking for a better one)
2009-03-06added PAM default configuration to confdb_init_dbSumit Bose2-7/+36
set default value of enumerate in LOCAL domain to 1 added checks to talloc_asprintf return values fixed InfoPipe defaults
2009-03-06Fix reporting non-default users.Simo Sorce3-301/+318
We need to add the domain when users are not part of the default domain, otherwise name conflicts may happen.
2009-03-06minor fixes for the build processSumit Bose3-1/+10
enable --without-tests
2009-03-05Remove _PW_ and _GR_ from SYSDB_ definesSimo Sorce8-82/+78
Also unify SYSDB_PW_NAME and SYSDB_GR_NAME in SYSDB_NAME and make it "name"
2009-03-05Implement GetCachedUsers in the InfoPipeStephen Gallagher4-10/+205
This function allows a caller to retrieve a list of users who have logged in on the system, specifying an optional minimum last login time to trim the list. I modified sysdb_enumpwent to accept an optional search argument. GetCachedUsers takes advantage of this argument to limit the search by the last login time. I also found and fixed a few additional low-memory conditions around D-BUS message replies.
2009-03-05Add functions to add regular users and groupsSimo Sorce3-27/+445
Calulates next id automatically if uid/gid are not specified. Fixes to sysdb_get_next_available_id. Add tests to create users and groups through the new functions.
2009-03-05Adding support for SetUserUID to the InfoPipeStephen Gallagher4-7/+159
The InfoPipe interface Set_YouReallyDoNotWantToUseThisFunction_UserUID1 is now available. I also fixed a memory leak in SetUserAttributes and modified the prototype for infp_get_permissions to make it more clear that the first argument is the caller's username, not the username being checked for permission.
2009-03-05added password reset by rootSumit Bose1-0/+5
2009-03-05added a privileged pipeSumit Bose6-8/+137
2009-03-04Add internal min/max/next id management fucntionsSimo Sorce5-15/+336
Retrieve minID and maxID from domain configuration so that lower and upper bounds can be set per domain. Add function that keeps track of the next available id, increments and returns it on requests, avoiding collisions with existing ids.
2009-03-04Add enumeration backout period.Simo Sorce3-2/+39
If an enumeration has been requested recently enough, force the nss responder to read from the cache and not go out to each backend and do slow network operations. This greatly improves performances if enumerations are used often. Currently the balcout period is harcoded to 2 min, we will need to make it a configurable option.
2009-03-04Implement SetUserAttributes in the InfoPipeStephen Gallagher7-17/+573
SetUserAttributes is now available for use in the Infopipe. I also reorganized a few of the internal InfoPipe objects to reduce code duplication. One very simple test is included in this checkin to validate that the parser is working.
2009-03-04Simplify some aspects of pam_LOCAL_domainSimo Sorce3-138/+87
Use only one context (the local request) for all functions. Use new helper function in sysdb to set numbers as sysdb_attrs values. Do not use pam_status to report internal errors, use an error variable and check it only when we finally reply. Use sysdb_error_to_errno() to convert and ldb error to errno. Do not free every single buffer allocated, they are all appended to the local request and will be automatically freed once the request is finished.
2009-03-04Improve sysdbSimo Sorce4-33/+87
Add comments in header files to better explain interfaces and intended usage. Expose function to convert from ldb errors to errnos. Add sysdb_attrs helper to add a long integer as a value.
2009-03-04Fixing memory leak in GetUserAttributesStephen Gallagher1-1/+2
2009-03-03replaced pure ldb calls with sysdb callsSumit Bose3-120/+309
2009-03-03Provide sysdb_set_user_attr() functions.Simo Sorce5-4/+157
Provide also helper functions to build struct sysdb_attrs. Also fix sysdb_get_user_attr() to have a consistent interface as all other functions.
2009-03-02Unify pwd_search and user_searchSimo Sorce1-35/+11
2009-03-02Do not steal memory in btreemaps.Simo Sorce2-43/+24
Just make sure that the memory passed in is either static or allocated on the same memory context that is parent of the btreemap.
2009-03-02Support byte arrays in InfoPipe GetUserAttributesStephen Gallagher1-27/+80
We now have support for reading binary blobs such as userpic from the sysdb and returning it to an InfoPipe consumer as a byte array. I also cleaned up some code in create_getattr_result_map to make it easier to read.
2009-03-02Make tests configurableJakub Hrozek3-3/+25