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,600 | test_installation_client.py | freeipa_freeipa/ipatests/test_integration/test_installation_client.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""
Module provides tests for various options of ipa-client-install.
"""
from __future__ import absolute_import
import os
import pytest
import re
import shlex
import textwrap
from ipaplatform.paths import paths
from ipalib.sysrestore import SYSR... | 9,835 | Python | .py | 206 | 37.936893 | 78 | 0.62814 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,601 | test_pkinit_manage.py | freeipa_freeipa/ipatests/test_integration/test_pkinit_manage.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
"""
Module provides tests for the ipa-pkinit-manage command.
"""
from __future__ import absolute_import
from ipalib import x509
from ipaplatform.paths import paths
from ipapython.dn import DN
from ipatests.test_integration.base import Integration... | 5,304 | Python | .py | 119 | 37.957983 | 76 | 0.692919 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,602 | test_topologies.py | freeipa_freeipa/ipatests/test_integration/test_topologies.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 ... | 4,064 | Python | .py | 166 | 17.536145 | 71 | 0.437548 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,603 | test_external_ca.py | freeipa_freeipa/ipatests/test_integration/test_external_ca.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
#
# 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.... | 24,417 | Python | .py | 509 | 39.064833 | 79 | 0.64717 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,604 | test_customized_ds_config_install.py | freeipa_freeipa/ipatests/test_integration/test_customized_ds_config_install.py |
from ipatests.test_integration.base import IntegrationTest
from ipatests.pytest_ipa.integration import tasks
DIRSRV_CONFIG_MODS = """
# https://fedorahosted.org/freeipa/ticket/4949
# https://pagure.io/freeipa/issue/8515
dn: cn=bdb,cn=config,cn=ldbm database,cn=plugins,cn=config
changetype: modify
replace: nsslapd-db-... | 2,131 | Python | .py | 61 | 30.95082 | 74 | 0.755588 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,605 | test_dns.py | freeipa_freeipa/ipatests/test_integration/test_dns.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""This covers tests for dns related feature"""
from __future__ import absolute_import
from ipatests.pytest_ipa.integration import tasks
from ipatests.test_integration.base import IntegrationTest
class TestDNS(IntegrationTest):
"""Tests for ... | 1,524 | Python | .py | 32 | 37.625 | 78 | 0.62062 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,606 | prci_checker.py | freeipa_freeipa/ipatests/prci_definitions/prci_checker.py | #! /usr/bin/python3
import os
import glob
import sys
import argparse
from argparse import RawTextHelpFormatter
import yaml
# Get default DIR from script location
DEFAULT_DIR = os.path.dirname(os.path.abspath(__file__))
# Default jobs specification file name and path
JOBS_SPEC_YAML = "prci_jobs_spec.yaml"
JOBS_SPEC_PAT... | 14,824 | Python | .py | 370 | 31.048649 | 80 | 0.611215 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,607 | test_changeconf.py | freeipa_freeipa/ipatests/test_install/test_changeconf.py | # Copyright (C) 2018 FreeIPA Contributors see COPYING for license
from __future__ import absolute_import
import pytest
from ipapython.ipachangeconf import IPAChangeConf
@pytest.fixture(scope='function')
def config_filename(tmpdir):
filename = tmpdir.mkdir('data').join('config_file.conf')
filename.write('SO... | 1,444 | Python | .py | 39 | 30 | 79 | 0.638451 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,608 | test_install_checks.py | freeipa_freeipa/ipatests/test_install/test_install_checks.py | # Copyright (C) 2018 FreeIPA Contributors see COPYING for license
from __future__ import absolute_import
import tempfile
import pytest
from ipaclient.install.client import check_ldap_conf
from ipapython.admintool import ScriptError
@pytest.mark.parametrize("lines,expected", [
(["PORT 389"], "PORT"),
(["H... | 1,062 | Python | .py | 30 | 28.7 | 66 | 0.602927 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,609 | __init__.py | freeipa_freeipa/ipatests/test_install/__init__.py | # Authors:
# Jason Gerard DeRose <jderose@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, ei... | 896 | Python | .py | 23 | 37.826087 | 71 | 0.77931 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,610 | test_updates.py | freeipa_freeipa/ipatests/test_install/test_updates.py | # Authors:
# Rob Crittenden <rcritten@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 General Public License as published by
# the Free Software Foundation, either... | 9,375 | Python | .py | 217 | 32.930876 | 102 | 0.591114 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,611 | version.py.in | freeipa_freeipa/ipapython/version.py.in | # 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... | 2,038 | Python | .py | 47 | 42.148936 | 79 | 0.745078 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,612 | ipachangeconf.py | freeipa_freeipa/ipapython/ipachangeconf.py | #
# ipachangeconf - configuration file manipulation classes and functions
# partially based on authconfig code
# Copyright (c) 1999-2007 Red Hat, Inc.
# Author: Simo Sorce <ssorce@redhat.com>
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License ... | 20,086 | Python | .py | 505 | 24.522772 | 78 | 0.458043 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,613 | errors.py | freeipa_freeipa/ipapython/errors.py | # Authors: Petr Viktorin <pviktori@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 ve... | 1,984 | Python | .py | 42 | 41.47619 | 79 | 0.683531 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,614 | dn.py | freeipa_freeipa/ipapython/dn.py | # Authors:
# John Dennis <jdennis@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 ver... | 49,450 | Python | .py | 1,122 | 37.072193 | 109 | 0.640929 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,615 | setup.py | freeipa_freeipa/ipapython/setup.py | # 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 of the License, or
# (at your option) any l... | 1,655 | Python | .py | 49 | 27.632653 | 71 | 0.635456 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,616 | kerberos.py | freeipa_freeipa/ipapython/kerberos.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
"""
classes/utils for Kerberos principal name validation/manipulation
"""
import re
import six
from ipapython.ipautil import escape_seq, unescape_seq
if six.PY3:
unicode = str
REALM_SPLIT_RE = re.compile(r'(?<!\\)@')
COMPONENT_SPLIT_RE = re.c... | 6,300 | Python | .py | 155 | 32.412903 | 79 | 0.632382 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,617 | config.py | freeipa_freeipa/ipapython/config.py | # Authors: Karl MacMillan <kmacmill@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... | 9,406 | Python | .py | 241 | 30.020747 | 127 | 0.61686 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,618 | ssh.py | freeipa_freeipa/ipapython/ssh.py | # Authors:
# Jan Cholasta <jcholast@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 v... | 6,713 | Python | .py | 177 | 28.468927 | 142 | 0.564862 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,619 | session_storage.py | freeipa_freeipa/ipapython/session_storage.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
import ctypes
import sys
KRB5_CC_NOSUPP = -1765328137
if sys.platform == 'darwin':
LIBKRB5_FILENAME = 'libkrb5.dylib'
else:
LIBKRB5_FILENAME = 'libkrb5.so.3'
try:
LIBKRB5 = ctypes.CDLL(LIBKRB5_FILENAME)
except OSError as e: # pragm... | 13,247 | Python | .py | 316 | 33.708861 | 78 | 0.640423 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,620 | fqdn.py | freeipa_freeipa/ipapython/fqdn.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""Get host's FQDN
"""
import socket
def gethostfqdn():
"""Get the fully qualified domain name of current host from glibc
This function may return an FQDN with up to MAXHOSTFQDNLEN characters
(253). The effective hostname is still lim... | 1,220 | Python | .py | 29 | 36.793103 | 76 | 0.719461 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,621 | dogtag.py | freeipa_freeipa/ipapython/dogtag.py | # Authors: Rob Crittenden <rcritten@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 General Public License as published by
# the Free Software Foundation, either v... | 9,410 | Python | .py | 248 | 31.334677 | 102 | 0.661549 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,622 | ipavalidate.py | freeipa_freeipa/ipapython/ipavalidate.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... | 3,633 | Python | .py | 110 | 26.672727 | 79 | 0.622998 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,623 | ipautil.py | freeipa_freeipa/ipapython/ipautil.py | # Authors: Simo Sorce <ssorce@redhat.com>
#
# Copyright (C) 2007-2016 Red Hat, Inc.
# 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, eithe... | 60,554 | Python | .py | 1,485 | 31.182492 | 99 | 0.599731 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,624 | directivesetter.py | freeipa_freeipa/ipapython/directivesetter.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
import io
import os
import re
import stat
import tempfile
from ipapython.ipautil import unescape_seq, escape_seq
_SENTINEL = object()
class DirectiveSetter:
"""Safe directive setter
with DirectiveSetter('/path/to/conf') as ds:
d... | 7,673 | Python | .py | 196 | 30.204082 | 77 | 0.609304 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,625 | certdb.py | freeipa_freeipa/ipapython/certdb.py | # Authors: Rob Crittenden <rcritten@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 General Public License as published by
# the Free Software Foundation, either v... | 38,021 | Python | .py | 906 | 28.891832 | 79 | 0.533995 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,626 | graph.py | freeipa_freeipa/ipapython/graph.py | #
# Copyright (C) 2015-2017 FreeIPA Contributors see COPYING for license
#
from collections import deque
class Graph:
"""
Simple oriented graph structure
G = (V, E) where G is graph, V set of vertices and E list of edges.
E = (tail, head) where tail and head are vertices
"""
def __init__(se... | 2,490 | Python | .py | 72 | 25.472222 | 76 | 0.560366 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,627 | admintool.py | freeipa_freeipa/ipapython/admintool.py | # Authors:
# Petr Viktorin <pviktori@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 ... | 12,258 | Python | .py | 271 | 36.667897 | 79 | 0.652921 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,628 | ipa_log_manager.py | freeipa_freeipa/ipapython/ipa_log_manager.py | # Authors: John Dennis <jdennis@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,881 | Python | .py | 98 | 33.642857 | 83 | 0.678894 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,629 | kernel_keyring.py | freeipa_freeipa/ipapython/kernel_keyring.py | # Authors: Rob Crittenden <rcritten@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 ver... | 4,903 | Python | .py | 133 | 31.631579 | 76 | 0.689372 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,630 | cookie.py | freeipa_freeipa/ipapython/cookie.py | # Authors:
# John Dennis <jdennis@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 ver... | 24,920 | Python | .py | 545 | 35.743119 | 127 | 0.622906 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,631 | dnsutil.py | freeipa_freeipa/ipapython/dnsutil.py | # Authors: Martin Basti <mbasti@redhat.com>
#
# Copyright (C) 2007-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 ve... | 22,125 | Python | .py | 522 | 34.538314 | 83 | 0.635852 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,632 | ipaldap.py | freeipa_freeipa/ipapython/ipaldap.py | # Authors: Rich Megginson <richm@redhat.com>
# Rob Crittenden <rcritten@redhat.com>
# John Dennis <jdennis@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 ... | 73,826 | Python | .py | 1,711 | 32.005845 | 109 | 0.578535 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,633 | dn_ctypes.py | freeipa_freeipa/ipapython/dn_ctypes.py | #
# Copyright (C) 2019 FreeIPA Contributors see COPYING for license
#
"""ctypes wrapper for libldap_str2dn
"""
from __future__ import absolute_import
import ctypes
import ctypes.util
import six
__all__ = ("str2dn", "dn2str", "DECODING_ERROR", "LDAPError")
# load reentrant ldap client library (libldap_r-*.so.2 or l... | 3,905 | Python | .py | 130 | 23.392308 | 77 | 0.585764 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,634 | util.py | freeipa_freeipa/ipapython/install/util.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
"""
Utilities.
"""
import sys
import six
class from_:
"""
Wrapper for delegating to a subgenerator.
See `run_generator_with_yield_from`.
"""
__slots__ = ('obj',)
def __init__(self, obj):
self.obj = obj
def ru... | 4,302 | Python | .py | 136 | 21.566176 | 79 | 0.509548 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,635 | cli.py | freeipa_freeipa/ipapython/install/cli.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
"""
Command line support.
"""
import collections
import enum
import logging
import optparse # pylint: disable=deprecated-module
import signal
import six
from ipapython import admintool
from ipapython.ipa_log_manager import standard_logging_setu... | 13,174 | Python | .py | 321 | 28.797508 | 78 | 0.56466 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,636 | __init__.py | freeipa_freeipa/ipapython/install/__init__.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
"""
Installer framework.
"""
| 101 | Python | .py | 6 | 15.666667 | 66 | 0.755319 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,637 | core.py | freeipa_freeipa/ipapython/install/core.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
"""
The framework core.
"""
import abc
import collections
import functools
import itertools
import sys
import six
from . import util
from .util import from_
__all__ = ['InvalidStateError', 'KnobValueError', 'Property', 'knob',
'Confi... | 18,119 | Python | .py | 517 | 24.388781 | 79 | 0.552359 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,638 | common.py | freeipa_freeipa/ipapython/install/common.py | #
# Copyright (C) 2015 FreeIPA Contributors see COPYING for license
#
"""
Common stuff.
"""
import logging
from . import core
from .util import from_
__all__ = ['step', 'Installable', 'Interactive', 'installer',
'uninstaller']
logger = logging.getLogger(__name__)
def step():
def decorator(func):
... | 2,603 | Python | .py | 75 | 27.133333 | 68 | 0.63141 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,639 | typing.py | freeipa_freeipa/ipapython/install/typing.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
import weakref
_cache = weakref.WeakValueDictionary()
class ListMeta(type):
def __getitem__(cls, key):
if not isinstance(key, type):
raise TypeError("Parameters to generic types must be types. "
... | 769 | Python | .py | 23 | 24.521739 | 79 | 0.539402 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,640 | test_placeholder.py | freeipa_freeipa/pypi/test_placeholder.py | # Copyright (C) 2017 FreeIPA Contributors see COPYING for license
import importlib
import pkg_resources
import pytest
@pytest.mark.parametrize("modname", [
# placeholder packages raise ImportError
'ipaserver',
'ipatests',
# PyPI packages do not have install subpackage
'ipaclient.install',
'... | 1,028 | Python | .py | 40 | 21.5 | 66 | 0.70102 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,641 | setup.py | freeipa_freeipa/pypi/ipa/setup.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""Dummy package for FreeIPA
Please install ipaclient instead.
"""
from os.path import abspath, dirname
import sys
if __name__ == '__main__':
# include ../../ for ipasetup.py
sys.path.append(dirname(dirname(dirname(abspath(__file__)))))
... | 492 | Python | .py | 19 | 21.315789 | 65 | 0.633262 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,642 | setup.py | freeipa_freeipa/pypi/ipatests/setup.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""Dummy package for FreeIPA
ipatests is not yet available as PyPI package.
"""
from os.path import abspath, dirname
import sys
if __name__ == '__main__':
# include ../../ for ipasetup.py
sys.path.append(dirname(dirname(dirname(abspath(__f... | 564 | Python | .py | 22 | 20.272727 | 65 | 0.607807 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,643 | __init__.py | freeipa_freeipa/pypi/ipatests/ipatests/__init__.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
raise ImportError("ipatests is not yet supported as PyPI package.")
| 139 | Python | .py | 4 | 33.5 | 67 | 0.798507 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,644 | setup.py | freeipa_freeipa/pypi/ipaserver/setup.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""Dummy package for FreeIPA
ipatests is not yet available as PyPI package.
"""
from os.path import abspath, dirname
import sys
if __name__ == '__main__':
# include ../../ for ipasetup.py
sys.path.append(dirname(dirname(dirname(abspath(__f... | 566 | Python | .py | 22 | 20.363636 | 65 | 0.609259 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,645 | __init__.py | freeipa_freeipa/pypi/ipaserver/ipaserver/__init__.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
raise ImportError("ipaserver is not yet supported as PyPI package.")
| 140 | Python | .py | 4 | 33.75 | 68 | 0.8 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,646 | setup.py | freeipa_freeipa/pypi/freeipa/setup.py | #
# Copyright (C) 2017 FreeIPA Contributors see COPYING for license
#
"""Dummy package for FreeIPA
Please install ipaclient instead.
"""
from os.path import abspath, dirname
import sys
if __name__ == '__main__':
# include ../../ for ipasetup.py
sys.path.append(dirname(dirname(dirname(abspath(__file__)))))
... | 496 | Python | .py | 19 | 21.526316 | 65 | 0.636364 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,647 | messages.py | freeipa_freeipa/ipalib/messages.py | # Authors:
# Petr Viktorin <pviktori@redhat.com>
#
# Copyright (C) 2012 Red Hat
# see file 'COPYING' for use and warranty inmsgion
#
# 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... | 14,980 | Python | .py | 417 | 29.601918 | 114 | 0.646139 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,648 | errors.py | freeipa_freeipa/ipalib/errors.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008-2016 Red Hat
# see file 'COPYING' for use and warranty inmsgion
#
# 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, ... | 51,557 | Python | .py | 1,399 | 31.440315 | 144 | 0.667932 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,649 | facts.py | freeipa_freeipa/ipalib/facts.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""
Facts about the installation
"""
import logging
import os
from . import sysrestore
from ipaplatform.paths import paths
logger = logging.getLogger(__name__)
# Used to determine install status
IPA_MODULES = [
'httpd', 'kadmin', 'dirsrv', '... | 1,954 | Python | .py | 55 | 30.054545 | 78 | 0.694843 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,650 | crud.py | freeipa_freeipa/ipalib/crud.py | # Authors:
# Jason Gerard DeRose <jderose@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, ei... | 12,590 | Python | .py | 289 | 36.259516 | 151 | 0.656671 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,651 | util.py | freeipa_freeipa/ipalib/util.py | # Authors:
# Jason Gerard DeRose <jderose@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, ei... | 45,962 | Python | .py | 1,136 | 32.543134 | 101 | 0.638427 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,652 | setup.py | freeipa_freeipa/ipalib/setup.py | # 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 of the License, or
# (at your option) any l... | 1,526 | Python | .py | 46 | 27.478261 | 71 | 0.642276 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,653 | config.py | freeipa_freeipa/ipalib/config.py | # Authors:
# Martin Nagy <mnagy@redhat.com>
# Jason Gerard DeRose <jderose@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... | 25,064 | Python | .py | 568 | 34.651408 | 82 | 0.598523 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,654 | ipajson.py | freeipa_freeipa/ipalib/ipajson.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
import base64
from cryptography import x509 as crypto_x509
import datetime
from decimal import Decimal
import json
import six
from ipalib.constants import LDAP_GENERALIZED_TIME_FORMAT
from ipalib import capabilities
from ipalib.x509 import Encoding... | 6,402 | Python | .py | 161 | 31.161491 | 79 | 0.614493 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,655 | parameters.py | freeipa_freeipa/ipalib/parameters.py | # Authors:
# Jason Gerard DeRose <jderose@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, ei... | 78,443 | Python | .py | 1,930 | 30.76943 | 118 | 0.578202 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,656 | krb_utils.py | freeipa_freeipa/ipalib/krb_utils.py | # Authors: John Dennis <jdennis@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... | 7,263 | Python | .py | 183 | 34.650273 | 104 | 0.697971 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,657 | constants.py | freeipa_freeipa/ipalib/constants.py | # Authors:
# Martin Nagy <mnagy@redhat.com>
# Jason Gerard DeRose <jderose@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... | 15,916 | Python | .py | 336 | 43.636905 | 102 | 0.652406 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,658 | backend.py | freeipa_freeipa/ipalib/backend.py | # Authors:
# Jason Gerard DeRose <jderose@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, ei... | 4,716 | Python | .py | 127 | 28.094488 | 79 | 0.600088 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,659 | cli.py | freeipa_freeipa/ipalib/cli.py | # Authors:
# Jason Gerard DeRose <jderose@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, ei... | 50,875 | Python | .py | 1,295 | 27.310425 | 117 | 0.529537 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,660 | output.py | freeipa_freeipa/ipalib/output.py | # Authors:
# Jason Gerard DeRose <jderose@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 General Public License as published by
# the Free Software Foundation, ei... | 7,231 | Python | .py | 194 | 30.386598 | 79 | 0.604057 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,661 | pkcs10.py | freeipa_freeipa/ipalib/pkcs10.py | from __future__ import print_function
import sys
print(
"ipalib.pkcs10 module is deprecated and will be removed in IPA 4.6. "
"To load CSRs, please, use python-cryptography instead.",
file=sys.stderr
)
| 215 | Python | .py | 7 | 27.857143 | 73 | 0.73913 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,662 | kinit.py | freeipa_freeipa/ipalib/kinit.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
import logging
import os
import re
import time
import gssapi
from ipapython.kerberos import Principal
from ipaplatform.paths import paths
from ipapython.ipautil import run
from ipalib.constants import PATTERN_GROUPUSER_NAME
from ipalib import krb_... | 8,443 | Python | .py | 204 | 33.691176 | 79 | 0.653785 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,663 | request.py | freeipa_freeipa/ipalib/request.py | # Authors:
# Rob Crittenden <rcritten@redhat.com>
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008 Red Hat
# see file 'COPYING' for use and warranty contextrmation
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as pub... | 2,177 | Python | .py | 65 | 28.907692 | 76 | 0.70734 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,664 | text.py | freeipa_freeipa/ipalib/text.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2009 Red Hat
# see file 'COPYING' for use and warranty contextrmation
#
# 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,... | 21,213 | Python | .py | 491 | 37.808554 | 80 | 0.665435 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,665 | __init__.py | freeipa_freeipa/ipalib/__init__.py | # Authors:
# Jason Gerard DeRose <jderose@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, ei... | 37,675 | Python | .py | 830 | 42.012048 | 83 | 0.672448 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,666 | rpc.py | freeipa_freeipa/ipalib/rpc.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
# 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 publis... | 41,978 | Python | .py | 978 | 31.587935 | 79 | 0.593851 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,667 | plugable.py | freeipa_freeipa/ipalib/plugable.py | # Authors:
# Jason Gerard DeRose <jderose@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, ei... | 27,012 | Python | .py | 696 | 28.054598 | 101 | 0.567898 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,668 | frontend.py | freeipa_freeipa/ipalib/frontend.py | # Authors:
# Jason Gerard DeRose <jderose@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, ei... | 55,791 | Python | .py | 1,339 | 31.986557 | 104 | 0.581512 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,669 | base.py | freeipa_freeipa/ipalib/base.py | # Authors:
# Jason Gerard DeRose <jderose@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, ei... | 16,114 | Python | .py | 400 | 33.57 | 81 | 0.628138 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,670 | capabilities.py | freeipa_freeipa/ipalib/capabilities.py | # Authors:
# Petr Viktorin <pviktori@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 ... | 2,478 | Python | .py | 55 | 41.763636 | 78 | 0.751767 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,671 | x509.py | freeipa_freeipa/ipalib/x509.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... | 30,484 | Python | .py | 761 | 31.997372 | 89 | 0.640054 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,672 | sysrestore.py | freeipa_freeipa/ipalib/sysrestore.py | # Authors: Mark McLoughlin <markmc@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 vers... | 13,917 | Python | .py | 341 | 31.228739 | 78 | 0.602452 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,673 | aci.py | freeipa_freeipa/ipalib/aci.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... | 11,029 | Python | .py | 247 | 34.562753 | 210 | 0.571282 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,674 | misc.py | freeipa_freeipa/ipalib/misc.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
import re
from ipalib import LocalOrRemote, _, ngettext
from ipalib.output import Output, summary
from ipalib import Flag
from ipalib.plugable import Registry
register = Registry()
# FIXME: We should not let env return anything in_server
# when m... | 3,583 | Python | .py | 114 | 21.675439 | 75 | 0.522457 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,675 | dns.py | freeipa_freeipa/ipalib/dns.py | # Authors:
# Martin Kosek <mkosek@redhat.com>
# Pavel Zuna <pzuna@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 Fr... | 3,551 | Python | .py | 92 | 32.576087 | 75 | 0.672399 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,676 | certmonger.py | freeipa_freeipa/ipalib/install/certmonger.py | # Authors: Rob Crittenden <rcritten@redhat.com>
# David Kupka <dkupka@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... | 28,499 | Python | .py | 699 | 32.13877 | 80 | 0.626413 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,677 | hostname.py | freeipa_freeipa/ipalib/install/hostname.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
"""
Host name installer module
"""
from ipapython.install import typing
from ipapython.install.core import knob
from ipapython.ipautil import CheckedIPAddress
from . import service
from .service import prepare_only
class HostNameInstallInterfac... | 1,648 | Python | .py | 48 | 27.375 | 77 | 0.658491 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,678 | kinit.py | freeipa_freeipa/ipalib/install/kinit.py | #
# Copyright (C) 2024 FreeIPA Contributors see COPYING for license
#
# code was moved to ipalib.kinit. This module is now an alias
__all__ = (
"validate_principal",
"kinit_keytab",
"kinit_password",
"kinit_armor",
"kinit_pkinit",
)
from ..kinit import (
validate_principal,
kinit_keytab,
... | 377 | Python | .py | 18 | 17.611111 | 66 | 0.677871 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,679 | __init__.py | freeipa_freeipa/ipalib/install/__init__.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
| 71 | Python | .py | 3 | 22.666667 | 66 | 0.779412 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,680 | dnsforwarders.py | freeipa_freeipa/ipalib/install/dnsforwarders.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""DNS forwarder and systemd-resolve1 helpers
"""
import ipaddress
import logging
import os
import socket
import dbus
from ipaplatform.paths import paths
from ipapython.dnsutil import get_ipa_resolver
logger = logging.getLogger(__name__)
_SYST... | 4,470 | Python | .py | 125 | 29.272 | 76 | 0.667207 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,681 | service.py | freeipa_freeipa/ipalib/install/service.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
"""
Base service installer module
"""
from ipalib.util import validate_domain_name
from ipapython.install import common, core, typing
from ipapython.install.core import group, knob
def prepare_only(obj):
"""
Decorator which makes an inst... | 4,396 | Python | .py | 138 | 25.173913 | 79 | 0.632875 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,682 | sysrestore.py | freeipa_freeipa/ipalib/install/sysrestore.py | #
# Copyright (C) 2020 FreeIPA Contributors see COPYING for license
#
"""
Facade for ipalib.sysrestore for backwards compatibility
"""
from ipalib import sysrestore as real_sysrestore
class FileStore(real_sysrestore.FileStore):
def __init__(self, path=real_sysrestore.SYSRESTORE_PATH,
index_fil... | 651 | Python | .py | 15 | 38.133333 | 66 | 0.728571 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,683 | certstore.py | freeipa_freeipa/ipalib/install/certstore.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... | 14,564 | Python | .py | 340 | 33.888235 | 80 | 0.617389 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,684 | rpcserver.py | freeipa_freeipa/ipaserver/rpcserver.py | # Authors:
# Jason Gerard DeRose <jderose@redhat.com>
#
# Copyright (C) 2008-2016 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 Foundatio... | 50,449 | Python | .py | 1,184 | 31.842061 | 118 | 0.586305 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,685 | setup.py | freeipa_freeipa/ipaserver/setup.py | # Authors:
# Jason Gerard DeRose <jderose@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, ei... | 3,311 | Python | .py | 94 | 25.776596 | 76 | 0.57423 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,686 | servroles.py | freeipa_freeipa/ipaserver/servroles.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
"""
This module contains the set of classes which abstract various bits and pieces
of information present in the LDAP tree about functionalities such as DNS
server, Active Directory trust controller etc. These properties come in two
distinct groups... | 22,358 | Python | .py | 517 | 34.26499 | 79 | 0.644503 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,687 | dcerpc.py | freeipa_freeipa/ipaserver/dcerpc.py | # Authors:
# Alexander Bokovoy <abokovoy@redhat.com>
#
# Copyright (C) 2011-2016 Red Hat
# see file 'COPYING' for use and warranty information
#
# Portions (C) Andrew Tridgell, Andrew Bartlett
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public Li... | 79,465 | Python | .py | 1,647 | 33.620522 | 84 | 0.559585 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,688 | p11helper.py | freeipa_freeipa/ipaserver/p11helper.py | #
# Copyright (C) 2014 FreeIPA Contributors see COPYING for license
#
import random
import ctypes.util
import binascii
import struct
import six
from cryptography.hazmat.backends import default_backend
from cryptography.hazmat.primitives import serialization
from cryptography.hazmat.primitives.asymmetric import dsa, ... | 65,253 | Python | .py | 1,546 | 30.726391 | 79 | 0.57231 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,689 | masters.py | freeipa_freeipa/ipaserver/masters.py | #
# Copyright (C) 2018 FreeIPA Contributors see COPYING for license
#
"""Helpers services in for cn=masters,cn=ipa,cn=etc
"""
from __future__ import absolute_import
import collections
import logging
import random
from ipapython.dn import DN
from ipalib import api
from ipalib import errors
logger = logging.getLogge... | 6,398 | Python | .py | 176 | 29.340909 | 78 | 0.648531 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,690 | __init__.py | freeipa_freeipa/ipaserver/__init__.py | # Authors:
# Jason Gerard DeRose <jderose@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, ei... | 822 | Python | .py | 21 | 38.095238 | 71 | 0.7725 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,691 | dns_data_management.py | freeipa_freeipa/ipaserver/dns_data_management.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
from __future__ import absolute_import
import logging
import six
from collections import defaultdict, OrderedDict
from dns import (
rdata,
rdataclass,
rdatatype,
zone,
)
from time import sleep, time
from ipalib import errors
fr... | 20,106 | Python | .py | 506 | 28.235178 | 79 | 0.567696 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,692 | wsgi.py | freeipa_freeipa/ipaserver/wsgi.py | #
# Copyright (C) 2021 FreeIPA Contributors see COPYING for license
#
"""WSGI server application
"""
import gc
import logging
import os
import sys
# Some dependencies like Dogtag's pki.client library and custodia use
# python-requsts to make HTTPS connection. python-requests prefers
# PyOpenSSL over Python's stdlib s... | 2,592 | Python | .py | 68 | 32.602941 | 74 | 0.703468 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,693 | topology.py | freeipa_freeipa/ipaserver/topology.py | #
# Copyright (C) 2016 FreeIPA Contributors see COPYING for license
#
"""
set of functions and classes useful for management of domain level 1 topology
"""
from copy import deepcopy
from ipalib import _
from ipapython.graph import Graph
CURR_TOPOLOGY_DISCONNECTED = _("""
Replication topology in suffix '%(suffix)s' ... | 5,480 | Python | .py | 148 | 27.75 | 80 | 0.607947 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,694 | dcerpc_common.py | freeipa_freeipa/ipaserver/dcerpc_common.py | import six
from ipalib import _
if six.PY3:
unicode = str
# Both constants can be used as masks against trust direction
# because bi-directional has two lower bits set.
TRUST_ONEWAY = 1
TRUST_BIDIRECTIONAL = 3
# Trust join behavior
# External trust -- allow creating trust to a non-root domain in the forest
TRUST_... | 2,378 | Python | .py | 60 | 34.483333 | 76 | 0.6859 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,695 | kem.py | freeipa_freeipa/ipaserver/secrets/kem.py | # Copyright (C) 2015 IPA Project Contributors, see COPYING for license
from __future__ import print_function, absolute_import
import errno
import os
from configparser import ConfigParser
from ipaplatform.paths import paths
from ipapython.dn import DN
from cryptography.hazmat.backends import default_backend
from cr... | 10,836 | Python | .py | 247 | 33.230769 | 78 | 0.583065 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,696 | client.py | freeipa_freeipa/ipaserver/secrets/client.py | # Copyright (C) 2015 IPA Project Contributors, see COPYING for license
from __future__ import print_function, absolute_import
import contextlib
import os
import secrets
from base64 import b64encode
# pylint: disable=relative-import
from ipaserver.custodia.message.kem import (
KEMClient, KEY_USAGE_SIG, KEY_USAG... | 4,380 | Python | .py | 114 | 29.921053 | 76 | 0.623233 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,697 | service.py | freeipa_freeipa/ipaserver/secrets/service.py | # Copyright (C) 2017 IPA Project Contributors, see COPYING for license
import argparse
import ipaserver.custodia.server # pylint: disable=relative-import
argparser = argparse.ArgumentParser(
prog='ipa-custodia',
description='IPA Custodia service'
)
argparser.add_argument(
'--debug',
action='store_t... | 644 | Python | .py | 23 | 24.608696 | 71 | 0.716612 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,698 | store.py | freeipa_freeipa/ipaserver/secrets/store.py | # Copyright (C) 2015 IPA Project Contributors, see COPYING for license
from __future__ import print_function, absolute_import
import os
import sys
from ipaserver.custodia.plugin import CSStore
from ipaplatform.paths import paths
from ipaplatform.constants import constants
from ipapython import ipautil
class Unkno... | 6,541 | Python | .py | 181 | 28.110497 | 76 | 0.610178 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |
16,699 | common.py | freeipa_freeipa/ipaserver/secrets/common.py | # Copyright (C) 2015 IPA Project Contributors, see COPYING for license
from __future__ import print_function
import ldap
import ldap.sasl
import ldap.filter
from ipapython.ipaldap import ldap_initialize
class iSecLdap:
def __init__(self, uri, auth_type=None):
self.uri = uri
if auth_type is not ... | 1,486 | Python | .py | 40 | 28.275 | 77 | 0.597637 | freeipa/freeipa | 975 | 339 | 31 | GPL-3.0 | 9/5/2024, 5:12:14 PM (Europe/Amsterdam) |