From 2507b7c6741330eafacce63deca630073fb536fd Mon Sep 17 00:00:00 2001 From: Jason Gerard DeRose Date: Wed, 1 Oct 2008 16:17:02 -0600 Subject: Clarified docstrings in */plugins/__init__.py; renamed ipa_server/plugins/ipa_ldap.py to b_ldap.py --- ipa_server/plugins/__init__.py | 5 +++-- ipa_server/plugins/b_ldap.py | 35 +++++++++++++++++++++++++++++++++++ ipa_server/plugins/ipa_ldap.py | 35 ----------------------------------- 3 files changed, 38 insertions(+), 37 deletions(-) create mode 100644 ipa_server/plugins/b_ldap.py delete mode 100644 ipa_server/plugins/ipa_ldap.py (limited to 'ipa_server/plugins') diff --git a/ipa_server/plugins/__init__.py b/ipa_server/plugins/__init__.py index 7d768b6dd..5737dcb79 100644 --- a/ipa_server/plugins/__init__.py +++ b/ipa_server/plugins/__init__.py @@ -17,7 +17,8 @@ # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA """ -Built-in backend plugins. +Sub-package containing all server plugins. -This package __init__ module should implement no code. +By convention, modules with frontend plugins are named f_*.py and modules +with backend plugins are named b_*.py. """ diff --git a/ipa_server/plugins/b_ldap.py b/ipa_server/plugins/b_ldap.py new file mode 100644 index 000000000..675c64c29 --- /dev/null +++ b/ipa_server/plugins/b_ldap.py @@ -0,0 +1,35 @@ +# Authors: +# Jason Gerard DeRose +# +# 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; version 2 only +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program; if not, write to the Free Software +# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA + +""" +LDAP backend plugin. + +This wraps the python-ldap bindings. +""" + +from ipalib import api +from ipalib.backend import Backend + + +class ldap(Backend): + """ + LDAP backend plugin. + """ + +api.register(ldap) diff --git a/ipa_server/plugins/ipa_ldap.py b/ipa_server/plugins/ipa_ldap.py deleted file mode 100644 index 675c64c29..000000000 --- a/ipa_server/plugins/ipa_ldap.py +++ /dev/null @@ -1,35 +0,0 @@ -# Authors: -# Jason Gerard DeRose -# -# 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; version 2 only -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program; if not, write to the Free Software -# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA - -""" -LDAP backend plugin. - -This wraps the python-ldap bindings. -""" - -from ipalib import api -from ipalib.backend import Backend - - -class ldap(Backend): - """ - LDAP backend plugin. - """ - -api.register(ldap) -- cgit