[users] GQ - LDAP Browser/Editor

Anthony Messina amessina at messinet.com
Sat Apr 1 01:12:06 CEST 2006


Phil Schaffner wrote:
> On Fri, 2006-03-31 at 09:10 -0600, Anthony Messina wrote:
>> Ralph Angenendt wrote:
>>> I haven't been able to run gq from FC3 onwards, neither did I succeed to
>>> do so on CentOS4. gq just keeps crashing when you try to browse the
>>> ldap directory tree.
>>>
>>> That was when I found Luma <http://luma.sourceforge.net/>, which IMNSHO
>>> is much better than gq. Although it's not packaged for rpmforge, either.
>>>
>>> Ralph
>> luma does look pretty good.  i guess what i'm looking for is a gui that 
>> doesn't have too many wizards for creation of things.  i liked the fact 
>> that gq was just showing you (for the most part) attribute:value pairs.
>>
>> i'd like to give luma a try.
>>
>> i'd like to see luma in rpmforge.
> 
> FWIW - spec files for CentOS 4 for luma and py-smbpasswd dependency follow.
> Didn't get around to updating change logs as they were for local use.
> 
> Phil
> 
> ---------------------------------------------------- cut here
> ------------------------------------------------------
> %define _name		luma
> %define _version	2.3
> %define _rel		1
> 
> %define _prefix	/usr
> 
> %define _rhel		%(if [ -f /etc/redhat-release ]; then echo 1; else echo
> 0; fi)
> 
> %if %_rhel
> %define _rhel_version	%(grep VERSION /etc/redhat-release|cut -f3 -d" ")
> %define _rhel_vernum		%(echo "%_rhel_version"|tr -d '.')
> %define _release			%{_rel}.guru.rhel%{_rhel_vernum}
> %define _distribution	Red Hat Enterprise Linux %_rhel_version
> %else
> %define _release			%_rel
> %endif
> 
> Summary:			LDAP Management GUI
> Name:				%{_name}
> Version:			%{_version}
> Release:			%{_release}
> Source:			http://osdn.dl.sourceforge.net/luma/luma-%{_version}.tar.bz2
> Source1:			luma.desktop
> URL:				http://luma.sourceforge.net/
> Group:			Productivity/Networking/Administration
> Packager:		Pascal Bleser <guru at unixtech.be>
> License:			GPL
> BuildRoot:		%{_tmppath}/build-%{_name}-%{_version}
> Prefix:			%{_prefix}
> Requires:		PyQt >= 3.10, qt >= 3.2.0, python-ldap >= 2.0.1, python, py-
> smbpasswd, sip >= 4.1-1
> BuildRequires:	PyQt >= 3.10, qt >= 3.2.0, python-ldap >= 2.0.1, python,
> py-smbpasswd
> BuildArch:		noarch
> %{?rhel_update_desktop_file:BuildRequires:update-desktop-files}
> %{?_distribution:Distribution:%_distribution}
> 
> %description
> Luma is a graphical utility for accessing and managing data stored on
> LDAP servers. It is written in Python, using PyQt and
> python-ldap. Plugin-support is included and useful widgets with
> LDAP-functionality for easy creation of plugins are delivered.
> 
> %prep
> %setup -q
> 
> %build
> 
> %install
> %{__rm} -rf "%{buildroot}"
> %{__mkdir_p} "%{buildroot}%{_prefix}"
> python ./install.py --prefix="%{buildroot}%{_prefix}"
> 
> %{__mkdir_p} "%{buildroot}/usr/share/applications"
> %{__install} -m 0644 "%{SOURCE1}" "%
> {buildroot}/usr/share/applications/luma.desktop"
> %{__mkdir_p} "%{buildroot}/usr/share/pixmaps"
> %{__install} -m 0644 share/luma/icons/luma-128.png "%
> {buildroot}/usr/share/pixmaps/luma.png"
> 
> %if %{?rhel_update_desktop_file:1}%{?!rhel_update_desktop_file:0}
> %rhel_update_desktop_file luma System Database
> %endif
> 
> %clean
> %{__rm} -rf "%{buildroot}"
> 
> %files
> %defattr(-,root,root)
> %doc COPYING LICENSE README
> %{_bindir}/luma
> %{_libdir}/luma
> %{_datadir}/luma
> %doc %{_mandir}/man1/luma.1*
> /usr/share/applications/luma.desktop
> /usr/share/pixmaps/luma.png
> 
> %changelog
> * Tue Aug 16 2005 Pascal Bleser <guru at unixtech.be> 2.2-1
> - added desktop menu entry
> - version 2.2
> 
> * Wed Mar 16 2005 Pascal Bleser <guru at unixtech.be> 2.1.3-1
> - version 2.1.3
> 
> * Wed Mar 16 2005 Pascal Bleser <guru at unixtech.be> 2.1.2-1
> - version 2.1.2
> 
> * Mon Mar 14 2005 Pascal Bleser <guru at unixtech.be> 2.1.1-1
> - version 2.1.1
> 
> * Wed Mar  2 2005 Pascal Bleser <guru at unixtech.be> 2.1-1
> - version 2.1
> 
> * Mon Feb 14 2005 Pascal Bleser <guru at unixtech.be> 2.0.3-1
> - version 2.0.3
> 
> * Mon Jan 31 2005 Pascal Bleser <guru at unixtech.be> 2.0.2-1
> - Added support for connecting via Unix sockets
> - Translation for Czech added
> - Updated translations for Portuguese and Norwegian
> - Fix for disabled method box in the server dialog when selecting SASL
> GSSAPI
> - Fix for displaying double-clicked entries in the schemaviewer when a
> filter is used
> 
> * Wed Jan 26 2005 Pascal Bleser <guru at unixtech.be> 2.0.1-1
> - Fix for name handling in Addressbook
> - GUI no more blocked when connecting to a slow server
> - Added gecos attribute support to Addressbook and Usermanagement plugin
> - Fixed bug when finding parent classes in the schema
> - Disabled GUI when performing LDAP operations
> 
> * Tue Jan 18 2005 Pascal Bleser <guru at unixtech.be> 2.0-1
> - version 2.0
> 
> * Mon Nov  8 2004 Pascal Bleser <guru at unixtech.be> 1.5-1
> - new package
> 
> # Local Variables:
> # mode: rpm-spec
> # tab-width: 3
> # End:
> ---------------------------------------------------- end here
> ------------------------------------------------------
> ---------------------------------------------------- cut here
> ------------------------------------------------------
> %define name py-smbpasswd
> %define ver 1.0
> %define rel el4
> 
> %define have_pre %(echo %ver|awk '{p=0} /[a-z,A-Z][a-z,A-Z]/ {p=1}
> {print p}')
> %if %have_pre
> %define version %(perl -e '$name="%ver"; print ($name =~ /(.*?)[a-
> z]/);')
> %define release 0.%(echo %ver|sed -e 's/%version//g').%rel
> %else
> %define version %ver
> %define release %rel
> %endif
> 
> Summary: 	NT/LM hash generation module for Python
> Name: 		%{name}
> Version: 	%{version}
> Release: 	%{release}
> Source0: 	http://barryp.org/software/%{name}/files/%{name}-%
> {ver}.tar.bz2
> License:	GPL
> Group: 		Development/Python
> BuildRoot: 	%{_tmppath}/%{name}-buildroot
> Prefix: 	%{_prefix}
> Url: 		http://barryp.org/software/%{name}/
> BuildRequires:  python-devel
> 
> %description
> This module can generate both LANMAN and NT password hashes, suitable
> for use 
> with Samba.
> 
> Sample usage
>     import smbpasswd    
>     pwd = 'mypassword'
>     print 'LANMAN hash is', smbpasswd.lmhash(pwd)               
>     print 'NT hash is', smbpasswd.nthash(pwd)
>     print 'both hashes at once = %s:%s (lm:nt)' % smbpasswd.hash(pwd)
> 
> %prep
> %setup -q -n %{name}-%ver
> 
> %build
> env CFLAGS="$RPM_OPT_FLAGS" python setup.py build
> 
> %install
> python setup.py install --root=$RPM_BUILD_ROOT --record=INSTALLED_FILES
> 
> %clean
> rm -rf $RPM_BUILD_ROOT
> 
> %files -f INSTALLED_FILES
> %defattr(-,root,root)
> %doc README.txt
> 
> %changelog
> * Sun Apr 03 2005 Michael Scherer <misc at mandrake.org> 1.0-2mdk
> - Rebuild for new python
> 
> * Tue Jul 20 2004 Buchan Milne <bgmilne at linux-mandrake.com> 1.0-1mdk
> - First Mandrake package
> ---------------------------------------------------- end here
> ------------------------------------------------------

thanks phil.  i'm forwarding your spec to the rpmforge.net users list...

-- 
Anthony

My Website: http://messinet.com
My Online Gallery: 
http://messinet.com/modules.php?name=Web_Links&l_op=visit&lid=3

Registered Linux User #389089
Get counted!: http://counter.li.org



More information about the users mailing list