1 |
# $Id: e-smith-ldap.spec,v 1.32 2010/04/30 15:30:36 filippocarletti Exp $ |
# $Id: e-smith-ldap.spec,v 1.68 2010/10/30 14:03:32 vip-ire Exp $ |
2 |
|
|
3 |
Summary: e-smith server and gateway - LDAP module |
Summary: e-smith server and gateway - LDAP module |
4 |
%define name e-smith-ldap |
%define name e-smith-ldap |
5 |
Name: %{name} |
Name: %{name} |
6 |
%define version 5.2.0 |
%define version 5.2.0 |
7 |
%define release 21 |
%define release 56 |
8 |
Version: %{version} |
Version: %{version} |
9 |
Release: %{release}%{?dist} |
Release: %{release}%{?dist} |
10 |
License: GPL |
License: GPL |
25 |
Patch12: %{name}-%{version}-admin_user2.patch |
Patch12: %{name}-%{version}-admin_user2.patch |
26 |
Patch13: %{name}-%{version}-ibay_password.patch |
Patch13: %{name}-%{version}-ibay_password.patch |
27 |
Patch14: %{name}-%{version}-fix-indention.patch |
Patch14: %{name}-%{version}-fix-indention.patch |
28 |
|
Patch15: %{name}-%{version}-email-domain-change.patch |
29 |
|
Patch16: %{name}-%{version}-update-admin.patch |
30 |
|
Patch17: %{name}-%{version}-empty_group.patch |
31 |
|
Patch18: e-smith-ldap-5.2.0-ldap_logs.patch |
32 |
|
Patch19: e-smith-ldap-5.2.0-force_enabled.patch |
33 |
|
Patch20: e-smith-ldap-5.2.0-index_memberuid.patch |
34 |
|
Patch21: e-smith-ldap-5.2.0-expand_slapd_on_ldap_update.patch |
35 |
|
Patch22: e-smith-ldap-5.2.0-split_acl_templates.patch |
36 |
|
Patch23: e-smith-ldap-5.2.0-exop.patch |
37 |
|
Patch24: e-smith-ldap-5.2.0-dump_ldif.patch |
38 |
|
Patch25: e-smith-ldap-5.2.0-add_computers_ou.patch |
39 |
|
Patch26: e-smith-ldap-5.2.0-add_posixaccount_attr_in_ldap.patch |
40 |
|
Patch27: e-smith-ldap-5.2.0-full_path_to_config.patch |
41 |
|
Patch28: e-smith-ldap-5.2.0-add_samba_attr_in_ldap.patch |
42 |
|
Patch29: e-smith-ldap-5.2.0-code_cleanup.patch |
43 |
|
Patch30: e-smith-ldap-5.2.0-base_oid.patch |
44 |
|
Patch31: e-smith-ldap-5.2.0-rename_old_record.patch |
45 |
|
Patch32: e-smith-ldap-5.2.0-add_ibay_machine.patch |
46 |
|
Patch33: e-smith-ldap-5.2.0-rename_old_record_fix.patch |
47 |
|
Patch34: e-smith-ldap-5.2.0-rename_old_record_fix2.patch |
48 |
|
Patch35: e-smith-ldap-5.2.0-delete_extra_items.patch |
49 |
|
Patch36: e-smith-ldap-5.2.0-ldif_template.patch |
50 |
|
Patch37: e-smith-ldap-5.2.0-fix_ldap_delete.patch |
51 |
|
Patch38: e-smith-ldap-5.2.0-better_ldif.patch |
52 |
|
Patch39: e-smith-ldap-5.2.0-ldap_update_several_groups.patch |
53 |
|
Patch40: e-smith-ldap-5.2.0-anonymous_acl.patch |
54 |
|
Patch41: e-smith-ldap-5.2.0-users_acl.patch |
55 |
|
Patch42: e-smith-ldap-5.2.0-toggle_anonymous_access.patch |
56 |
|
Patch43: e-smith-ldap-5.2.0-fix_anonymous_toggle.patch |
57 |
|
Patch44: e-smith-ldap-5.2.0-link_ldap_update.patch |
58 |
|
Patch45: e-smith-ldap-5.2.0-update_group_membership_on_delete.patch |
59 |
|
Patch46: e-smith-ldap-5.2.0-ldap_update_later.patch |
60 |
|
Patch47: e-smith-ldap-5.2.0-allow_authenticated_users_to_read_attrs.patch |
61 |
|
Patch48: e-smith-ldap-5.2.0-add_nobody_and_shared_in_ldap.patch |
62 |
|
Patch49: e-smith-ldap-5.2.0-fix_nobody_and_shared_group.patch |
63 |
|
Patch50: e-smith-ldap-5.2.0-add_www_move_nobody.patch |
64 |
|
Patch51: e-smith-ldap-5.2.0-fix_ldap_update.patch |
65 |
|
Patch52: e-smith-ldap-5.2.0-ldap-init-script.patch |
66 |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
BuildRoot: /var/tmp/%{name}-%{version}-%{release}-buildroot |
67 |
BuildArchitectures: noarch |
BuildArchitectures: noarch |
68 |
Requires: e-smith-base |
Requires: e-smith-base |
69 |
Requires: e-smith-lib >= 1.15.1-16 |
Requires: e-smith-lib >= 1.15.1-16 |
70 |
Requires: openldap >= 2.0.0, perl(Net::LDAP) |
Requires: openldap >= 2.0.0 |
71 |
|
Requires: openldap-clients |
72 |
|
Requires: perl(Net::LDAP) |
73 |
Requires: e-smith-formmagick >= 1.4.0-9 |
Requires: e-smith-formmagick >= 1.4.0-9 |
74 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
BuildRequires: e-smith-devtools >= 1.13.1-03 |
75 |
AutoReqProv: no |
AutoReqProv: no |
78 |
e-smith server and gateway software - LDAP module. |
e-smith server and gateway software - LDAP module. |
79 |
|
|
80 |
%changelog |
%changelog |
81 |
|
* Sat Oct 30 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-56.sme |
82 |
|
- Fix a small typo in reset-ldap-bootstrap [SME: 6231] |
83 |
|
|
84 |
|
* Fri Oct 29 2010 Shad L. Lords <slords@mail.com> 5.2.0-55.sme |
85 |
|
- Add ldap.init script to allow update on reconfig/reboot [SME: 6231] |
86 |
|
|
87 |
|
* Thu Oct 28 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-54.sme |
88 |
|
- Fix minor errors in ldap-update [SME: 6312] |
89 |
|
|
90 |
|
* Wed Oct 27 2010 Shad L. Lords <slords@mail.com> 5.2.0-53.sme |
91 |
|
- Add www user/group to ldap [SME: 6312] |
92 |
|
|
93 |
|
* Wed Oct 27 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-52.sme |
94 |
|
- Fixes for nobody and shared groups [SME: 6310] |
95 |
|
|
96 |
|
* Wed Oct 27 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-51.sme |
97 |
|
- Add nobody and shared groups in LDAP [SME: 6310] |
98 |
|
|
99 |
|
* Thu Oct 14 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-50.sme |
100 |
|
- Allow authenticated users to read posixAccount and shadowAccount attrs [SME: 6254] |
101 |
|
|
102 |
|
* Wed Oct 13 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-49.sme |
103 |
|
- call ldap-update later during group and user creation [SME: 6284] |
104 |
|
|
105 |
|
* Thu Oct 7 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-48.sme |
106 |
|
- Update group membership for deleted accounts [SME: 6276] |
107 |
|
|
108 |
|
* Thu Oct 7 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-47.sme |
109 |
|
- Don't call ldap-update on deleted accounts [SME: 6239] |
110 |
|
|
111 |
|
* Thu Oct 7 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-46.sme |
112 |
|
- Link ldap-update scripts in needed events [SME: 6239] |
113 |
|
|
114 |
|
* Sat Oct 2 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-45.sme |
115 |
|
- Fix toggle anonymous access [SME: 6255] |
116 |
|
|
117 |
|
* Sat Oct 2 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-44.sme |
118 |
|
- Toggle anonymous access with AnonymousAccess property [SME: 6255] |
119 |
|
|
120 |
|
* Sat Oct 2 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-43.sme |
121 |
|
- Allow authenticated users to see more than just their own entry [SME: 6079] |
122 |
|
|
123 |
|
* Sat Oct 2 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-42.sme |
124 |
|
- Deny access to some attributes for anonymous users [SME: 6254] |
125 |
|
|
126 |
|
* Mon Sep 27 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-41.sme |
127 |
|
- Add ldap-update support for several accounts [SME: 6249] |
128 |
|
|
129 |
|
* Mon Sep 27 2010 Shad L. Lords <slords@mail.com> 5.2.0-40.sme |
130 |
|
- Make ldif template create single hash [SME: 6240] |
131 |
|
|
132 |
|
* Mon Sep 27 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-39.sme |
133 |
|
- Fix ldap-delete script [SME: 6238] |
134 |
|
|
135 |
|
* Sun Sep 26 2010 Shad L. Lords <slords@mail.com> 5.2.0-38.sme |
136 |
|
- Update ldif template to match stored data [SME: 6240] |
137 |
|
|
138 |
|
* Sun Sep 26 2010 Shad L. Lords <slords@mail.com> 5.2.0-37.sme |
139 |
|
- Delete all ldap objects that we now create [SME: 6238] |
140 |
|
|
141 |
|
* Sat Sep 25 2010 Shad L. Lords <slords@mail.com> 5.2.0-36.sme |
142 |
|
- Ensure required attributes are present for rename [SME: 6235] |
143 |
|
|
144 |
|
* Sat Sep 25 2010 Shad L. Lords <slords@mail.com> 5.2.0-35.sme |
145 |
|
- Fix old record lookups from sme7 [SME: 6235] |
146 |
|
|
147 |
|
* Sat Sep 25 2010 Shad L. Lords <slords@mail.com> 5.2.0-34.sme |
148 |
|
- Add ibay and machine accounts into ldap [SME: 6236] |
149 |
|
|
150 |
|
* Sat Sep 25 2010 Shad L. Lords <slords@mail.com> 5.2.0-33.sme |
151 |
|
- Rename old ldap record from sme7 if exists [SME: 6235] |
152 |
|
|
153 |
|
* Sat Sep 25 2010 Shad L. Lords <slords@mail.com> 5.2.0-32.sme |
154 |
|
- Fix/add base ou entries needed for new schema [SME: 6234] |
155 |
|
|
156 |
|
* Sat Sep 25 2010 Shad L. Lords <slords@mail.com> 5.2.0-31.sme |
157 |
|
- Rewrite ldap-update to make adding classes easier [SME: 6233] |
158 |
|
|
159 |
|
* Fri Sep 24 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-30.sme |
160 |
|
- Add sambaSamAccount attributes in LDAP [SME: 6232] |
161 |
|
|
162 |
|
* Thu Sep 23 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-29.sme |
163 |
|
- Use full path to config in the run script [SME: 6222] |
164 |
|
|
165 |
|
* Thu Sep 23 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-28.sme |
166 |
|
- Add posixAccount attributes in LDAP [SME: 6074] |
167 |
|
|
168 |
|
* Thu Sep 23 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-27.sme |
169 |
|
- Create the Computers OU [SME: 6230] |
170 |
|
|
171 |
|
* Thu Sep 23 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-26.sme |
172 |
|
- Dump ldap data during the pre-backup event [SME: 6226] |
173 |
|
|
174 |
|
* Wed Sep 22 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-25.sme |
175 |
|
- Send slapd logs in /var/log/ldap (multilog) [SME: 6222] |
176 |
|
- Force the service to be enabled [SME: 6221] |
177 |
|
- Indexe memberUid attribute [SME: 6220] |
178 |
|
- Expand slapd.conf during ldap-update event [SME: 6224] |
179 |
|
- Split slapd ACL template [SME: 6225] |
180 |
|
- Prevent users from reading their password over a unsecured link [SME: 6252] |
181 |
|
- Use md5crypt hash when client requests exop [SME: 6223] |
182 |
|
|
183 |
|
* Wed Sep 22 2010 Daniel Berteaud <daniel@firewall-services.com> 5.2.0-24.sme |
184 |
|
- Restrict access to the ldif file [SME: 6217] |
185 |
|
|
186 |
|
* Tue Jun 10 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-23.sme |
187 |
|
- Fix ldap-create errors when adding empty groups [SME: 5920] |
188 |
|
|
189 |
|
* Mon Jun 7 2010 Federico Simoncelli <federico.simoncelli@gmail.com> 5.2.0-22.sme |
190 |
|
- Update email addresses on domain change (thanks Daniel) [SME: 5984] |
191 |
|
- Update admin information (thanks Daniel) [SME: 6014] |
192 |
|
|
193 |
* Tue May 4 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-21.sme |
* Tue May 4 2010 Jonathan Martens <smeserver-contribs@snetram.nl> 5.2.0-21.sme |
194 |
- Fix indentation in S25ldap-update script [SME: 5914] |
- Fix indentation in S25ldap-update script [SME: 5914] |
195 |
|
|
917 |
%patch12 -p1 |
%patch12 -p1 |
918 |
%patch13 -p1 |
%patch13 -p1 |
919 |
%patch14 -p1 |
%patch14 -p1 |
920 |
|
%patch15 -p1 |
921 |
|
%patch16 -p1 |
922 |
|
%patch17 -p1 |
923 |
|
%patch18 -p1 |
924 |
|
%patch19 -p1 |
925 |
|
%patch20 -p1 |
926 |
|
%patch21 -p1 |
927 |
|
%patch22 -p1 |
928 |
|
%patch23 -p1 |
929 |
|
%patch24 -p1 |
930 |
|
%patch25 -p1 |
931 |
|
%patch26 -p1 |
932 |
|
%patch27 -p1 |
933 |
|
%patch28 -p1 |
934 |
|
%patch29 -p1 |
935 |
|
%patch30 -p1 |
936 |
|
%patch31 -p1 |
937 |
|
%patch32 -p1 |
938 |
|
%patch33 -p1 |
939 |
|
%patch34 -p1 |
940 |
|
%patch35 -p1 |
941 |
|
%patch36 -p1 |
942 |
|
%patch37 -p1 |
943 |
|
%patch38 -p1 |
944 |
|
%patch39 -p1 |
945 |
|
%patch40 -p1 |
946 |
|
%patch41 -p1 |
947 |
|
%patch42 -p1 |
948 |
|
%patch43 -p1 |
949 |
|
%patch44 -p1 |
950 |
|
%patch45 -p1 |
951 |
|
%patch46 -p1 |
952 |
|
%patch47 -p1 |
953 |
|
%patch48 -p1 |
954 |
|
%patch49 -p1 |
955 |
|
%patch50 -p1 |
956 |
|
%patch51 -p1 |
957 |
|
%patch52 -p1 |
958 |
|
|
959 |
%build |
%build |
960 |
mkdir -p root/etc/e-smith/tests |
mkdir -p root/etc/e-smith/tests |
961 |
perl createlinks |
perl createlinks |
962 |
mkdir -p root/etc/rc.d/rc7.d |
mkdir -p root/etc/rc.d/rc7.d |
963 |
ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S80ldap |
ln -s /etc/rc.d/init.d/e-smith-service root/etc/rc.d/rc7.d/S77ldap |
964 |
mkdir -p root/home/e-smith/db/ldap |
mkdir -p root/home/e-smith/db/ldap |
965 |
|
|
966 |
mkdir -p root/etc/rc.d/init.d/supervise |
mkdir -p root/etc/rc.d/init.d/supervise |
971 |
touch root/var/service/ldap/down |
touch root/var/service/ldap/down |
972 |
|
|
973 |
mkdir -p root/var/log/bdb |
mkdir -p root/var/log/bdb |
974 |
|
mkdir -p root/var/log/ldap |
975 |
mkdir -p root/var/service/ldap/ssl |
mkdir -p root/var/service/ldap/ssl |
976 |
|
mkdir -p root/etc/e-smith/ldap/init |
977 |
|
|
978 |
%install |
%install |
979 |
rm -rf $RPM_BUILD_ROOT |
rm -rf $RPM_BUILD_ROOT |
981 |
rm -f %{name}-%{version}-%{release}-filelist |
rm -f %{name}-%{version}-%{release}-filelist |
982 |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
/sbin/e-smith/genfilelist $RPM_BUILD_ROOT \ |
983 |
--file /var/service/ldap/run 'attr(0750,root,root)' \ |
--file /var/service/ldap/run 'attr(0750,root,root)' \ |
984 |
|
--file /var/service/ldap/log/run 'attr(0750,root,root)' \ |
985 |
--file /var/service/ldap/convert_ldif 'attr(0750,root,root)' \ |
--file /var/service/ldap/convert_ldif 'attr(0750,root,root)' \ |
986 |
--file /var/service/ldap/finish 'attr(0750,root,root)' \ |
--file /var/service/ldap/finish 'attr(0750,root,root)' \ |
987 |
--file /var/service/ldap/control/1 'attr(0750,root,root)' \ |
--file /var/service/ldap/control/1 'attr(0750,root,root)' \ |
988 |
--dir /var/log/bdb 'attr(0700,ldap,ldap)' \ |
--dir /var/log/bdb 'attr(0700,ldap,ldap)' \ |
989 |
|
--dir /home/e-smith/db/ldap 'attr(0750,root,ldap)' \ |
990 |
|
--dir /var/log/ldap 'attr(0750,smelog,smelog)' \ |
991 |
> %{name}-%{version}-%{release}-filelist |
> %{name}-%{version}-%{release}-filelist |
992 |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
echo "%doc COPYING" >> %{name}-%{version}-%{release}-filelist |
993 |
|
|