summaryrefslogtreecommitdiff
path: root/server
AgeCommit message (Collapse)AuthorFilesLines
2009-03-27Fix potential segfault if dp_ctx is still NULL.Simo Sorce2-2/+18
May happen at startup if, for some reason dp is very slow to start and we receive a request before a reconnection is rescheduled in the responder dp reconnection code. This shouldn't happen normally so make it clear with a debug statement.
2009-03-27Make nsssrv use the common responder functionsSimo Sorce10-734/+221
Make nss_ctx a private pointer of the common resp_ctx Use sss_process_init and remove all duplicate functions from nsssrv.c
2009-03-27Fix uninitailized pointer and cut&paste errorSimo Sorce1-1/+5
The structure we copy the domain pointerr on is not zero when allocated. We need to zero it ourselves or we get segfaults later on. A cut&paste error caused us to call the wrong getpw function.
2009-03-27Fix bug where services restarted by the monitor would be pinged more than ↵Stephen Gallagher1-0/+8
once per cycle
2009-03-26Enable autoreconnection to the Data Provider in PAMStephen Gallagher3-4/+67
2009-03-26Refactor nss_ctx to resp_ctx in respondersStephen Gallagher7-109/+109
2009-03-24Fix buildSimo Sorce2-1/+4
forgot to commit a few changes
2009-03-20Retrieve some options from confdbSimo Sorce3-11/+46
This fixes some old 'Fixme's :)
2009-03-20Enhance server_setupSimo Sorce10-10/+36
Now it can load from scratch default configuration that is valid for all daemons. First thing, make it possible for each daemon/provider to set its own debug level in its configuration entry.
2009-03-20Simplify default configurationSimo Sorce4-122/+157
Make confdb load a base ldif like sysdb to initialize the db, makes it simpler to understand at first sight what is the default configuration. Make the parameter "command" optional. Derive the default command from available information. Make the debug level a global by default so that enabling debug for all components is as easy as passing just -d X to the sssd binary.
2009-03-20Add better error reporting to confdb functionsSimo Sorce1-29/+63
2009-03-20Avoid nested events in confdbSimo Sorce1-1/+15
2009-03-20added response type PAM_ENV_ITEM and integrated response data into dbus messagesSumit Bose2-19/+98
2009-03-20Add reconnection logic to the SBUSStephen Gallagher2-1/+206
Any client of the SBUS that wants to implement automatic reconnection may now call sbus_reconnect_init to set it up. The clients will need to set up a callback to handle the result of the reconnection and (in the case of a successful reconnection) readd the method handlers to the connection context.
2009-03-20Enable autoreconnection of Data Provider Backends to the Data ProviderStephen Gallagher4-7/+124
2009-03-19Remove references to FreeIPA from D-BUS interfacesStephen Gallagher8-37/+37
Per discussion with the desktop team, using the org.freedesktop interface name will simplify adoption, as potential users won't feel like they're pulling in a FreeIPA dependency.
2009-03-19use pam_data as main data structure for dbus communicationSumit Bose8-135/+116
2009-03-18Fix getgrent and getpwent callsSimo Sorce1-2/+6
When I converted from using just the domain name to passing down the info structure I goofed how to test if we were willing to attach the local domain to the user/group names or not.
2009-03-18Fix segfault error caused by a double freeSimo Sorce1-178/+118
In delete_callback we were freeing rep after having called return_done() This caused a double free becuse rep is already freed as child of the request when return_done calles the callback. To avoid future errors like this convert return_error and return_done into functions and make them always be the last call of the function and call them as part of the function return.
2009-03-18Enable MPGs and user/group enumeration on the LOCAL domain by defaultStephen Gallagher1-3/+5
2009-03-13append CFLAGS environment variable to Makefiles CFLAGSSumit Bose1-2/+2
2009-03-13Better error reporting for pidfile()Simo Sorce1-7/+11
This should help understanding what's going on if the server fails to create a pid file.
2009-03-13Implement Negative cache for NSSSimo Sorce6-4/+572
As for positive caches, negative caches are implement for all queries except enumerations. Also set the correct requires in sssd.spec as we now depend directly on tdb as well.
2009-03-13Fix makefilesSimo Sorce3-27/+30
Make so that definitions in the code and install paths actually match
2009-03-11Fix calling setsid and resolve the sssd signal bugSimo Sorce1-11/+1
For some reason we were not testing for HAVE_SETSID in configure therefore the setsid() function was never called. This failed to set the process group after the first fork. Remove ifdef because we depend on setsid() anyway, so if it is not available on some platform it is better to fail rather then silently succeed but not have the right process group set up.
2009-03-11remove an unnecessary call to confdbSumit Bose1-8/+4
2009-03-11Fix copy-paste error in InfoPipe CreateUserStephen Gallagher1-2/+11
Also add accidentally-omitted loginShell parameter.
2009-03-10Remove unexisting left over headerSimo Sorce1-1/+1
Also bump up the version as this error prevented a successful build of 0.2.0
2009-03-10Bump up to version 0.2.0Simo Sorce1-1/+1
Change version after changes in protocol and MPG behavior.
2009-03-10Fix returning user with missing optional attributes.Simo Sorce4-15/+24
Gecos, homedir and shell are optional, fix the responder not to refuse to return the user completely if they are missing, replace an empty homedir with "/". Also fix fullname vs gecos, and always return gecos for NSS data. On user creation set gecos to the same value as the user Full Name, to help populate the gecos field with data that makes sense.
2009-03-10Hide uid and gid options in usermod and groupmodJakub Hrozek2-3/+3
2009-03-10Correct use of chkconfig in initscript and specfileJakub Hrozek1-1/+1
Review issues in specfile
2009-03-10added generic PAM return messages and a false login delaySumit Bose6-65/+151
2009-03-10Treat uids and gids as 32 bit numbers not 64Simo Sorce1-23/+21
In the nss communication protocol we were treating uids and gids as 64 bit values, but uids and gids are really u32 values, change the protocol to reflect the real size.
2009-03-10If a domain is MPG enabled return users a groupsSimo Sorce2-15/+73
Turn user entries to Magic Private Groups when groups are quesried.
2009-03-10Fix bugs in functions dealing with groupsSimo Sorce1-0/+6
Fix infinite loop within initgr functions. Fix min length check copy&paste error, was filtering valid groups if the name was short enough and the group had no members.
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