CUPS - Ubuntu 10.04 - OpenLDAP

Michael michael.kolowicz at km-f.eu
Thu Nov 17 00:03:20 PST 2011


I have installed CUPS 1.4.3 (via apt-get install cups) and configure the cups.config als follow:

# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock
Listen 192.168.0.91:631

# Show shared printers on the local network.
Browsing Off
BrowseOrder allow,deny
BrowseAllow all
BrowseProtocols CUPS ldap dnssd
BrowseLocalProtocols CUPS ldap dnssd
BrowseRemoteProtocols CUPS ldap dnssd
BrowseAddress @LOCAL
BrowseAddress 192.168.0.255:631

# Configure LDAP printers
BrowseLDAPBindDN cn=admin,dc=example,dc=de
BrowseLDAPPassword secret
BrowseLDAPServer ldap://ldap.example.de/
BrowseLDAPDN ou=Printer,dc=example,dc=de
#BrowseLDAPCACertFile /etc/ssl/startssl/ca-bundle.pem

ServerAlias *
ServerName ldap.example.de
#ServerCertificate /etc/ssl/startssl/server1.example.com.crt
#ServerKey /etc/ssl/startssl/example.com.key

# Default authentication type, when authentication is required...
#DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow 192.168.0.0/24
</Location>

# Restrict access to the admin pages...
<Location /admin>
  Order allow,deny
  Allow 192.168.0.0/24
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  Order allow,deny
  Allow 192.168.0.0/24
</Location>

My SMB.CONF has following entries

# Printing from PCs will go via CUPS ..
        load printers = yes
        printing = cups
        printcap name = cups

[printers]
        comment = Alle Drucker
        path = /var/spool/samba
        use client driver = No
        create mask = 0600
        guest ok = Yes
        printable = Yes
        browseable = No
        public = yes
        writeable = yes
        admin users = root
        write list = root

[print$]
        comment = Druckertreiber
        path = /var/lib/samba/printers
        write list = root
        create mask = 0664
        directory mask = 0775
        admin users = root
        browseable = yes
        guest ok = no
        read only = yes


My problems are:
1) When I add a printe via the webgui then I can created it. If I want to share it with my samba-server I see the message "successfull" - but the details of the printer say "Not sharing"

2.) If I start CUPS no entry will be create in the LDAP

What do I wrong? I try to find out several days - I hopeless :-(




More information about the cups mailing list