Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 657526 Details for
Bug 876307
CVE-2012-5484 ipa: weakness when initiating join from IPA client can potentially compromise IPA domain
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
2/4
0111-Update-plugin-to-upload-CA-certificate-to-LDAP.patch (text/plain), 2.89 KB, created by
Simo Sorce
on 2012-12-04 13:51:55 UTC
(
hide
)
Description:
2/4
Filename:
MIME Type:
Creator:
Simo Sorce
Created:
2012-12-04 13:51:55 UTC
Size:
2.89 KB
patch
obsolete
>From f8ec012946034e8c8b224d8be06696a7733c677d Mon Sep 17 00:00:00 2001 >From: Alexander Bokovoy <abokovoy@redhat.com> >Date: Mon, 12 Nov 2012 17:44:15 -0500 >Subject: [PATCH 111/113] Update plugin to upload CA certificate to LDAP > >Define post-update plugin to upload public CA certificate to IPA LDAP server. >The plugin includes also update file that creates default container for the >certificate. >--- > ipaserver/install/plugins/upload_cacrt.py | 56 +++++++++++++++++++++++++++++++ > 1 file changed, 56 insertions(+) > create mode 100644 ipaserver/install/plugins/upload_cacrt.py > >diff --git a/ipaserver/install/plugins/upload_cacrt.py b/ipaserver/install/plugins/upload_cacrt.py >new file mode 100644 >index 0000000..db99aae >--- /dev/null >+++ b/ipaserver/install/plugins/upload_cacrt.py >@@ -0,0 +1,56 @@ >+# Authors: >+# Alexander Bokovoy <abokovoy@redhat.com> >+# >+# Copyright (C) 2012 Red Hat >+# see file 'COPYING' for use and warranty information >+# >+# This program is free software; you can redistribute it and/or modify >+# it under the terms of the GNU General Public License as published by >+# the Free Software Foundation, either version 3 of the License, or >+# (at your option) any later version. >+# >+# This program is distributed in the hope that it will be useful, >+# but WITHOUT ANY WARRANTY; without even the implied warranty of >+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the >+# GNU General Public License for more details. >+# >+# You should have received a copy of the GNU General Public License >+# along with this program. If not, see <http://www.gnu.org/licenses/>. >+ >+from ipaserver.install.plugins import MIDDLE >+from ipaserver.install.plugins.baseupdate import PostUpdate >+from ipaserver.install.dsinstance import realm_to_serverid, config_dirname >+from ipaserver.install import certs >+from ipalib import api >+from ipalib.dn import DN >+import base64 >+ >+class update_upload_cacrt(PostUpdate): >+ """ >+ Upload public CA certificate to LDAP >+ """ >+ order=MIDDLE >+ >+ def execute(self, **options): >+ ldap = self.obj.backend >+ (cdn, ipa_config) = ldap.get_ipa_config() >+ subject_base = ipa_config.get('ipacertificatesubjectbase', [None])[0] >+ dirname = config_dirname(realm_to_serverid(api.env.realm)) >+ certdb = certs.CertDB(api.env.realm, nssdir=dirname, subject_base=subject_base) >+ >+ dercert = certdb.get_cert_from_db(certdb.cacert_name, pem=False) >+ cadercert = base64.b64encode(dercert) >+ >+ updates = {} >+ dn = str(DN(('cn', 'CACert'), ('cn', 'ipa'), ('cn','etc'), api.env.basedn)) >+ >+ cacrt_entry = ['objectclass:nsContainer', >+ 'objectclass:pkiCA', >+ 'cn:CAcert', >+ 'cACertificate;binary:%s' % cadercert, >+ ] >+ updates[dn] = {'dn': dn, 'default': cacrt_entry} >+ >+ return (False, True, [updates]) >+ >+api.register(update_upload_cacrt) >-- >1.7.11.7 >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 876307
:
657525
| 657526 |
657527
|
657528