From 29d7ea102fef895a7912124292e21f47d3034136 Mon Sep 17 00:00:00 2001 From: Stephen Gallagher Date: Fri, 23 Oct 2009 20:03:33 +0000 Subject: [PATCH] =?UTF-8?q?Dmitri=20Pal=20(10):=20COLLECTION=20Adding=20it?= =?UTF-8?q?em=20comparison=20and=20sorting=20COLLECTION=20Realigning=20col?= =?UTF-8?q?lection=20code=20COLLECTION=20Making=20iterations=20pinnable=20?= =?UTF-8?q?COLLECTION=20Enhancing=20hashing=20and=20iteration=20functions?= =?UTF-8?q?=20ELAPI=20Event=20resolver=20ELAPI=20Resolving=20message=20att?= =?UTF-8?q?ribute=20ELAPI=20Fixing=20warnings=20in=20the=20example=20ELAPI?= =?UTF-8?q?=20Rename=20variables=20and=20functions=20not=20to=20use=20word?= =?UTF-8?q?=20template=20ELAPI=20Fixed=20the=20host=20name=20resolution=20?= =?UTF-8?q?ELAPI=20Compatibility=20code=20for=20getifaddr()=20Jakub=20Hroz?= =?UTF-8?q?ek=20(3):=20Fix=20python=20sync=20operations=20and=20mem=20hier?= =?UTF-8?q?archy=20Fix=20error=20messages=20in=20tools=20User=20home=20dir?= =?UTF-8?q?ectories=20management=20Martin=20Nagy=20(7):=20Use=20correct=20?= =?UTF-8?q?talloc=20context=20in=20sss=5Fnames=5Finit()=20Fix=20potential?= =?UTF-8?q?=20memory=20leaks=20in=20the=20data=20provider=20Use=20talloc?= =?UTF-8?q?=5Fget=5Ftype()=20for=20type=20safety=20Use=20talloc=20to=20cop?= =?UTF-8?q?y=20data=20from=20c-ares=20Add=20a=20new=20set=20of=20helpful?= =?UTF-8?q?=20common=20functions=20for=20tests=20Various=20improvements=20?= =?UTF-8?q?to=20the=20resolv=20test=20suite=20Delete=20sssd-i18n.h=20and?= =?UTF-8?q?=20put=20it's=20old=20contents=20into=20util.h=20Piotr=20Dr=3Fg?= =?UTF-8?q?=20(1):=20Update=20polish=20translation=20for=200.6.0=20Ralf=20?= =?UTF-8?q?Haferkamp=20(2):=20LDAP=20provider=20needs=20to=20link=20agains?= =?UTF-8?q?t=20krb=20libraries=20SUSE=20specific=20init=20script=20Simo=20?= =?UTF-8?q?Sorce=20(21):=20Tighten=20up=20permission.=20Initial=20implemen?= =?UTF-8?q?tation=20of=20sasl=20bind=20support=20Fix=20tools=20sync=20oper?= =?UTF-8?q?ations=20and=20mem=20hierarchy=20Fix=20long=20timeout=20on=20ld?= =?UTF-8?q?ap=20operation=20Make=20dp=20requests=20more=20robust=20Differe?= =?UTF-8?q?ntiate=20between=20search=20and=20network=20timeouts=20Remove?= =?UTF-8?q?=20DP=20process=20Start=20responders=20predictably=20after=20pr?= =?UTF-8?q?oviders=20Remove=20magicPrivateGroups=20option=20Fix=20services?= =?UTF-8?q?=20startup=20when=20only=20LOCAL=20is=20configured=20Make=20opt?= =?UTF-8?q?ions=20parser=20available=20to=20all=20providers=20Move=20ldap?= =?UTF-8?q?=20provider=20configuration=20into=20its=20own=20file=20Fix=20o?= =?UTF-8?q?ffline=20authentication=20Return=20the=20dp=20error=20from=20th?= =?UTF-8?q?e=20providers=20Move=20all=20ldap=20provider=20init=20functions?= =?UTF-8?q?=20Move=20all=20krb5=20provider=20init=20functions=20Add=20firs?= =?UTF-8?q?t=20basic=20IPA=20provider=20Always=20list=20inputs=20before=20?= =?UTF-8?q?outputs=20Start=20implementing=20ipa=20specific=20options.=20Be?= =?UTF-8?q?tter=20offline/enumeration=20behavior=20Fix=20setting=20the=20s?= =?UTF-8?q?chema=20in=20the=20ipa=20provider=20Stephen=20Gallagher=20(24):?= =?UTF-8?q?=20Update=20version=20to=200.6.0=20Fix=20infinite=20loop=20with?= =?UTF-8?q?=20empty=20group=20enumeration=20Updating=20release=20script=20?= =?UTF-8?q?to=20use=20the=20VERSION=20file=20Change=20requirement=20on=20l?= =?UTF-8?q?ibldb=20to=20libldb=20>=3D=200.9.3=20INI=20Add=20config=5Ffrom?= =?UTF-8?q?=5Ffd()=20to=20ini=5Fconfig=20Remove=20unused=20btreemap=20code?= =?UTF-8?q?=20Add=20new=20SSSDConfig=20python=20API=20Add=20plugin=20confi?= =?UTF-8?q?guration=20schema=20for=20proxy=20provider=20Package=20SSSDConf?= =?UTF-8?q?ig=20API=20Clean=20up=20warnings=20in=20pysss.c=20Remove=20warn?= =?UTF-8?q?ings=20caused=20by=205e2301b8a75d10e5cbbe11e26e5192b894af6ad7?= =?UTF-8?q?=20Remove=20two=20unused=20functions.=20Fix=20segfault=20when?= =?UTF-8?q?=20using=20SSS=20tools=20with=20no=20local=20provider=20Do=20no?= =?UTF-8?q?t=20allow=20setting=20auth,=20access=20or=20chpass=20providers?= =?UTF-8?q?=20for=20LOCAL=20Add=20krb5=5Fcommon.h=20to=20the=20list=20of?= =?UTF-8?q?=20headers=20to=20'make=20dist'=20Use=20Python=203-compatible?= =?UTF-8?q?=20sitearch=20and=20sitelib=20Better=20detect=20installed=20lan?= =?UTF-8?q?guage=20files=20Clean=20up=20rpmlint=20errors=20and=20warnings?= =?UTF-8?q?=20in=20sssd-client=20package=20Set=20the=20Default-Stop=20LSB?= =?UTF-8?q?=20option=20for=20the=20SSSD=20sysv=20init=20script=20Fix=20RPM?= =?UTF-8?q?=20builds=20on=20older=20versions=20of=20rpmbuild=20Bring=20SSS?= =?UTF-8?q?DConfig=20API=20options=20up-to-date=20Add=20pam=5Fctx=20(simil?= =?UTF-8?q?ar=20to=20nss=5Fctx)=20for=20storing=20global=20PAM=20config=20?= =?UTF-8?q?Add=20support=20for=20offline=20auth=20cache=20timeout=20Update?= =?UTF-8?q?=20version=20to=200.7.0=20Sumit=20Bose=20(28):=20update=20sysdb?= =?UTF-8?q?=20tests=20to=20new=20config=20file=20version=20add=20utility?= =?UTF-8?q?=20call=20check=5Fand=5Fopen=5Freadonly=20more=20documentation?= =?UTF-8?q?=20and=20test=20for=20sssd.conf=20handle=20expired=20password?= =?UTF-8?q?=20during=20authentication=20move=20password=20handling=20into?= =?UTF-8?q?=20subroutines=20ask=20for=20new=20password=20if=20password=20i?= =?UTF-8?q?s=20expired=20remove=20redundant=20talloc=5Ffree=20add=20descri?= =?UTF-8?q?ption=20of=20chpass=5Fprovider=20option=20to=20sssd.conf=20man?= =?UTF-8?q?=20page=20add=20support=20for=20server=20side=20LDAP=20password?= =?UTF-8?q?=20policies=20add=20syslog=20message=20similar=20to=20pam=5Funi?= =?UTF-8?q?x=20use=20the=20correct=20kerberos=20context=20for=20each=20tar?= =?UTF-8?q?get=20fix=20a=20wrong=20argument=20to=20unpack=5Fbuffer=20add?= =?UTF-8?q?=20-Werror-implicit-function-declaration=20to=20default=20gcc?= =?UTF-8?q?=20flags=20add=20a=20replacement=20if=20ldap=5Fcontrol=5Fcreate?= =?UTF-8?q?=20is=20missing=20use=20PYTHON=5FPREFIX=20to=20install=20SSSDCo?= =?UTF-8?q?nfig=20python=20API=20add=20missing=20%defattr=20to=20the=20fil?= =?UTF-8?q?elist=20of=20the=20client=20package=20make=20sdap=5Fid=5Fconnec?= =?UTF-8?q?t=5F*=20independent=20of=20sdap=5Fid=5Fctx=20send=20a=20message?= =?UTF-8?q?=20if=20a=20backend=20target=20is=20not=20configured=20use=20ol?= =?UTF-8?q?d=20password=20if=20available=20during=20password=20change=20se?= =?UTF-8?q?t=20chpass=5Fprovider=20implicit=20if=20not=20set=20explicit=20?= =?UTF-8?q?more=20implicit=20provider=20target=20settings=20enable=20debug?= =?UTF-8?q?ging=20of=20krb5=5Fchild=20Check=20for=20expired=20passwords=20?= =?UTF-8?q?in=20LDAP=20provider=20added=20generic=20LDAP=20search=20sdap?= =?UTF-8?q?=5Fget=5Fgeneric=5Fsend/=5Frecv=20add=20store/search/delete=20i?= =?UTF-8?q?nterface=20for=20custom=20sysdb=20objects=20update=20krb5=20opt?= =?UTF-8?q?ion=20handling=20to=20new=20option=20scheme=20update=20ipa=20au?= =?UTF-8?q?th=20options=20to=20new=20option=20scheme=20fix=20a=20compiler?= =?UTF-8?q?=20warning=20about=20redefinition=20of=20DEBUG=20Detailed=20cha?= =?UTF-8?q?nges=20since=200.5.0=20Dmitri=20Pal=20(8):=20ELAPI=20sinks=20an?= =?UTF-8?q?d=20providers=20ELAPI=20Adding=20file=20provider=20and=20CSV=20?= =?UTF-8?q?format=20ELAPI=20Laying=20foundation=20for=20the=20async=20proc?= =?UTF-8?q?essing=20COLLECTION=20Copy=20collection=20flat=20with=20concate?= =?UTF-8?q?nated=20names=20COLLECTION=20Improvements=20to=20copy=20functio?= =?UTF-8?q?ns=20COLLECTION=20Functions=20to=20deal=20with=20hash=20ELAPI?= =?UTF-8?q?=20Better=20separation=20from=20collection=20internals.=20INI?= =?UTF-8?q?=20Error=20handling=20and=20interface=20cleanup=20Jakub=20Hroze?= =?UTF-8?q?k=20(17):=20Remove=20shadow-utils=20support=20from=20tools=20Sm?= =?UTF-8?q?all=20changes=20to=20the=20example=20config=20and=20manpage=20A?= =?UTF-8?q?dd=20copyright=20notices=20Fix=20dispatcher=20structure=20initi?= =?UTF-8?q?alization=20Add=20binaries=20and=20backup=20files=20to=20.gitig?= =?UTF-8?q?nore=20Refactor=20tools=20code=20Decouple=20synchronous=20sysdb?= =?UTF-8?q?=20interface=20from=20tools=20Provide=20python=20bindings=20for?= =?UTF-8?q?=20sysdb=20Use=20syslog=20for=20logging=20error=20conditions=20?= =?UTF-8?q?in=20SSSD=20fix=20varargs=20call,=20update=20unit=20tests=20Tic?= =?UTF-8?q?ket=20161:=20Initialize=20structures=20with=20calloc=20instead?= =?UTF-8?q?=20of=20enumerating=20=20=20=20=20members=20Allow=20entering=20?= =?UTF-8?q?parent=20groups=20as=20FQDN=20Remove=20provider=3Dfiles=20Manpa?= =?UTF-8?q?ges=20update=20script=20to=20upgrade=20config=20to=20v2=20Send?= =?UTF-8?q?=20debug=20messages=20to=20logfile=20Convert=20the=20example=20?= =?UTF-8?q?config=20to=20v2=20format,=20upgrade=20config=20on=20update=20o?= =?UTF-8?q?nly=20Jeff=20Schroeder=20(1):=20Add=20documentation=20for=20ins?= =?UTF-8?q?talling=20build=20dependencies=20Piotr=20Dr=C4=85g=20(1):=20Add?= =?UTF-8?q?=20pl=20translation=20Ralf=20Haferkamp=20(2):=20Fix=20initgroup?= =?UTF-8?q?s=20search=20filter=20when=20using=20rfc2307bis=20Avoid=20crash?= =?UTF-8?q?=20when=20timestamp=20is=20NULL=20Simo=20Sorce=20(30):=20Use=20?= =?UTF-8?q?the=20correct=20structure.=20Initial=20support=20for=20multiple?= =?UTF-8?q?=20schema=20types=20Always=20save=20using=20member/memberOf=20F?= =?UTF-8?q?ix=20group=20replies=20when=20using=20member/memberof=20Upgrade?= =?UTF-8?q?=20database=20to=200.2=20Remove=20redunant=20function=20and=20a?= =?UTF-8?q?lways=20pass=20attrs.=20Make=20enumeration=20an=20independent?= =?UTF-8?q?=20task=20Speed-up=20enumerations.=20Correctly=20handle=20!Dbus?= =?UTF-8?q?Watch=20behavior.=20Turn=20enumeration=20into=20a=20boolean=20v?= =?UTF-8?q?alue=20Honor=20enumerate=20option=20in=20ldap=5Fid=20Fix=20prox?= =?UTF-8?q?y=20enumeration=20Fix=20two=20possible=20uninitialized=20values?= =?UTF-8?q?=20Split=20database=20in=20multiple=20files=20Tools=20are=20all?= =?UTF-8?q?owed=20to=20touch=20only=20the=20'local'=20domain=20Fix=20Ldap?= =?UTF-8?q?=20id=20backend=20offline=20code=20Fix=20memory=20mishandling.?= =?UTF-8?q?=20Fix=20ldap=20enumeration=20async=20task=20Fix=20getgrnam=20a?= =?UTF-8?q?nd=20getgrgid=20calls=20Complete=20the=20removal=20of=20"legacy?= =?UTF-8?q?"=20option.=20Update=20documentation=20and=20examples=20Make=20?= =?UTF-8?q?the=20offline=20status=20backend-global=20Turn=20ldap=20driver?= =?UTF-8?q?=20options=20into=20multitype=20Fix=20copy&paste=20error.=20Bet?= =?UTF-8?q?ter=20handle=20groups=20w/o=20members=20Fix=20copy&paste=20of?= =?UTF-8?q?=20wrong=20structure=20Don't=20try=20to=20use=20initgroups=5Fdy?= =?UTF-8?q?n=20if=20not=20available=20Handle=20suspend=20cases=20Split=20o?= =?UTF-8?q?ut=20an=20sssd-clients=20package=20Let=20backend=20respond=20wh?= =?UTF-8?q?ile=20fetching=20large=20results=20Stephen=20Gallagher=20(26):?= =?UTF-8?q?=20Move=20RPM=20specfiles=20into=20contrib/=20Consolidate=20cac?= =?UTF-8?q?he=20lookups=20in=20the=20NSS=20Add=20support=20for=20the=20!En?= =?UTF-8?q?tryCacheNoWaitRefreshTimeout=20Check=20for=20valid=20min=20and?= =?UTF-8?q?=20max=20IDs=20in=20confdb=5Fget=5Fdomains=20Update=20manpage?= =?UTF-8?q?=20to=20reflect=20new=20syntax=20for=20enumerate=20Add=20strtoi?= =?UTF-8?q?nt32=20and=20strtouint32=20convenience=20functions=20Properly?= =?UTF-8?q?=20detect=20negative/invalid=20values=20for=20the=20minId=20and?= =?UTF-8?q?=20maxId=20Remove=20unused=20event=20context=20argument=20from?= =?UTF-8?q?=20confdb=5Finit=20Read=20the=20configuration=20parsing=20befor?= =?UTF-8?q?e=20daemonization=20Fix=20first-time=20confdb=20generation=20Ad?= =?UTF-8?q?d=20'make=20tests'=20target=20Add=20strtoint32=20and=20strtouin?= =?UTF-8?q?t32=20tests=20Print=20error=20message=20when=20connection=20to?= =?UTF-8?q?=20the=20config=20db=20fails=20Exit=20if=20the=20sssd=20is=20la?= =?UTF-8?q?unched=20as=20a=20user=20other=20than=20root=20Include=20m4=20d?= =?UTF-8?q?irectories=20in=20tarball=20Allow=20rerunning=20autoreconf=20fr?= =?UTF-8?q?om=20the=20tarball=20Add=20PRERELEASE=5FVERSION=20variable=20fo?= =?UTF-8?q?r=20use=20in=20sssd.spec.in=20Add=20missing=20updates=20to=20LI?= =?UTF-8?q?NGUAS=20for=20pl=20translation=20Add=20missing=20reference=20to?= =?UTF-8?q?=20sssd-ldap(5)=20in=20sssd.conf(5)=20manpage=20Include=20group?= =?UTF-8?q?SearchBase=20in=20sssd-ldap(5)=20manpage=20Several=20fixes=20an?= =?UTF-8?q?d=20enhancements=20for=20config=20file=20processing=20Make=20co?= =?UTF-8?q?nfigure=20script=20compatible=20with=20older=20python=20version?= =?UTF-8?q?s=20Revert=20"Use=20syslog=20for=20logging=20error=20conditions?= =?UTF-8?q?=20in=20SSSD"=20Temporarily=20disable=20automatic=20config=20fi?= =?UTF-8?q?le=20reread=20Upgrade=20confdb=20to=20version=202=20Update=20ve?= =?UTF-8?q?rsion=20to=200.6.0=20Sumit=20Bose=20(31):=20removed=20unused=20?= =?UTF-8?q?header=20file=20do=20not=20show=20server=20messages=20to=20user?= =?UTF-8?q?=20fix=20internal=20order=20of=20ldap=20user=20mapping=20option?= =?UTF-8?q?s=20add=20configure=20check=20for=20errno=5Ft=20send=20SSSD=5FR?= =?UTF-8?q?EALM=20and=20SSSD=5FKDCIP=20environment=20to=20the=20client=20c?= =?UTF-8?q?heck=20if=20gid=20attribute=20is=20empty=20stop=20processing=20?= =?UTF-8?q?a=20domain=20if=20no=20provider=20is=20given=20check=20if=20lib?= =?UTF-8?q?pcre=20version=20is=20above=20or=20below=207=20remove=20the=20c?= =?UTF-8?q?oncept=20of=20a=20backend=20name=20configure=20cleanups=20fix?= =?UTF-8?q?=20libdbus=20configure=20check=20initialize=20sockaddr=5Fin=20s?= =?UTF-8?q?tructure=20add=20change=20password=20target=20to=20krb5=20backe?= =?UTF-8?q?nd=20use=20fork+exec=20for=20kerberos=20helper=20Let=20the=20PA?= =?UTF-8?q?M=20client=20send=20its=20PID=20remove=20unused=20client=20loca?= =?UTF-8?q?le=20from=20PAM=20protocol=20make=20cli=5Fpid=20mandatory=20and?= =?UTF-8?q?=20increase=20version=20number=20of=20pam=20protocol=20add=20kr?= =?UTF-8?q?b5ccache=5Fdir=20and=20krb5ccname=5Ftemplate=20option=20fix=20t?= =?UTF-8?q?he=20wrong=20usage=20of=20an=20offset=20added=20child=20timeout?= =?UTF-8?q?=20handler=20Check=20if=20SSL/TLS=20handler=20is=20already=20in?= =?UTF-8?q?=20place=20use=20getaddrinfo=20to=20resolve=20IP=20address=20of?= =?UTF-8?q?=20KDC=20add=20a=20man=20page=20for=20pam=5Fsss=20toggle=20debu?= =?UTF-8?q?g=20output=20of=20sssd=5Fkrb5=5Flocator=5Fplugin=20with=20an=20?= =?UTF-8?q?environment=20=20=20=20=20variable=20add=20new=20config=20optio?= =?UTF-8?q?ns=20ldap=5Ftls=5Fcacert=20and=20ldap=5Ftls=5Fcacertdir=20fix?= =?UTF-8?q?=20possible=20short=20reads=20in=20kerberos=20provider=20remove?= =?UTF-8?q?=20krb5=5Ftry=5Fsimple=5Fupn=20option=20and=20make=20it=20a=20d?= =?UTF-8?q?efault=20fallback=20add=20defines=20for=20large=20file=20suppor?= =?UTF-8?q?t=20to=20standard=20CFLAGS=20more=20fixes=20for=20older=20libpc?= =?UTF-8?q?re=20versions=20Cleanups=20for=20library=20linking=20added=20su?= =?UTF-8?q?pport=20for=20older=20MIT=20kerberos=20versions?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .cvsignore | 2 +- sources | 2 +- sssd.spec | 118 +++++++++++++++++++++++++++++++++++++++++------------ 3 files changed, 95 insertions(+), 27 deletions(-) diff --git a/.cvsignore b/.cvsignore index 4ba448b..a1b5b4a 100644 --- a/.cvsignore +++ b/.cvsignore @@ -1 +1 @@ -sssd-0.5.0.tar.gz +sssd-0.7.0.tar.gz diff --git a/sources b/sources index 76326f4..c51859b 100644 --- a/sources +++ b/sources @@ -1 +1 @@ -7566dcac75e7248ca99b4dd0bb49c1ee sssd-0.5.0.tar.gz +403945c70c902302e5d8babecb24b096 sssd-0.7.0.tar.gz diff --git a/sssd.spec b/sssd.spec index 7b7de4e..8501d9f 100644 --- a/sssd.spec +++ b/sssd.spec @@ -1,9 +1,11 @@ +%{!?python_sitearch: %global python_sitearch %(%{__python} -c "from distutils.sysconfig import *; import sys; sys.stdout.write(get_python_lib(1))")} +%{!?python_sitelib: %global python_sitelib %(%{__python} -c "from distutils.sysconfig import *; import sys; sys.stdout.write(get_python_lib())")} + Name: sssd -Version: 0.5.0 -Release: 0%{?dist} +Version: 0.7.0 +Release: 1%{?dist} Group: Applications/System Summary: System Security Services Daemon - # The entire source code is GPLv3+ except replace/ which is LGPLv3+ License: GPLv3+ and LGPLv3+ URL: http://fedorahosted.org/sssd @@ -17,7 +19,8 @@ BuildRoot: %(mktemp -ud %{_tmppath}/%{name}-%{version}-%{release}-XXXXXX) Requires: libldb >= 0.9.3 Requires: libtdb >= 1.1.3 - +Requires: sssd-client = 0.7.0 +Requires(post): python Requires(preun): initscripts chkconfig Requires(postun): /sbin/service @@ -32,7 +35,8 @@ BuildRequires: autoconf BuildRequires: automake BuildRequires: libtool BuildRequires: m4 -BuildRequires: popt-devel +%{?fedora:BuildRequires: popt-devel} +%{?rhel:BuildRequires: popt} BuildRequires: libtalloc-devel BuildRequires: libtevent-devel BuildRequires: libtdb-devel @@ -49,6 +53,7 @@ BuildRequires: libxml2 BuildRequires: docbook-style-xsl BuildRequires: krb5-devel BuildRequires: c-ares-devel +BuildRequires: python-devel %description Provides a set of daemons to manage access to remote directories and @@ -57,6 +62,14 @@ the system and a pluggable backend system to connect to multiple different account sources. It is also the basis to provide client auditing and policy services for projects like FreeIPA. +%package client +Summary: SSSD Client libraries for NSS and PAM +Group: Applications/System + +%description client +Provides the libraries needed by the PAM and NSS stacks to connect to the SSSD +service. + %prep %setup -q @@ -75,6 +88,16 @@ rm -rf $RPM_BUILD_ROOT make install DESTDIR=$RPM_BUILD_ROOT +# Prepare language files +/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT sss_daemon +/usr/lib/rpm/find-lang.sh $RPM_BUILD_ROOT sss_client + +mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sssd +install -m600 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.conf + +install -m400 server/config/etc/sssd.api.conf $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.api.conf +install -m400 server/config/etc/sssd.api.d/* $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.api.d/ + # Remove .la files created by libtool rm -f \ $RPM_BUILD_ROOT/%{_lib}/libnss_sss.la \ @@ -83,15 +106,20 @@ rm -f \ $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_ldap.la \ $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_proxy.la \ $RPM_BUILD_ROOT/%{_libdir}/sssd/libsss_krb5.la \ - $RPM_BUILD_ROOT/%{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.la + $RPM_BUILD_ROOT/%{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.la \ + $RPM_BUILD_ROOT/%{python_sitearch}/pysss.la -mkdir -p $RPM_BUILD_ROOT/%{_sysconfdir}/sssd -install -m600 %{SOURCE1} $RPM_BUILD_ROOT%{_sysconfdir}/sssd/sssd.conf +if test -e $RPM_BUILD_ROOT/%{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.so +then + # Apppend this file to the sss_daemon.lang + # Older versions of rpmbuild can only handle one -f option + echo %{_libdir}/krb5/plugins/libkrb5/sssd_krb5_locator_plugin.so >> sss_daemon.lang +fi %clean rm -rf $RPM_BUILD_ROOT -%files +%files -f sss_daemon.lang %defattr(-,root,root,-) %doc COPYING %attr(755,root,root) %{_initrddir}/%{name} @@ -105,23 +133,45 @@ rm -rf $RPM_BUILD_ROOT %{_libexecdir}/%{servicename}/ %{_libdir}/%{name}/ %{_libdir}/ldb/memberof.so -%{_libdir}/krb5/plugins/libkrb5/* %dir %{sssdstatedir} %attr(700,root,root) %dir %{dbpath} %attr(755,root,root) %dir %{pipepath} %attr(700,root,root) %dir %{pipepath}/private -%dir %{_sysconfdir}/sssd +%attr(750,root,root) %dir %{_var}/log/%{name} +%attr(700,root,root) %dir %{_sysconfdir}/sssd %config(noreplace) %{_sysconfdir}/sssd/sssd.conf +%config %{_sysconfdir}/sssd/sssd.api.conf +%attr(700,root,root) %dir %{_sysconfdir}/sssd/sssd.api.d +%config %{_sysconfdir}/sssd/sssd.api.d/ +%{_mandir}/man5/sssd.conf.5* +%{_mandir}/man5/sssd-ipa.5* +%{_mandir}/man5/sssd-krb5.5* +%{_mandir}/man5/sssd-ldap.5* +%{_mandir}/man8/sssd.8* +%{_mandir}/man8/sss_groupadd.8* +%{_mandir}/man8/sss_groupdel.8* +%{_mandir}/man8/sss_groupmod.8* +%{_mandir}/man8/sss_useradd.8* +%{_mandir}/man8/sss_userdel.8* +%{_mandir}/man8/sss_usermod.8* +%{_mandir}/man8/sssd_krb5_locator_plugin.8* +%{python_sitearch}/pysss.so +%{python_sitelib}/*.py* +%{?fedora:%{python_sitelib}/*.egg-info} + +%files client -f sss_client.lang +%defattr(-,root,root,-) /%{_lib}/libnss_sss.so.2 /%{_lib}/security/pam_sss.so -%{_mandir}/man5/* -%{_mandir}/man8/* -%{_datadir}/locale/*/LC_MESSAGES/sss_client.mo -%{_datadir}/locale/*/LC_MESSAGES/sss_daemon.mo +%{_mandir}/man8/pam_sss.8* %post /sbin/ldconfig /sbin/chkconfig --add %{servicename} +if [ $1 -ge 2 ] ; then +# a one-time upgrade from confdb v1 to v2, only if upgrading + python %{_libexecdir}/%{servicename}/upgrade_config.py +fi %preun if [ $1 = 0 ]; then @@ -135,14 +185,41 @@ if [ $1 -ge 1 ] ; then /sbin/service %{servicename} condrestart 2>&1 > /dev/null fi +%post client -p /sbin/ldconfig + +%postun client -p /sbin/ldconfig + %changelog +* Fri Oct 23 2009 Stephen Gallagher - 0.7.0-1 +- New upstream release 0.7.0 + +* Thu Oct 15 2009 Stephen Gallagher - 0.6.1-2 +- Fix missing file permissions for sssd-clients + +* Tue Oct 13 2009 Stephen Gallagher - 0.6.1-1 +- Add SSSDConfig API +- Update polish translation for 0.6.0 +- Fix long timeout on ldap operation +- Make dp requests more robust + +* Tue Sep 29 2009 Stephen Gallagher - 0.6.0-1 +- Ensure that the configuration upgrade script always writes the config + file with 0600 permissions +- Eliminate an infinite loop in group enumerations + +* Mon Sep 28 2009 Sumit Bose - 0.6.0-0 +- New upstream release 0.6.0 + * Mon Aug 24 2009 Simo Sorce - 0.5.0-0 - New upstream release 0.5.0 -* Wed Jul 29 2009 Jakub Hrozek - 0.4.1-3 +* Wed Jul 29 2009 Jakub Hrozek - 0.4.1-4 - Fix for CVE-2009-2410 - Native SSSD users with no password set could log in without a password. (Patch by Stephen Gallagher) +* Sun Jul 26 2009 Fedora Release Engineering - 0.4.1-3 +- Rebuilt for https://fedoraproject.org/wiki/Fedora_12_Mass_Rebuild + * Mon Jun 22 2009 Simo Sorce - 0.4.1-2 - Fix a couple of segfaults that may happen on reload @@ -154,15 +231,6 @@ fi - latest upstream release. - also add a patch that fixes debugging output (potential segfault) -* Tue Apr 29 2009 Simo Sorce - 0.3.3-3 -- Add use_first_pass option to fix pam stack problems - -* Tue Apr 28 2009 Simo Sorce - 0.3.3-1 -- Add patches to fix password caches when offline - -* Mon Apr 27 2009 Simo Sorce - 0.3.3-0 -- Version 0.3.3 - * Mon Apr 20 2009 Simo Sorce - 0.3.2-2 - release out of the official 0.3.2 tarball