id int64 0 458k | file_name stringlengths 4 119 | file_path stringlengths 14 227 | content stringlengths 24 9.96M | size int64 24 9.96M | language stringclasses 1
value | extension stringclasses 14
values | total_lines int64 1 219k | avg_line_length float64 2.52 4.63M | max_line_length int64 5 9.91M | alphanum_fraction float64 0 1 | repo_name stringlengths 7 101 | repo_stars int64 100 139k | repo_forks int64 0 26.4k | repo_open_issues int64 0 2.27k | repo_license stringclasses 12
values | repo_extraction_date stringclasses 433
values |
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
16,700 | pemfile.py | freeipa_freeipa/ipaserver/secrets/handlers/pemfile.py | #
# Copyright (C) 2019 IPA Project Contributors, see COPYING for license
#
"""Export / import PEM cert and key file as PKCS#12 data
"""
import base64
import json
import os
from ipaplatform.paths import paths
from ipaplatform.tasks import tasks
from ipapython import ipautil
from . import common
def export_key(args, ... | 3,331 | Python | .py | 108 | 24.833333 | 76 | 0.631497 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,701 | nsswrappedcert.py | freeipa_freeipa/ipaserver/secrets/handlers/nsswrappedcert.py | #
# Copyright (C) 2019 IPA Project Contributors, see COPYING for license
#
"""Export and wrap key from NSS DB
"""
import os
from ipaplatform.paths import paths
from ipapython import ipautil
from ipapython.certdb import NSSDatabase
from . import common
def export_key(args, tmpdir):
"""Export key and certificate ... | 3,123 | Python | .py | 108 | 22.527778 | 76 | 0.619286 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,702 | dmldap.py | freeipa_freeipa/ipaserver/secrets/handlers/dmldap.py | #
# Copyright (C) 2019 IPA Project Contributors, see COPYING for license
#
"""Export / import Directory Manager password hash
"""
import json
import os
from ipalib import api
from ipalib import errors
from ipaplatform.paths import paths
from ipapython.dn import DN
from ipapython.ipaldap import LDAPClient, realm_to_ld... | 1,625 | Python | .py | 50 | 28.04 | 73 | 0.685019 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,703 | nsscert.py | freeipa_freeipa/ipaserver/secrets/handlers/nsscert.py | #
# Copyright (C) 2019 IPA Project Contributors, see COPYING for license
#
"""Export / import cert and key from NSS DB as PKCS#12 data
"""
import base64
import json
import os
from ipaplatform.paths import paths
from ipapython import ipautil
from ipapython.certdb import NSSDatabase
from . import common
def export_ke... | 2,909 | Python | .py | 100 | 23.27 | 71 | 0.634733 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,704 | common.py | freeipa_freeipa/ipaserver/secrets/handlers/common.py | #
# Copyright (C) 2019 IPA Project Contributors, see COPYING for license
#
"""Common helpers for handlers
"""
import argparse
import base64
import json
import shutil
import tempfile
def default_json(obj):
"""JSON encoder default handler
"""
if isinstance(obj, (bytes, bytearray)):
return base64.b6... | 1,805 | Python | .py | 63 | 22.761905 | 73 | 0.640462 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,705 | root.py | freeipa_freeipa/ipaserver/custodia/root.py | # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
import json
from ipaserver.custodia.plugin import HTTPConsumer, PluginOption
from ipaserver.custodia.secrets import Secrets
class Root(HTTPConsumer):
store = PluginOption('store', None, None)
def _... | 652 | Python | .py | 14 | 41.142857 | 71 | 0.708861 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,706 | plugin.py | freeipa_freeipa/ipaserver/custodia/plugin.py | # Copyright (C) 2016 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
import abc
import configparser
import grp
import inspect
import json
import pwd
import re
from jwcrypto.common import json_encode
import six
from .log import CustodiaLoggingAdapter, auditlog, getLogger
lo... | 14,004 | Python | .py | 372 | 28.505376 | 78 | 0.598004 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,707 | secrets.py | freeipa_freeipa/ipaserver/custodia/secrets.py | # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
import json
import os
from base64 import b64decode, b64encode
from ipaserver.custodia import log
from ipaserver.custodia.message.common import UnallowedMessage
from ipaserver.custodia.message.common import Un... | 14,709 | Python | .py | 354 | 30.338983 | 79 | 0.573655 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,708 | log.py | freeipa_freeipa/ipaserver/custodia/log.py | # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
import logging
import sys
import warnings
import six
LOGGING_FORMAT = "%(asctime)s - %(origin)-32s - %(message)s"
LOGGING_DATEFORMAT = "%Y-%m-%d %H:%M:%S"
class OriginContextFilter(logging.Filter):
"... | 6,513 | Python | .py | 154 | 35.292208 | 78 | 0.643682 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,709 | authorizers.py | freeipa_freeipa/ipaserver/custodia/httpd/authorizers.py | # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
import os
from ipaserver.custodia import log
from ipaserver.custodia.plugin import HTTPAuthorizer
class SimplePathAuthz(HTTPAuthorizer):
# keep SimplePathAuthz an old-style plugin for now.
# KEMKeys... | 1,600 | Python | .py | 38 | 30.342105 | 74 | 0.561494 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,710 | authenticators.py | freeipa_freeipa/ipaserver/custodia/httpd/authenticators.py | # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
from ipaserver.custodia import log
from ipaserver.custodia.plugin import HTTPAuthenticator, PluginOption
class SimpleCredsAuth(HTTPAuthenticator):
uid = PluginOption('pwd_uid', -1, "User id or name, -1 i... | 2,053 | Python | .py | 44 | 34 | 75 | 0.563718 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,711 | server.py | freeipa_freeipa/ipaserver/custodia/httpd/server.py | # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
import atexit
import errno
import os
import shutil
import socket
import struct
import sys
import warnings
from http.server import BaseHTTPRequestHandler
from socketserver import ForkingTCPServer, BaseServer
f... | 18,530 | Python | .py | 438 | 30.769406 | 78 | 0.584864 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,712 | kem.py | freeipa_freeipa/ipaserver/custodia/message/kem.py | # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
import os
import time
from jwcrypto.common import json_decode
from jwcrypto.common import json_encode
from jwcrypto.jwe import JWE
from jwcrypto.jwk import JWK
from jwcrypto.jws import JWS
from jwcrypto.jwt i... | 8,544 | Python | .py | 196 | 33.770408 | 76 | 0.606002 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,713 | formats.py | freeipa_freeipa/ipaserver/custodia/message/formats.py | # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
from ipaserver.custodia.message.common import InvalidMessage
from ipaserver.custodia.message.common import UnallowedMessage
from ipaserver.custodia.message.common import UnknownMessageType
from ipaserver.custo... | 2,081 | Python | .py | 47 | 35 | 79 | 0.624194 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,714 | simple.py | freeipa_freeipa/ipaserver/custodia/message/simple.py | # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
from six import string_types
from ipaserver.custodia.message.common import InvalidMessage
from ipaserver.custodia.message.common import MessageHandler
class SimpleKey(MessageHandler):
"""Handles 'simple... | 1,232 | Python | .py | 29 | 34.413793 | 76 | 0.667227 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,715 | common.py | freeipa_freeipa/ipaserver/custodia/message/common.py | # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
from ipaserver.custodia.log import getLogger
logger = getLogger(__name__)
class InvalidMessage(Exception):
"""Invalid Message.
This exception is raised when a message cannot be parsed
or valida... | 1,691 | Python | .py | 47 | 29.425532 | 76 | 0.671596 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,716 | __main__.py | freeipa_freeipa/ipaserver/custodia/server/__main__.py | # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
from ipaserver.custodia.server import main
if __name__ == '__main__':
main()
| 193 | Python | .py | 5 | 36.4 | 70 | 0.731183 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,717 | config.py | freeipa_freeipa/ipaserver/custodia/server/config.py | # Copyright (C) 2015-2017 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
import configparser
import glob
import os
import socket
from urllib.parse import quote as url_escape
class CustodiaConfig:
CONFIG_SPECIALS = ['authenticators', 'authorizers', 'consumers', 'stores']
... | 5,262 | Python | .py | 129 | 30.922481 | 78 | 0.589377 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,718 | __init__.py | freeipa_freeipa/ipaserver/custodia/server/__init__.py | # Copyright (C) 2015 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
import importlib
import os
import pkg_resources
import six
from ipaserver.custodia import log
from ipaserver.custodia.httpd.server import HTTPServer
from .args import default_argparser
from .args import pa... | 4,656 | Python | .py | 118 | 31.152542 | 76 | 0.613203 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,719 | args.py | freeipa_freeipa/ipaserver/custodia/server/args.py | # Copyright (C) 2015-2017 Custodia Project Contributors - see LICENSE file
from __future__ import absolute_import
import argparse
import os
class AbsFileType(argparse.FileType):
"""argparse file type with absolute path
"""
def __call__(self, string):
if string != '-':
string = os.pat... | 2,096 | Python | .py | 66 | 25.606061 | 75 | 0.660218 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,720 | odsmgr.py | freeipa_freeipa/ipaserver/dnssec/odsmgr.py | #
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
#
import logging
import dns.name
import re
try:
from xml.etree import cElementTree as etree
except ImportError:
from xml.etree import ElementTree as etree
from ipapython import ipa_log_manager, ipautil
from ipaserver.dnssec.opendnssec impor... | 8,827 | Python | .py | 203 | 34.157635 | 79 | 0.599464 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,721 | _ods21.py | freeipa_freeipa/ipaserver/dnssec/_ods21.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
import os
import dateutil.tz
from ipaserver.dnssec._odsbase import AbstractODSDBConnection
from ipaserver.dnssec._odsbase import AbstractODSSignerConn
from ipaserver.dnssec._odsbase import ODS_SE_MAXLINE
from ipaplatform.constants import constants... | 4,031 | Python | .py | 99 | 31.494949 | 71 | 0.590026 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,722 | _odsbase.py | freeipa_freeipa/ipaserver/dnssec/_odsbase.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
import six
import abc
import sqlite3
from ipaplatform.paths import paths
ODS_SE_MAXLINE = 1024 # from ODS common/config.h
@six.add_metaclass(abc.ABCMeta)
class AbstractODSDBConnection():
"""Abstract class representing the Connection to ODS ... | 1,475 | Python | .py | 40 | 31.475 | 69 | 0.675334 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,723 | temp.py | freeipa_freeipa/ipaserver/dnssec/temp.py | #
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
#
import errno
import shutil
import tempfile
class TemporaryDirectory:
def __init__(self, root):
self.root = root
def __enter__(self):
self.name = tempfile.mkdtemp(dir=self.root)
return self.name
def __exit__(s... | 499 | Python | .py | 18 | 21.333333 | 66 | 0.62605 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,724 | _ods14.py | freeipa_freeipa/ipaserver/dnssec/_ods14.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
import os
import socket
from ipapython import ipautil
from ipaserver.dnssec._odsbase import AbstractODSDBConnection
from ipaserver.dnssec._odsbase import AbstractODSSignerConn
from ipaserver.dnssec._odsbase import ODS_SE_MAXLINE
from ipaplatform.c... | 2,772 | Python | .py | 69 | 32.391304 | 68 | 0.63511 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,725 | localhsm.py | freeipa_freeipa/ipaserver/dnssec/localhsm.py | #
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
#
from __future__ import print_function, absolute_import
from collections.abc import MutableMapping
import os
from pprint import pprint
from ipalib.constants import SOFTHSM_DNSSEC_TOKEN_LABEL
from ipaplatform.paths import paths
from ipaserver impor... | 7,848 | Python | .py | 181 | 34.353591 | 115 | 0.608661 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,726 | ldapkeydb.py | freeipa_freeipa/ipaserver/dnssec/ldapkeydb.py | #
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
#
from __future__ import print_function, absolute_import
from binascii import hexlify
from collections.abc import MutableMapping
import logging
from pprint import pprint
import ipalib
from ipaplatform.paths import paths
from ipapython.dn import DN
... | 16,641 | Python | .py | 412 | 30.036408 | 145 | 0.588447 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,727 | bindmgr.py | freeipa_freeipa/ipaserver/dnssec/bindmgr.py | #
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
from datetime import datetime
import logging
import dns.name
import errno
import os
import shutil
import stat
import six
import ipalib.constants
from ipapython.dn import DN
from ipapython import ipautil
f... | 8,934 | Python | .py | 202 | 34.212871 | 116 | 0.596709 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,728 | syncrepl.py | freeipa_freeipa/ipaserver/dnssec/syncrepl.py | # -*- coding: utf-8 -*-
#
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
#
"""
This script implements a syncrepl consumer which syncs data from server
to a local dict.
"""
import logging
import ldap
from ldap.cidict import cidict
from ldap.ldapobject import ReconnectLDAPObject
from ldap.syncrepl i... | 4,368 | Python | .py | 100 | 34.83 | 78 | 0.625676 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,729 | keysyncer.py | freeipa_freeipa/ipaserver/dnssec/keysyncer.py | #
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import logging
import ldap.dn
import os
import dns.name
from ipaplatform.paths import paths
from ipapython import ipautil
from ipaserver.dnssec.syncrepl import SyncReplConsumer
from ipaserver.dnssec.odsmg... | 6,887 | Python | .py | 163 | 33.159509 | 79 | 0.627524 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,730 | abshsm.py | freeipa_freeipa/ipaserver/dnssec/abshsm.py | #
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
#
import logging
from ipaserver import p11helper as _ipap11helper
logger = logging.getLogger(__name__)
attrs_id2name = {
#_ipap11helper.CKA_ALLOWED_MECHANISMS: 'ipk11allowedmechanisms',
_ipap11helper.CKA_ALWAYS_AUTHENTICATE: 'ipk11alwaysau... | 6,891 | Python | .py | 166 | 34.277108 | 84 | 0.665124 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,731 | opendnssec.py | freeipa_freeipa/ipaserver/dnssec/opendnssec.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
import os
from ipaplatform.paths import paths
# pylint: disable=unused-import
if paths.ODS_KSMUTIL is not None and os.path.exists(paths.ODS_KSMUTIL):
from ._ods14 import ODSDBConnection, ODSSignerConn, ODSTask
else:
from ._ods21 import ODS... | 376 | Python | .py | 11 | 32.181818 | 71 | 0.798343 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,732 | __init__.py | freeipa_freeipa/ipaserver/advise/__init__.py | # Authors: Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2013 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 ... | 821 | Python | .py | 21 | 38.047619 | 71 | 0.772215 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,733 | base.py | freeipa_freeipa/ipaserver/advise/base.py | # Authors: Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2013 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 ... | 17,433 | Python | .py | 439 | 31.366743 | 80 | 0.632926 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,734 | smart_card_auth.py | freeipa_freeipa/ipaserver/advise/plugins/smart_card_auth.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import sys
from ipalib.plugable import Registry
from ipaplatform import services
from ipaplatform.paths import paths
from ipaserver.advise.base import Advice
from ipaserver.install.httpinstance import OCSP_EN... | 14,496 | Python | .py | 315 | 35.069841 | 78 | 0.597991 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,735 | legacy_clients.py | freeipa_freeipa/ipaserver/advise/plugins/legacy_clients.py | # Authors: Ana Krivokapic <akrivoka@redhat.com>
#
# Copyright (C) 2013 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 ver... | 15,707 | Python | .py | 306 | 38.905229 | 79 | 0.581066 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,736 | admins_sudo.py | freeipa_freeipa/ipaserver/advise/plugins/admins_sudo.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
from ipalib.plugable import Registry
from ipaserver.advise.base import Advice
register = Registry()
@register()
class enable_admins_sudo(Advice):
"""
Configures HBAC and SUDO for members of the admi... | 2,285 | Python | .py | 52 | 34.75 | 77 | 0.621962 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,737 | __init__.py | freeipa_freeipa/ipaserver/advise/plugins/__init__.py | # Authors: Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2013 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 ... | 824 | Python | .py | 21 | 38.190476 | 71 | 0.77182 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,738 | ipa_backup.py | freeipa_freeipa/ipaserver/install/ipa_backup.py | # Authors: Rob Crittenden <rcritten@redhat.com>
#
# Copyright (C) 2013 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 ver... | 27,619 | Python | .py | 690 | 28.686957 | 94 | 0.569415 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,739 | ipa_server_certinstall.py | freeipa_freeipa/ipaserver/install/ipa_server_certinstall.py | # Authors: Karl MacMillan <kmacmillan@mentalrootkit.com>
# Jan Cholasta <jcholast@redhat.com>
#
# Copyright (C) 2007-2013 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 Licens... | 12,904 | Python | .py | 280 | 34.25 | 80 | 0.597089 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,740 | sysupgrade.py | freeipa_freeipa/ipaserver/install/sysupgrade.py | # Authors: Martin Kosek <mkosek@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... | 1,670 | Python | .py | 45 | 34.444444 | 75 | 0.753408 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,741 | ipa_subids.py | freeipa_freeipa/ipaserver/install/ipa_subids.py | #
# Copyright (C) 2021 FreeIPA Contributors see COPYING for license
#
import logging
from ipalib import api
from ipalib import errors
from ipalib.facts import is_ipa_configured
from ipaplatform.paths import paths
from ipapython.admintool import AdminTool, ScriptError
from ipapython.dn import DN
from ipapython.versio... | 4,789 | Python | .py | 134 | 25.470149 | 79 | 0.566803 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,742 | ipa_crlgen_manage.py | freeipa_freeipa/ipaserver/install/ipa_crlgen_manage.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
from __future__ import print_function, absolute_import
import os
import logging
from cryptography.hazmat.backends import default_backend
from cryptography import x509
from ipalib import api
from ipalib.errors import NetworkError
from ipaplatform.... | 4,305 | Python | .py | 99 | 31.89899 | 78 | 0.591593 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,743 | ipa_migrate.py | freeipa_freeipa/ipaserver/install/ipa_migrate.py | # ipa-migrate
#
# IPA to IPA migration tool
#
# Copyright (C) 2023 FreeIPA Contributors see COPYING for license
#
# PYTHON_ARGCOMPLETE_OK
import argcomplete
import argparse
import base64
import datetime
import getpass
import ldap
import ldif
import logging
import os
import socket
import subprocess
import sys
import t... | 89,968 | Python | .py | 1,940 | 30.581959 | 79 | 0.50587 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,744 | ipa_pkinit_manage.py | freeipa_freeipa/ipaserver/install/ipa_pkinit_manage.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
from __future__ import print_function, absolute_import
import logging
from ipalib import api
from ipaplatform.paths import paths
from ipapython.admintool import AdminTool
from ipaserver.install import installutils
from ipaserver.install.krbinstan... | 3,090 | Python | .py | 81 | 28.123457 | 76 | 0.599933 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,745 | conncheck.py | freeipa_freeipa/ipaserver/install/conncheck.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
"""
Connection check module
"""
from ipalib.install import service
from ipalib.install.service import enroll_only, replica_install_only
from ipapython.install.core import knob
class ConnCheckInterface(service.ServiceAdminInstallInterface):
"... | 644 | Python | .py | 20 | 28.55 | 76 | 0.764136 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,746 | acmeinstance.py | freeipa_freeipa/ipaserver/install/acmeinstance.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
import logging
from ipaserver.install.dogtaginstance import DogtagInstance
logger = logging.getLogger(__name__)
class ACMEInstance(DogtagInstance):
"""
ACME is deployed automatically with a CA subsystem but it is the
responsibility ... | 872 | Python | .py | 24 | 30.375 | 68 | 0.700357 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,747 | opendnssecinstance.py | freeipa_freeipa/ipaserver/install/opendnssecinstance.py | #
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import logging
import os
import stat
import shutil
from subprocess import CalledProcessError
from ipalib.install import sysrestore
from ipaserver.dnssec.opendnssec import tasks
from ipaserver.install import ... | 13,849 | Python | .py | 306 | 33.068627 | 95 | 0.591098 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,748 | bindinstance.py | freeipa_freeipa/ipaserver/install/bindinstance.py | # Authors: Simo Sorce <ssorce@redhat.com>
#
# Copyright (C) 2007 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... | 49,131 | Python | .py | 1,149 | 31.720627 | 96 | 0.589713 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,749 | dsinstance.py | freeipa_freeipa/ipaserver/install/dsinstance.py | # Authors: Karl MacMillan <kmacmillan@mentalrootkit.com>
# Simo Sorce <ssorce@redhat.com>
#
# Copyright (C) 2007 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 publ... | 52,804 | Python | .py | 1,169 | 33.88024 | 113 | 0.600739 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,750 | ipa_restore.py | freeipa_freeipa/ipaserver/install/ipa_restore.py | # Authors: Rob Crittenden <rcritten@redhat.com>
#
# Copyright (C) 2013 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 ver... | 36,050 | Python | .py | 825 | 30.807273 | 113 | 0.56342 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,751 | dogtag.py | freeipa_freeipa/ipaserver/install/dogtag.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
"""
Dogtag-based service installer module
"""
from ipalib.install import service
from ipalib.install.service import prepare_only, replica_install_only
from ipapython.install.core import knob
from ipaserver.install.dogtaginstance import PKIIniLoade... | 999 | Python | .py | 30 | 28.333333 | 69 | 0.717256 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,752 | krainstance.py | freeipa_freeipa/ipaserver/install/krainstance.py | # Authors: Ade Lee <alee@redhat.com>
#
# Copyright (C) 2014 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 t... | 12,835 | Python | .py | 301 | 32.601329 | 78 | 0.615557 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,753 | dogtaginstance.py | freeipa_freeipa/ipaserver/install/dogtaginstance.py | # Authors: Ade Lee <alee@redhat.com>
#
# Copyright (C) 2014 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 t... | 46,232 | Python | .py | 1,112 | 30.516187 | 79 | 0.584924 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,754 | ipa_server_install.py | freeipa_freeipa/ipaserver/install/ipa_server_install.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
from ipapython.install import cli
from ipapython.install.core import extend_knob
from ipaplatform.paths import paths
from ipaserver.install.server import ServerMasterInstall
class CompatServerMasterInstall(... | 1,286 | Python | .py | 39 | 27.897436 | 72 | 0.718447 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,755 | odsexporterinstance.py | freeipa_freeipa/ipaserver/install/odsexporterinstance.py | #
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import logging
import os
import ldap
from ipaserver.install import service
from ipaserver.install import installutils
from ipapython.dn import DN
from ipapython import directivesetter
from ipapython import ... | 5,908 | Python | .py | 137 | 32.635036 | 85 | 0.616042 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,756 | kra.py | freeipa_freeipa/ipaserver/install/kra.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
"""
KRA installer module
"""
from __future__ import absolute_import
import logging
import os
from ipalib import api
from ipalib.kinit import kinit_keytab
from ipaplatform import services
from ipaplatform.paths import paths
from ipapython import ... | 7,161 | Python | .py | 187 | 30.187166 | 80 | 0.651773 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,757 | __init__.py | freeipa_freeipa/ipaserver/install/__init__.py | # Authors: Karl MacMillan <kmacmillan@mentalrootkit.com>
# see inline
#
# Copyright (C) 2007 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 ... | 803 | Python | .py | 19 | 41.263158 | 71 | 0.769133 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,758 | replication.py | freeipa_freeipa/ipaserver/install/replication.py | # Authors: Karl MacMillan <kmacmillan@mentalrootkit.com>
#
# Copyright (C) 2007 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, e... | 79,875 | Python | .py | 1,797 | 32.531998 | 187 | 0.573934 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,759 | ipa_cert_fix.py | freeipa_freeipa/ipaserver/install/ipa_cert_fix.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
# ipa-cert-fix performs the following steps:
#
# 1. Confirm running as root (AdminTool.validate_options does this)
#
# 2. Confirm that DS is up.
#
# 3. Determine which of following certs (if any) need renewing
# - IPA RA
# - Apache HTTPS
# ... | 14,787 | Python | .py | 356 | 33.002809 | 79 | 0.635889 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,760 | adtrust.py | freeipa_freeipa/ipaserver/install/adtrust.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""
AD trust installer module
"""
from __future__ import print_function, absolute_import
import logging
import os
import six
from ipalib.constants import MIN_DOMAIN_LEVEL
from ipalib import create_api, rpc
from ipalib import errors
from ipalib.i... | 21,475 | Python | .py | 507 | 32.781065 | 79 | 0.62988 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,761 | ipa_ldap_updater.py | freeipa_freeipa/ipaserver/install/ipa_ldap_updater.py | # Authors: Rob Crittenden <rcritten@redhat.com>
# Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 2008 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 publishe... | 4,901 | Python | .py | 120 | 32.825 | 79 | 0.662732 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,762 | otpdinstance.py | freeipa_freeipa/ipaserver/install/otpdinstance.py | # Authors: Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2013 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 ... | 948 | Python | .py | 22 | 41.409091 | 71 | 0.771398 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,763 | ipa_otptoken_import.py | freeipa_freeipa/ipaserver/install/ipa_otptoken_import.py | # Authors: Nathaniel McCallum <npmccallum@redhat.com>
#
# Copyright (C) 2014 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, eith... | 20,343 | Python | .py | 458 | 34.877729 | 111 | 0.595619 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,764 | ipa_migrate_constants.py | freeipa_freeipa/ipaserver/install/ipa_migrate_constants.py | # ipa-migrate constants
#
# Lists of all the plugins and settings
#
# Copyright (C) 2023 FreeIPA Contributors see COPYING for license
# Generic constants
BIND_DN = "cn=directory manager"
LOG_FILE_NAME = "/var/log/ipa-migrate.log"
LDIF_FILE_NAME = "/var/log/ipa-migrate.ldif"
CONFLICT_FILE_NAME = "/var/log/ipa-migrate-... | 33,763 | Python | .py | 1,064 | 23.485902 | 79 | 0.551246 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,765 | ldapupdate.py | freeipa_freeipa/ipaserver/install/ldapupdate.py | # Authors: Rob Crittenden <rcritten@redhat.com>
#
# Copyright (C) 2008 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 ver... | 37,807 | Python | .py | 910 | 28.39011 | 143 | 0.534574 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,766 | service.py | freeipa_freeipa/ipaserver/install/service.py | # Authors: Karl MacMillan <kmacmillan@mentalrootkit.com>
#
# Copyright (C) 2007 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, e... | 31,605 | Python | .py | 776 | 30.679124 | 101 | 0.60032 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,767 | dnskeysyncinstance.py | freeipa_freeipa/ipaserver/install/dnskeysyncinstance.py | #
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
#
from __future__ import print_function, absolute_import
import errno
import logging
import os
import re
import shutil
import stat
import ldap
from ipaserver import p11helper as _ipap11helper
from ipapython.dnsutil import DNSName
from ipaserver.in... | 20,336 | Python | .py | 444 | 33.175676 | 85 | 0.580565 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,768 | certs.py | freeipa_freeipa/ipaserver/install/certs.py | # Authors: Karl MacMillan <kmacmillan@mentalrootkit.com>
#
# Copyright (C) 2007 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, e... | 27,376 | Python | .py | 679 | 30.223859 | 102 | 0.594651 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,769 | custodiainstance.py | freeipa_freeipa/ipaserver/install/custodiainstance.py | # Copyright (C) 2015 FreeIPa Project Contributors, see 'COPYING' for license.
from __future__ import print_function, absolute_import
import enum
import logging
from ipalib import api
from ipaserver.secrets.kem import IPAKEMKeys, KEMLdap
from ipaserver.secrets.client import CustodiaClient
from ipaplatform.paths impor... | 11,407 | Python | .py | 267 | 32.179775 | 78 | 0.60409 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,770 | ca.py | freeipa_freeipa/ipaserver/install/ca.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
"""
CA installer module
"""
from __future__ import print_function, absolute_import
import enum
import logging
import os.path
import pki.util
import six
from ipalib.constants import IPA_CA_CN
from ipalib.install import certstore
from ipalib.inst... | 31,230 | Python | .py | 726 | 33.769972 | 89 | 0.634978 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,771 | ipa_cacert_manage.py | freeipa_freeipa/ipaserver/install/ipa_cacert_manage.py | # Authors: Jan Cholasta <jcholast@redhat.com>
#
# Copyright (C) 2014 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 versi... | 23,135 | Python | .py | 488 | 33.534836 | 79 | 0.565827 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,772 | ipa_acme_manage.py | freeipa_freeipa/ipaserver/install/ipa_acme_manage.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
import enum
import pki.util
import logging
from optparse import OptionGroup # pylint: disable=deprecated-module
from ipalib import api, errors, x509
from ipalib import _
from ipalib.facts import is_ipa_configured
from ipaplatform.paths import p... | 16,359 | Python | .py | 361 | 33.218837 | 80 | 0.586501 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,773 | adtrustinstance.py | freeipa_freeipa/ipaserver/install/adtrustinstance.py | # Authors: Sumit Bose <sbose@redhat.com>
#
# Copyright (C) 2011 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 ... | 37,574 | Python | .py | 830 | 32.881928 | 96 | 0.571257 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,774 | ipa_replica_install.py | freeipa_freeipa/ipaserver/install/ipa_replica_install.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
from ipapython.install import cli
from ipapython.install.core import knob, extend_knob
from ipaplatform.paths import paths
from ipaserver.install.server import ServerReplicaInstall
class CompatServerReplica... | 2,488 | Python | .py | 71 | 27.985915 | 76 | 0.673614 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,775 | httpinstance.py | freeipa_freeipa/ipaserver/install/httpinstance.py | # Authors: Rob Crittenden <rcritten@redhat.com>
#
# Copyright (C) 2007 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 ver... | 27,922 | Python | .py | 597 | 33.842546 | 84 | 0.583174 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,776 | schemaupdate.py | freeipa_freeipa/ipaserver/install/schemaupdate.py | # Authors: Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 2013 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 versi... | 6,884 | Python | .py | 142 | 38.816901 | 87 | 0.640012 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,777 | ipa_server_upgrade.py | freeipa_freeipa/ipaserver/install/ipa_server_upgrade.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import logging
from ipalib import api
from ipaplatform.paths import paths
from ipapython import admintool
from ipaserver.install import installutils
from ipaserver.install import server
logger = logging.get... | 2,141 | Python | .py | 48 | 34.833333 | 80 | 0.645161 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,778 | installutils.py | freeipa_freeipa/ipaserver/install/installutils.py | # Authors: Simo Sorce <ssorce@redhat.com>
#
# Copyright (C) 2007 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... | 54,233 | Python | .py | 1,345 | 30.810409 | 220 | 0.607926 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,779 | ipa_idrange_fix.py | freeipa_freeipa/ipaserver/install/ipa_idrange_fix.py | """Tool to analyze and fix IPA ID ranges"""
#
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
import logging
import ldap
from ipalib import api, errors
from ipapython.admintool import AdminTool
from ipapython.dn import DN
from ipapython import ipautil
from typing import List, Tuple
logger = logg... | 36,032 | Python | .py | 931 | 28.629431 | 79 | 0.578476 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,780 | ipa_winsync_migrate.py | freeipa_freeipa/ipaserver/install/ipa_winsync_migrate.py | # Authors: Tomas Babej <tbabej@redhat.com>
#
# Copyright (C) 2015 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 ... | 14,726 | Python | .py | 326 | 33.395706 | 100 | 0.599916 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,781 | ipactl.py | freeipa_freeipa/ipaserver/install/ipactl.py | # Authors: Simo Sorce <ssorce@redhat.com>
#
# Copyright (C) 2008-2019 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 vers... | 22,802 | Python | .py | 638 | 26.275862 | 78 | 0.589366 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,782 | krbinstance.py | freeipa_freeipa/ipaserver/install/krbinstance.py | # Authors: Simo Sorce <ssorce@redhat.com>
#
# Copyright (C) 2007 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... | 25,787 | Python | .py | 565 | 34.269027 | 156 | 0.60168 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,783 | ipa_kra_install.py | freeipa_freeipa/ipaserver/install/ipa_kra_install.py | # Authors: Ade Lee <alee@redhat.com>
#
# Copyright (C) 2014 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 t... | 9,069 | Python | .py | 205 | 34.24878 | 79 | 0.631991 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,784 | cainstance.py | freeipa_freeipa/ipaserver/install/cainstance.py | # Authors: Rob Crittenden <rcritten@redhat.com>
# Ade Lee <alee@redhat.com>
# Andrew Wnuk <awnuk@redhat.com>
#
# Copyright (C) 2009 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 Ge... | 91,273 | Python | .py | 2,102 | 32.4196 | 140 | 0.594447 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,785 | upgradeinstance.py | freeipa_freeipa/ipaserver/install/upgradeinstance.py | # Authors: Rob Crittenden <rcritten@redhat.com>
#
# Copyright (C) 2010 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 ver... | 11,483 | Python | .py | 252 | 34.900794 | 108 | 0.608906 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,786 | ipa_trust_enable_agent.py | freeipa_freeipa/ipaserver/install/ipa_trust_enable_agent.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
from __future__ import print_function, absolute_import
import logging
from ipalib import api
from ipaplatform import services
from ipaplatform.paths import paths
from ipapython.admintool import AdminTool, ScriptError
from ipapython.dn import DN
... | 3,353 | Python | .py | 75 | 33.52 | 78 | 0.616564 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,787 | dns.py | freeipa_freeipa/ipaserver/install/dns.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
"""
DNS installer module
"""
from __future__ import absolute_import
from __future__ import print_function
import enum
import logging
import os
import sys
import six
from subprocess import CalledProcessError
from ipalib import api
from ipalib im... | 19,715 | Python | .py | 455 | 33.876923 | 96 | 0.636833 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,788 | upgrade.py | freeipa_freeipa/ipaserver/install/server/upgrade.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from __future__ import print_function, absolute_import
import errno
import itertools
import logging
import re
import os
import glob
import shutil
import fileinput
import stat
import sys
import tempfile
from contextlib import contextmanager
from au... | 69,591 | Python | .py | 1,719 | 31.951716 | 79 | 0.635968 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,789 | __init__.py | freeipa_freeipa/ipaserver/install/server/__init__.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
"""
Server installer module
"""
import os.path
import random
from ipaclient.install import client
from ipalib import constants
from ipalib.util import validate_domain_name
from ipalib.install import service
from ipalib.install.service import (enro... | 21,786 | Python | .py | 548 | 29.182482 | 80 | 0.601088 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,790 | replicainstall.py | freeipa_freeipa/ipaserver/install/server/replicainstall.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from __future__ import print_function, absolute_import
import contextlib
import logging
import dns.exception as dnsexception
import dns.name as dnsname
import itertools
import os
import shutil
import socket
import sys
import tempfile
import textw... | 56,797 | Python | .py | 1,303 | 33.177283 | 79 | 0.617681 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,791 | install.py | freeipa_freeipa/ipaserver/install/server/install.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from __future__ import print_function, absolute_import
import errno
import logging
import os
import pickle
import re
import shutil
import sys
import time
import tempfile
import textwrap
import six
from ipaclient.install import timeconf
from ipac... | 50,942 | Python | .py | 1,163 | 34.05589 | 81 | 0.626177 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,792 | update_fix_duplicate_cacrt_in_ldap.py | freeipa_freeipa/ipaserver/install/plugins/update_fix_duplicate_cacrt_in_ldap.py | # Authors:
# Florence Blanc-Renaud <flo@redhat.com>
#
# Copyright (C) 2017 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, eith... | 3,260 | Python | .py | 78 | 33.666667 | 77 | 0.642902 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,793 | update_referint.py | freeipa_freeipa/ipaserver/install/plugins/update_referint.py | #
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
#
import logging
from ipalib import Registry, errors
from ipalib import Updater
from ipapython.dn import DN
logger = logging.getLogger(__name__)
register = Registry()
@register()
class update_referint(Updater):
"""
Update referential int... | 3,185 | Python | .py | 72 | 34.916667 | 85 | 0.630779 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,794 | update_ca_topology.py | freeipa_freeipa/ipaserver/install/plugins/update_ca_topology.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import logging
from ipalib import errors
from ipalib import Registry
from ipalib import Updater
from ipapython.dn import DN
from ipaserver.install import cainstance
from ipaserver.install import ldapupdate
f... | 1,501 | Python | .py | 43 | 27.674419 | 78 | 0.650485 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,795 | ca_renewal_master.py | freeipa_freeipa/ipaserver/install/plugins/ca_renewal_master.py | # Authors:
# Jan Cholasta <jcholast@redhat.com>
#
# Copyright (C) 2014 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 v... | 4,070 | Python | .py | 104 | 28.413462 | 79 | 0.570922 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,796 | update_unhashed_password.py | freeipa_freeipa/ipaserver/install/plugins/update_unhashed_password.py | # Authors:
# Thierry Bordaz <tbordaz@redhat.com>
#
# Copyright (C) 2019 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 ... | 5,874 | Python | .py | 127 | 31.614173 | 79 | 0.529391 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,797 | update_passsync.py | freeipa_freeipa/ipaserver/install/plugins/update_passsync.py | #
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
#
import logging
from ipalib import Registry, errors
from ipalib import Updater
from ipapython.dn import DN
from ipaserver.install import sysupgrade
logger = logging.getLogger(__name__)
register = Registry()
@register()
class update_passync_priv... | 2,794 | Python | .py | 66 | 32.969697 | 91 | 0.630996 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,798 | update_ra_cert_store.py | freeipa_freeipa/ipaserver/install/plugins/update_ra_cert_store.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import logging
import os
import tempfile
from ipalib import Registry
from ipalib import Updater
from ipalib.install import certmonger
from ipaplatform.paths import paths
from ipapython.certdb import NSSDatab... | 2,350 | Python | .py | 58 | 32.051724 | 77 | 0.642951 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,799 | update_ldap_server_list.py | freeipa_freeipa/ipaserver/install/plugins/update_ldap_server_list.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from ipalib import Registry
from ipalib import Updater
from ipalib import errors
from ipapython.dn import DN
register = Registry()
@register()
class update_ldap_server_list(Updater):
"""
Update defaultServerList, an option that helps Sol... | 1,082 | Python | .py | 32 | 26 | 74 | 0.619732 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |