commit
fe3bd0c6c7
@ -0,0 +1,6 @@
|
|||||||
|
[submodule "admin"]
|
||||||
|
path = admin
|
||||||
|
url = http://system@scm.trinitydesktop.org/scm/git/tde-common-admin
|
||||||
|
[submodule "cmake"]
|
||||||
|
path = cmake
|
||||||
|
url = http://system@scm.trinitydesktop.org/scm/git/tde-common-cmake
|
@ -0,0 +1,167 @@
|
|||||||
|
Basic Installation
|
||||||
|
==================
|
||||||
|
|
||||||
|
These are generic installation instructions.
|
||||||
|
|
||||||
|
The `configure' shell script attempts to guess correct values for
|
||||||
|
various system-dependent variables used during compilation. It uses
|
||||||
|
those values to create a `Makefile' in each directory of the package.
|
||||||
|
It may also create one or more `.h' files containing system-dependent
|
||||||
|
definitions. Finally, it creates a shell script `config.status' that
|
||||||
|
you can run in the future to recreate the current configuration, a file
|
||||||
|
`config.cache' that saves the results of its tests to speed up
|
||||||
|
reconfiguring, and a file `config.log' containing compiler output
|
||||||
|
(useful mainly for debugging `configure').
|
||||||
|
|
||||||
|
If you need to do unusual things to compile the package, please try
|
||||||
|
to figure out how `configure' could check whether to do them, and mail
|
||||||
|
diffs or instructions to the address given in the `README' so they can
|
||||||
|
be considered for the next release. If at some point `config.cache'
|
||||||
|
contains results you don't want to keep, you may remove or edit it.
|
||||||
|
|
||||||
|
The file `configure.in' is used to create `configure' by a program
|
||||||
|
called `autoconf'. You only need `configure.in' if you want to change
|
||||||
|
it or regenerate `configure' using a newer version of `autoconf'.
|
||||||
|
|
||||||
|
The simplest way to compile this package is:
|
||||||
|
|
||||||
|
1. `cd' to the directory containing the package's source code and type
|
||||||
|
`./configure' to configure the package for your system. If you're
|
||||||
|
using `csh' on an old version of System V, you might need to type
|
||||||
|
`sh ./configure' instead to prevent `csh' from trying to execute
|
||||||
|
`configure' itself.
|
||||||
|
|
||||||
|
Running `configure' takes a while. While running, it prints some
|
||||||
|
messages telling which features it is checking for.
|
||||||
|
|
||||||
|
2. Type `make' to compile the package.
|
||||||
|
|
||||||
|
3. Type `make install' to install the programs and any data files and
|
||||||
|
documentation.
|
||||||
|
|
||||||
|
4. You can remove the program binaries and object files from the
|
||||||
|
source code directory by typing `make clean'.
|
||||||
|
|
||||||
|
Compilers and Options
|
||||||
|
=====================
|
||||||
|
|
||||||
|
Some systems require unusual options for compilation or linking that
|
||||||
|
the `configure' script does not know about. You can give `configure'
|
||||||
|
initial values for variables by setting them in the environment. Using
|
||||||
|
a Bourne-compatible shell, you can do that on the command line like
|
||||||
|
this:
|
||||||
|
CC=c89 CFLAGS=-O2 LIBS=-lposix ./configure
|
||||||
|
|
||||||
|
Or on systems that have the `env' program, you can do it like this:
|
||||||
|
env CPPFLAGS=-I/usr/local/include LDFLAGS=-s ./configure
|
||||||
|
|
||||||
|
Compiling For Multiple Architectures
|
||||||
|
====================================
|
||||||
|
|
||||||
|
You can compile the package for more than one kind of computer at the
|
||||||
|
same time, by placing the object files for each architecture in their
|
||||||
|
own directory. To do this, you must use a version of `make' that
|
||||||
|
supports the `VPATH' variable, such as GNU `make'. `cd' to the
|
||||||
|
directory where you want the object files and executables to go and run
|
||||||
|
the `configure' script. `configure' automatically checks for the
|
||||||
|
source code in the directory that `configure' is in and in `..'.
|
||||||
|
|
||||||
|
If you have to use a `make' that does not supports the `VPATH'
|
||||||
|
variable, you have to compile the package for one architecture at a time
|
||||||
|
in the source code directory. After you have installed the package for
|
||||||
|
one architecture, use `make distclean' before reconfiguring for another
|
||||||
|
architecture.
|
||||||
|
|
||||||
|
Installation Names
|
||||||
|
==================
|
||||||
|
|
||||||
|
By default, `make install' will install the package's files in
|
||||||
|
`/usr/local/bin', `/usr/local/man', etc. You can specify an
|
||||||
|
installation prefix other than `/usr/local' by giving `configure' the
|
||||||
|
option `--prefix=PATH'.
|
||||||
|
|
||||||
|
You can specify separate installation prefixes for
|
||||||
|
architecture-specific files and architecture-independent files. If you
|
||||||
|
give `configure' the option `--exec-prefix=PATH', the package will use
|
||||||
|
PATH as the prefix for installing programs and libraries.
|
||||||
|
Documentation and other data files will still use the regular prefix.
|
||||||
|
|
||||||
|
If the package supports it, you can cause programs to be installed
|
||||||
|
with an extra prefix or suffix on their names by giving `configure' the
|
||||||
|
option `--program-prefix=PREFIX' or `--program-suffix=SUFFIX'.
|
||||||
|
|
||||||
|
Optional Features
|
||||||
|
=================
|
||||||
|
|
||||||
|
Some packages pay attention to `--enable-FEATURE' options to
|
||||||
|
`configure', where FEATURE indicates an optional part of the package.
|
||||||
|
They may also pay attention to `--with-PACKAGE' options, where PACKAGE
|
||||||
|
is something like `gnu-as' or `x' (for the X Window System). The
|
||||||
|
`README' should mention any `--enable-' and `--with-' options that the
|
||||||
|
package recognizes.
|
||||||
|
|
||||||
|
For packages that use the X Window System, `configure' can usually
|
||||||
|
find the X include and library files automatically, but if it doesn't,
|
||||||
|
you can use the `configure' options `--x-includes=DIR' and
|
||||||
|
`--x-libraries=DIR' to specify their locations.
|
||||||
|
|
||||||
|
Specifying the System Type
|
||||||
|
==========================
|
||||||
|
|
||||||
|
There may be some features `configure' can not figure out
|
||||||
|
automatically, but needs to determine by the type of host the package
|
||||||
|
will run on. Usually `configure' can figure that out, but if it prints
|
||||||
|
a message saying it can not guess the host type, give it the
|
||||||
|
`--host=TYPE' option. TYPE can either be a short name for the system
|
||||||
|
type, such as `sun4', or a canonical name with three fields:
|
||||||
|
CPU-COMPANY-SYSTEM
|
||||||
|
|
||||||
|
See the file `config.sub' for the possible values of each field. If
|
||||||
|
`config.sub' isn't included in this package, then this package doesn't
|
||||||
|
need to know the host type.
|
||||||
|
|
||||||
|
If you are building compiler tools for cross-compiling, you can also
|
||||||
|
use the `--target=TYPE' option to select the type of system they will
|
||||||
|
produce code for and the `--build=TYPE' option to select the type of
|
||||||
|
system on which you are compiling the package.
|
||||||
|
|
||||||
|
Sharing Defaults
|
||||||
|
================
|
||||||
|
|
||||||
|
If you want to set default values for `configure' scripts to share,
|
||||||
|
you can create a site shell script called `config.site' that gives
|
||||||
|
default values for variables like `CC', `cache_file', and `prefix'.
|
||||||
|
`configure' looks for `PREFIX/share/config.site' if it exists, then
|
||||||
|
`PREFIX/etc/config.site' if it exists. Or, you can set the
|
||||||
|
`CONFIG_SITE' environment variable to the location of the site script.
|
||||||
|
A warning: not all `configure' scripts look for a site script.
|
||||||
|
|
||||||
|
Operation Controls
|
||||||
|
==================
|
||||||
|
|
||||||
|
`configure' recognizes the following options to control how it
|
||||||
|
operates.
|
||||||
|
|
||||||
|
`--cache-file=FILE'
|
||||||
|
Use and save the results of the tests in FILE instead of
|
||||||
|
`./config.cache'. Set FILE to `/dev/null' to disable caching, for
|
||||||
|
debugging `configure'.
|
||||||
|
|
||||||
|
`--help'
|
||||||
|
Print a summary of the options to `configure', and exit.
|
||||||
|
|
||||||
|
`--quiet'
|
||||||
|
`--silent'
|
||||||
|
`-q'
|
||||||
|
Do not print messages saying which checks are being made.
|
||||||
|
|
||||||
|
`--srcdir=DIR'
|
||||||
|
Look for the package's source code in directory DIR. Usually
|
||||||
|
`configure' can determine that directory automatically.
|
||||||
|
|
||||||
|
`--version'
|
||||||
|
Print the version of Autoconf used to generate the `configure'
|
||||||
|
script, and exit.
|
||||||
|
|
||||||
|
`configure' also accepts some other, not widely useful, options.
|
||||||
|
|
@ -0,0 +1,22 @@
|
|||||||
|
SUBDIRS = $(TOPSUBDIRS)
|
||||||
|
|
||||||
|
$(top_srcdir)/configure.in: configure.in.in $(top_srcdir)/subdirs
|
||||||
|
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common configure.in ;
|
||||||
|
|
||||||
|
$(top_srcdir)/subdirs:
|
||||||
|
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common subdirs
|
||||||
|
|
||||||
|
$(top_srcdir)/acinclude.m4: $(top_srcdir)/admin/acinclude.m4.in $(top_srcdir)/admin/libtool.m4.in
|
||||||
|
@cd $(top_srcdir) && cat admin/acinclude.m4.in admin/libtool.m4.in > acinclude.m4
|
||||||
|
|
||||||
|
MAINTAINERCLEANFILES = subdirs configure.in acinclude.m4 configure.files
|
||||||
|
|
||||||
|
package-messages:
|
||||||
|
cd $(top_srcdir) && $(MAKE) -f admin/Makefile.common package-messages
|
||||||
|
$(MAKE) -C po merge
|
||||||
|
|
||||||
|
EXTRA_DIST = admin COPYING configure.in.in
|
||||||
|
|
||||||
|
dist-hook:
|
||||||
|
cd $(top_distdir) && perl admin/am_edit -padmin
|
||||||
|
cd $(top_distdir) && $(MAKE) -f admin/Makefile.common subdirs
|
@ -0,0 +1,10 @@
|
|||||||
|
all:
|
||||||
|
@echo "This Makefile is only for the CVS repository"
|
||||||
|
@echo "This will be deleted before making the distribution"
|
||||||
|
@echo ""
|
||||||
|
$(MAKE) -f admin/Makefile.common cvs
|
||||||
|
|
||||||
|
dist:
|
||||||
|
$(MAKE) -f admin/Makefile.common dist
|
||||||
|
|
||||||
|
.SILENT:
|
@ -0,0 +1 @@
|
|||||||
|
Subproject commit 4af57bf22967e6ad80ab898980ed505df6eae5b0
|
@ -0,0 +1 @@
|
|||||||
|
Subproject commit d2f658ca47faefe569bcd1885b9238691fa13280
|
@ -0,0 +1,2 @@
|
|||||||
|
./admin/configure.in.min
|
||||||
|
configure.in.in
|
@ -0,0 +1,6 @@
|
|||||||
|
#MIN_CONFIG(3.2.0)
|
||||||
|
|
||||||
|
AM_INIT_AUTOMAKE(autostart, 0.1)
|
||||||
|
AC_C_BIGENDIAN
|
||||||
|
AC_CHECK_KDEMAXPATHLEN
|
||||||
|
|
@ -0,0 +1,5 @@
|
|||||||
|
libtdeldap-trinity (0.5-0ubuntu0) karmic; urgency=low
|
||||||
|
|
||||||
|
* Karmic rebuild
|
||||||
|
|
||||||
|
-- Timothy Pearson <kb9vqf@pearsoncomputing.net> Thu, 02 July 2009 16:08:00 -0600
|
@ -0,0 +1 @@
|
|||||||
|
5
|
@ -0,0 +1,12 @@
|
|||||||
|
Source: libtdeldap-trinity
|
||||||
|
Section: tde
|
||||||
|
Priority: optional
|
||||||
|
Maintainer: Timothy Pearson <kb9vqf@pearsoncomputing.net>
|
||||||
|
Build-Depends: debhelper (>= 5), cdbs, tdelibs4-trinity-dev, libldap2-dev, automake, autoconf, libtool, libltdl-dev
|
||||||
|
Standards-Version: 3.8.4
|
||||||
|
|
||||||
|
Package: libtdeldap-trinity
|
||||||
|
Architecture: any
|
||||||
|
Depends: ${shlibs:Depends}, ${misc:Depends}, heimdal-clients
|
||||||
|
Description: LDAP interface library for TDE
|
||||||
|
LDAP interface library for TDE management modules.
|
@ -0,0 +1,31 @@
|
|||||||
|
This package was debianized by Timothy Pearson <kb9vqf@pearsoncomputing.net> on
|
||||||
|
Thu, 17 May 2012 19:52:51 +0100.
|
||||||
|
|
||||||
|
It was downloaded from http://www.trinitydesktop.org
|
||||||
|
|
||||||
|
Upstream Author: Timothy Pearson <kb9vqf@pearsoncomputing.net>
|
||||||
|
|
||||||
|
copyright (C) 2012 Timothy Pearson <kb9vqf@pearsoncomputing.net>
|
||||||
|
|
||||||
|
License:
|
||||||
|
|
||||||
|
This package 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 2 of the License, or
|
||||||
|
(at your option) any later version.
|
||||||
|
|
||||||
|
This package 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 package; if not, write to the Free Software
|
||||||
|
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
|
||||||
|
|
||||||
|
On Debian systems, the complete text of the GNU General
|
||||||
|
Public License can be found in `/usr/share/common-licenses/GPL'.
|
||||||
|
|
||||||
|
The Debian packaging is (C) 2012, Timothy Pearson <kb9vqf@pearsoncomputing.net> and
|
||||||
|
is licensed under the GPL, see above.
|
||||||
|
|
@ -0,0 +1,24 @@
|
|||||||
|
#!/usr/bin/make -f
|
||||||
|
|
||||||
|
include /usr/share/cdbs/1/rules/simple-patchsys.mk
|
||||||
|
include /usr/share/cdbs/1/class/autotools.mk
|
||||||
|
include /usr/share/cdbs/1/rules/debhelper.mk
|
||||||
|
|
||||||
|
DEB_CONFIGURE_INCLUDEDIR := /opt/trinity/include/tde
|
||||||
|
DEB_CONFIGURE_MANDIR := /opt/trinity/share/man
|
||||||
|
DEB_CONFIGURE_PREFIX := /opt/trinity
|
||||||
|
DEB_CONFIGURE_INFODIR := /opt/trinity/share/info
|
||||||
|
|
||||||
|
cdbs_configure_flags := --with-qt-dir=/usr/share/qt3 --disable-rpath --with-xinerama $(cdbs_kde_enable_final) $(cdbs_kde_enable_debug)
|
||||||
|
|
||||||
|
post-patches:: debian/stamp-bootstrap
|
||||||
|
|
||||||
|
debian/stamp-bootstrap:
|
||||||
|
! [ -f /usr/share/libtool/ltmain.sh ] || \
|
||||||
|
cp -f /usr/share/libtool/ltmain.sh admin/ltmain.sh
|
||||||
|
! [ -f /usr/share/libtool/config/ltmain.sh ] || \
|
||||||
|
cp -f /usr/share/libtool/config/ltmain.sh admin/ltmain.sh
|
||||||
|
cp -f /usr/share/aclocal/libtool.m4 admin/libtool.m4.in
|
||||||
|
|
||||||
|
make -f admin/Makefile.common cvs
|
||||||
|
touch debian/stamp-bootstrap
|
@ -0,0 +1,6 @@
|
|||||||
|
# the SUBDIRS is filled automatically by am_edit. If files are
|
||||||
|
# in this directory they are installed into the english dir
|
||||||
|
|
||||||
|
KDE_LANG = en
|
||||||
|
KDE_DOCS = autostart
|
||||||
|
SUBDIRS = $(AUTODIRS)
|
@ -0,0 +1,2 @@
|
|||||||
|
KDE_DOCS = ldap
|
||||||
|
KDE_LANG = en
|
@ -0,0 +1,2 @@
|
|||||||
|
POFILES = AUTO
|
||||||
|
# noinst_HEADERS = ldap.pot
|
@ -0,0 +1,11 @@
|
|||||||
|
INCLUDES = $(all_includes)
|
||||||
|
METASOURCES = AUTO
|
||||||
|
|
||||||
|
# Create a shared library file
|
||||||
|
lib_LTLIBRARIES = libtdeldap.la
|
||||||
|
|
||||||
|
libtdeldap_la_SOURCES = libtdeldap.cpp ldaplogindlgbase.ui ldaplogindlg.cpp ldappasswddlg.cpp
|
||||||
|
libtdeldap_la_LIBADD = -lkio $(LIB_TDEUI) -lldap
|
||||||
|
libtdeldap_la_LDFLAGS = -avoid-version -module -no-undefined \
|
||||||
|
$(all_libraries)
|
||||||
|
|
@ -0,0 +1,46 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2012 by Timothy Pearson *
|
||||||
|
* kb9vqf@pearsoncomputing.net *
|
||||||
|
* *
|
||||||
|
* 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 2 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* This program is distributed in the hope that it will be useful, *
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
|
* GNU General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with this program; if not, write to the *
|
||||||
|
* Free Software Foundation, Inc., *
|
||||||
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#include <tqstringlist.h>
|
||||||
|
#include <tqlabel.h>
|
||||||
|
#include <tqmap.h>
|
||||||
|
|
||||||
|
#include <kapplication.h>
|
||||||
|
#include <ksimpleconfig.h>
|
||||||
|
#include <klocale.h>
|
||||||
|
#include <kdebug.h>
|
||||||
|
#include <kstandarddirs.h>
|
||||||
|
#include <kiconloader.h>
|
||||||
|
#include <dcopclient.h>
|
||||||
|
#include <kprocess.h>
|
||||||
|
#include <kcombobox.h>
|
||||||
|
|
||||||
|
#include "ldaplogindlg.h"
|
||||||
|
|
||||||
|
LDAPLogin::LDAPLogin(TQWidget *parent, const char *name ) : LDAPLoginDlg(parent,name) {
|
||||||
|
px_icon->setPixmap(SmallIcon("password.png"));
|
||||||
|
ldapAdminRealm->setEditable(true);
|
||||||
|
}
|
||||||
|
|
||||||
|
LDAPLogin::~LDAPLogin(){
|
||||||
|
//
|
||||||
|
}
|
||||||
|
|
||||||
|
// #include "ldaplogindlg.moc"
|
@ -0,0 +1,39 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2012 by Timothy Pearson *
|
||||||
|
* kb9vqf@pearsoncomputing.net *
|
||||||
|
* *
|
||||||
|
* 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 2 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* This program is distributed in the hope that it will be useful, *
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
|
* GNU General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with this program; if not, write to the *
|
||||||
|
* Free Software Foundation, Inc., *
|
||||||
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#ifndef LDAPLOGIN_H
|
||||||
|
#define LDAPLOGIN_H
|
||||||
|
|
||||||
|
#include "ldaplogindlgbase.h"
|
||||||
|
|
||||||
|
class TQStringList;
|
||||||
|
|
||||||
|
/**LDAP login dialog
|
||||||
|
*@author Timothy Pearson
|
||||||
|
*/
|
||||||
|
|
||||||
|
class LDAPLogin : public LDAPLoginDlg {
|
||||||
|
Q_OBJECT
|
||||||
|
public:
|
||||||
|
LDAPLogin(TQWidget *parent=0, const char *name=0);
|
||||||
|
~LDAPLogin();
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
@ -0,0 +1,87 @@
|
|||||||
|
<!DOCTYPE UI><UI version="3.0" stdsetdef="1">
|
||||||
|
<class>LDAPLoginDlg</class>
|
||||||
|
<widget class="TQWidget">
|
||||||
|
<property name="name">
|
||||||
|
<cstring>LDAPLoginDlg</cstring>
|
||||||
|
</property>
|
||||||
|
<grid>
|
||||||
|
<property name="name">
|
||||||
|
<cstring>unnamed</cstring>
|
||||||
|
</property>
|
||||||
|
<widget class="TQLabel" row="1" column="0" rowspan="1" colspan="1">
|
||||||
|
<property name="name">
|
||||||
|
<cstring>px_icon</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="sizePolicy">
|
||||||
|
<sizepolicy>
|
||||||
|
<hsizetype>0</hsizetype>
|
||||||
|
<vsizetype>0</vsizetype>
|
||||||
|
<horstretch>0</horstretch>
|
||||||
|
<verstretch>0</verstretch>
|
||||||
|
</sizepolicy>
|
||||||
|
</property>
|
||||||
|
<property name="frameShape">
|
||||||
|
<enum>NoFrame</enum>
|
||||||
|
</property>
|
||||||
|
<property name="frameShadow">
|
||||||
|
<enum>Plain</enum>
|
||||||
|
</property>
|
||||||
|
<property name="scaledContents">
|
||||||
|
<bool>true</bool>
|
||||||
|
</property>
|
||||||
|
<property name="indent">
|
||||||
|
<number>0</number>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="TQLabel" row="1" column="1" colspan="2">
|
||||||
|
<property name="name">
|
||||||
|
<cstring>passprompt</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Please provide appropriate LDAP credentials below</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="TQLabel" row="2" column="0" colspan="2">
|
||||||
|
<property name="name">
|
||||||
|
<cstring>unnamed</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Username</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="KLineEdit" row="2" column="2">
|
||||||
|
<property name="name">
|
||||||
|
<cstring>ldapAdminUsername</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="TQLabel" row="3" column="0" colspan="2">
|
||||||
|
<property name="name">
|
||||||
|
<cstring>unnamed</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>Password</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="KPasswordEdit" row="3" column="2">
|
||||||
|
<property name="name">
|
||||||
|
<cstring>ldapAdminPassword</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="TQLabel" row="4" column="0" colspan="2">
|
||||||
|
<property name="name">
|
||||||
|
<cstring>unnamed</cstring>
|
||||||
|
</property>
|
||||||
|
<property name="text">
|
||||||
|
<string>LDAP Realm</string>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
<widget class="KComboBox" row="4" column="2">
|
||||||
|
<property name="name">
|
||||||
|
<cstring>ldapAdminRealm</cstring>
|
||||||
|
</property>
|
||||||
|
</widget>
|
||||||
|
</grid>
|
||||||
|
</widget>
|
||||||
|
<layoutdefaults spacing="3" margin="6"/>
|
||||||
|
<layoutfunctions spacing="KDialog::spacingHint" margin="KDialog::marginHint"/>
|
||||||
|
</UI>
|
@ -0,0 +1,46 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2012 by Timothy Pearson *
|
||||||
|
* kb9vqf@pearsoncomputing.net *
|
||||||
|
* *
|
||||||
|
* 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 2 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* This program is distributed in the hope that it will be useful, *
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
|
* GNU General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with this program; if not, write to the *
|
||||||
|
* Free Software Foundation, Inc., *
|
||||||
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#include <klocale.h>
|
||||||
|
#include <klineedit.h>
|
||||||
|
#include <ktextedit.h>
|
||||||
|
#include <knuminput.h>
|
||||||
|
#include <kactionselector.h>
|
||||||
|
#include <tqlistbox.h>
|
||||||
|
#include <kpushbutton.h>
|
||||||
|
#include <tqpixmap.h>
|
||||||
|
#include <tqiconset.h>
|
||||||
|
#include <tqlabel.h>
|
||||||
|
|
||||||
|
#include "ldappasswddlg.h"
|
||||||
|
|
||||||
|
LDAPPasswordDialog::LDAPPasswordDialog(TQWidget* parent, const char* name)
|
||||||
|
: KDialogBase(parent, name, true, i18n("LDAP Authentication"), Ok|Cancel, Ok, true)
|
||||||
|
{
|
||||||
|
m_base = new LDAPLogin(this);
|
||||||
|
|
||||||
|
setMainWidget(m_base);
|
||||||
|
}
|
||||||
|
|
||||||
|
void LDAPPasswordDialog::slotOk() {
|
||||||
|
accept();
|
||||||
|
}
|
||||||
|
|
||||||
|
#include "ldappasswddlg.moc"
|
@ -0,0 +1,43 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2012 by Timothy Pearson *
|
||||||
|
* kb9vqf@pearsoncomputing.net *
|
||||||
|
* *
|
||||||
|
* 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 2 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* This program is distributed in the hope that it will be useful, *
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
|
* GNU General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with this program; if not, write to the *
|
||||||
|
* Free Software Foundation, Inc., *
|
||||||
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#ifndef _LDAPPASSWORDDIALOG_H_
|
||||||
|
#define _LDAPPASSWORDDIALOG_H_
|
||||||
|
|
||||||
|
#include <kdialogbase.h>
|
||||||
|
#include <kcombobox.h>
|
||||||
|
|
||||||
|
#include "ldaplogindlg.h"
|
||||||
|
|
||||||
|
class LDAPPasswordDialog : public KDialogBase
|
||||||
|
{
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
LDAPPasswordDialog(TQWidget* parent = 0, const char* name = 0);
|
||||||
|
|
||||||
|
public slots:
|
||||||
|
void slotOk();
|
||||||
|
|
||||||
|
public:
|
||||||
|
LDAPLogin *m_base;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif
|
File diff suppressed because it is too large
Load Diff
@ -0,0 +1,224 @@
|
|||||||
|
/***************************************************************************
|
||||||
|
* Copyright (C) 2012 by Timothy Pearson *
|
||||||
|
* kb9vqf@pearsoncomputing.net *
|
||||||
|
* *
|
||||||
|
* 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 2 of the License, or *
|
||||||
|
* (at your option) any later version. *
|
||||||
|
* *
|
||||||
|
* This program is distributed in the hope that it will be useful, *
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the *
|
||||||
|
* GNU General Public License for more details. *
|
||||||
|
* *
|
||||||
|
* You should have received a copy of the GNU General Public License *
|
||||||
|
* along with this program; if not, write to the *
|
||||||
|
* Free Software Foundation, Inc., *
|
||||||
|
* 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. *
|
||||||
|
***************************************************************************/
|
||||||
|
|
||||||
|
#ifndef _LIBTDELDAP_H_
|
||||||
|
#define _LIBTDELDAP_H_
|
||||||
|
|
||||||
|
#include <unistd.h>
|
||||||
|
#include <ldap.h>
|
||||||
|
|
||||||
|
#include <tqobject.h>
|
||||||
|
#include <tqstring.h>
|
||||||
|
#include <tqdatetime.h>
|
||||||
|
#include <tqvaluelist.h>
|
||||||
|
|
||||||
|
// Values from hdb.asn1
|
||||||
|
enum LDAPKRB5Flags {
|
||||||
|
KRB5_INITIAL = 0x00000001,
|
||||||
|
KRB5_FORWARDABLE = 0x00000002,
|
||||||
|
KRB5_PROXIABLE = 0x00000004,
|
||||||
|
KRB5_RENEWABLE = 0x00000008,
|
||||||
|
KRB5_POSTDATE = 0x00000010,
|
||||||
|
KRB5_SERVER = 0x00000020,
|
||||||
|
KRB5_CLIENT = 0x00000040,
|
||||||
|
KRB5_INVALID = 0x00000080,
|
||||||
|
KRB5_REQUIRE_PREAUTH = 0x00000100,
|
||||||
|
KRB5_CHANGE_PW = 0x00000200,
|
||||||
|
KRB5_REQUIRE_HWAUTH = 0x00000400,
|
||||||
|
KRB5_OK_AS_DELEGATE = 0x00000800,
|
||||||
|
KRB5_USER_TO_USER = 0x00001000,
|
||||||
|
KRB5_IMMUTABLE = 0x00002000,
|
||||||
|
KRB5_TRUSTED_FOR_DELEGATION = 0x00004000,
|
||||||
|
KRB5_ALLOW_KERBEROS_4 = 0x00008000,
|
||||||
|
KRB5_ALLOW_DIGEST = 0x00010000,
|
||||||
|
KRB5_LOCKED_OUT = 0x00020000,
|
||||||
|
|
||||||
|
KRB5_ACTIVE_DEFAULT = KRB5_FORWARDABLE | KRB5_RENEWABLE | KRB5_CLIENT | KRB5_CHANGE_PW,
|
||||||
|
KRB5_DISABLED_ACCOUNT = KRB5_FORWARDABLE | KRB5_SERVER | KRB5_INVALID | KRB5_REQUIRE_PREAUTH | KRB5_REQUIRE_HWAUTH | KRB5_OK_AS_DELEGATE | KRB5_USER_TO_USER,
|
||||||
|
KRB5_MACHINE_ACCOUNT_DEFAULT = KRB5_FORWARDABLE | KRB5_PROXIABLE | KRB5_RENEWABLE | KRB5_POSTDATE | KRB5_SERVER | KRB5_CLIENT,
|
||||||
|
KRB5_FLAG_MAX = 0x80000000
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef TQValueList<uid_t> UserList;
|
||||||
|
typedef TQValueList<gid_t> GroupList;
|
||||||
|
|
||||||
|
class LDAPCredentials
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
TQString username;
|
||||||
|
TQCString password;
|
||||||
|
TQString realm;
|
||||||
|
};
|
||||||
|
|
||||||
|
class LDAPUserInfo
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
LDAPUserInfo();
|
||||||
|
~LDAPUserInfo();
|
||||||
|
|
||||||
|
public:
|
||||||
|
bool informationValid;
|
||||||
|
TQString distinguishedName;
|
||||||
|
TQString creatorsName;
|
||||||
|
|
||||||
|
TQString name;
|
||||||
|
uid_t uid;
|
||||||
|
TQString shell;
|
||||||
|
TQString homedir;
|
||||||
|
gid_t primary_gid;
|
||||||
|
LDAPKRB5Flags status; // Default active user is 586 [KRB5_ACTIVE_DEFAULT] and locked out user is 7586 [KRB5_DISABLED_ACCOUNT]
|
||||||
|
TQCString new_password;
|
||||||
|
TQDateTime account_created;
|
||||||
|
TQDateTime account_modified;
|
||||||
|
TQDateTime password_last_changed;
|
||||||
|
bool password_expires;
|
||||||
|
TQDateTime password_expiration;
|
||||||
|
bool password_ages;
|
||||||
|
int new_password_interval;
|
||||||
|
int new_password_warn_interval;
|
||||||
|
int new_password_lockout_delay;
|
||||||
|
bool password_has_minimum_age;
|
||||||
|
int password_minimum_age;
|
||||||
|
int maximum_ticket_lifetime;
|
||||||
|
|
||||||
|
// Page 1
|
||||||
|
TQString commonName;
|
||||||
|
TQString givenName;
|
||||||
|
TQString surName;
|
||||||
|
TQString initials;
|
||||||
|
TQString title;
|
||||||
|
TQString email;
|
||||||
|
TQString description;
|
||||||
|
TQString locality;
|
||||||
|
TQString telephoneNumber;
|
||||||
|
TQString faxNumber;
|
||||||
|
TQString homePhone;
|
||||||
|
TQString mobilePhone;
|
||||||
|
TQString pagerNumber;
|
||||||
|
TQString website;
|
||||||
|
|
||||||
|
// Page 2
|
||||||
|
TQString poBox;
|
||||||
|
TQString street;
|
||||||
|
TQString address;
|
||||||
|
TQString state;
|
||||||
|
TQString postcode;
|
||||||
|
TQString registeredAddress;
|
||||||
|
TQString homeAddress;
|
||||||
|
|
||||||
|
// Page 3
|
||||||
|
TQString seeAlso;
|
||||||
|
TQString deliveryOffice;
|
||||||
|
TQString department;
|
||||||
|
TQString roomNumber;
|
||||||
|
TQString employeeType;
|
||||||
|
TQString employeeNumber;
|
||||||
|
TQString manager;
|
||||||
|
TQString secretary;
|
||||||
|
TQString isdnNumber;
|
||||||
|
TQString teletexID;
|
||||||
|
TQString telexNumber;
|
||||||
|
TQString preferredDelivery;
|
||||||
|
TQString destinationIndicator;
|
||||||
|
TQString x121Address;
|
||||||
|
TQString displayName;
|
||||||
|
TQString preferredLanguage;
|
||||||
|
TQString uniqueIdentifier;
|
||||||
|
TQString businessCategory;
|
||||||
|
TQString carLicense;
|
||||||
|
TQString notes;
|
||||||
|
};
|
||||||
|
|
||||||
|
class LDAPGroupInfo
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
LDAPGroupInfo();
|
||||||
|
~LDAPGroupInfo();
|
||||||
|
|
||||||
|
public:
|
||||||
|
bool informationValid;
|
||||||
|
TQString distinguishedName;
|
||||||
|
TQString creatorsName;
|
||||||
|
|
||||||
|
TQString name;
|
||||||
|
gid_t gid;
|
||||||
|
TQStringList userlist;
|
||||||
|
};
|
||||||
|
|
||||||
|
class LDAPMachineInfo
|
||||||
|
{
|
||||||
|
public:
|
||||||
|
LDAPMachineInfo();
|
||||||
|
~LDAPMachineInfo();
|
||||||
|
|
||||||
|
public:
|
||||||
|
bool informationValid;
|
||||||
|
TQString distinguishedName;
|
||||||
|
TQString creatorsName;
|
||||||
|
|
||||||
|
TQString name;
|
||||||
|
LDAPKRB5Flags status;
|
||||||
|
};
|
||||||
|
|
||||||
|
typedef TQValueList<LDAPUserInfo> LDAPUserInfoList;
|
||||||
|
typedef TQValueList<LDAPGroupInfo> LDAPGroupInfoList;
|
||||||
|
typedef TQValueList<LDAPMachineInfo> LDAPMachineInfoList;
|
||||||
|
|
||||||
|
class LDAPManager : public TQObject {
|
||||||
|
Q_OBJECT
|
||||||
|
|
||||||
|
public:
|
||||||
|
LDAPManager(TQString realm, TQString host, TQObject *parent=0, const char *name=0);
|
||||||
|
~LDAPManager();
|
||||||
|
|
||||||
|
TQString realm();
|
||||||
|
TQString basedn();
|
||||||
|
int bind();
|
||||||
|
int unbind(bool force);
|
||||||
|
LDAPUserInfoList users();
|
||||||
|
LDAPGroupInfoList groups();
|
||||||
|
LDAPMachineInfoList machines();
|
||||||
|
LDAPUserInfo getUserByDistinguishedName(TQString dn);
|
||||||
|
LDAPGroupInfo getGroupByDistinguishedName(TQString dn);
|
||||||
|
int updateUserInfo(LDAPUserInfo user);
|
||||||
|
int updateGroupInfo(LDAPGroupInfo group);
|
||||||
|
int addUserInfo(LDAPUserInfo user);
|
||||||
|
int addGroupInfo(LDAPGroupInfo group);
|
||||||
|
int deleteUserInfo(LDAPUserInfo user);
|
||||||
|
int deleteGroupInfo(LDAPGroupInfo group);
|
||||||
|
int deleteMachineInfo(LDAPMachineInfo machine);
|
||||||
|
|
||||||
|
LDAPCredentials currentLDAPCredentials();
|
||||||
|
|
||||||
|
private:
|
||||||
|
LDAPUserInfo parseLDAPUserRecord(LDAPMessage* entry);
|
||||||
|
LDAPGroupInfo parseLDAPGroupRecord(LDAPMessage* entry);
|
||||||
|
LDAPMachineInfo parseLDAPMachineRecord(LDAPMessage* entry);
|
||||||
|
|
||||||
|
private:
|
||||||
|
TQString m_realm;
|
||||||
|
TQString m_host;
|
||||||
|
int m_port;
|
||||||
|
TQString m_basedc;
|
||||||
|
LDAPCredentials* m_creds;
|
||||||
|
LDAP *m_ldap;
|
||||||
|
};
|
||||||
|
|
||||||
|
#endif // _LIBTDELDAP_H_
|
Loading…
Reference in new issue