From: Zoolook on
hi!

no one knows?

2009/12/22 Zoolook <nbensa(a)gmail.com>:
> Hello,
>
> I couldn't find an answer to this small question in google/man/faq:
> why do I use lose my printer if I use registry backend?
>
>
> config backend = file (full config file below):
>
> ...
> [printers]
>        comment = All Printers
>        path = /var/spool/samba
>        create mask = 0700
>        printable = Yes
>        browseable = No
>        guest ok = yes
> ...
>
> $ smbclient -kL //venkman
> ...
>        EPSON_Stylus_CX5900 Printer   EPSON Stylus CX5900
> ...
>
>
> config backend = files, delete everything except [printers] and
> include "include = registry":
>
> ...
> [global]
>        include = registry
>
> [printers]
>        comment = All Printers
>        path = /var/spool/samba
>        create mask = 0700
>        printable = Yes
>        browseable = No
>        guest ok = yes
> ...
>
> $ smbclient -kL //venkman
> ...
>        EPSON_Stylus_CX5900 Printer   EPSON Stylus CX5900
> ...
>
>
> **BUT** if I change to config backend = registry, I no longer see my printer
>
> ...
> [global]
>       config backend = registry
> ...
>
> $ smbclient  -kL //venkman
> Domain=[BENSA] OS=[Unix] Server=[Samba 3.4.0]
>
>        Sharename       Type      Comment
>        ---------       ----      -------
>        IPC$            IPC       IPC Service (venkman server (Samba, Ubuntu))
>        zoolook         Disk      Home Directory
>        print$          Disk      Printer Drivers
> Domain=[BENSA] OS=[Unix] Server=[Samba 3.4.0]
>
>        Server               Comment
>        ---------            -------
>        VENKMAN              venkman server (Samba, Ubuntu)
>
>        Workgroup            Master
>        ---------            -------
>        BENSA                VENKMAN
>
>
> Why? (and no, disabling kerberos makes no difference...)
>
> samba is 2:3.4.0-3ubuntu5.3, ubuntu karmic.
>
> Here's my net conf list
>
> $ sudo net conf list
> [global]
>        workgroup = BENSA
>        server string = %h server (Samba, Ubuntu)
>        map to guest = Bad User
>        obey pam restrictions = Yes
>        passdb backend = ldapsam:ldap://localhost
>        dedicated keytab file = /etc/samba/smb.keytab
>        kerberos method = dedicated keytab
>        syslog = 0
>        log file = /var/log/samba/log.%m
>        max log size = 1000
>        announce version = 5.9
>        time server = Yes
>        add user script = /usr/sbin/smbldap-useradd -m '%u'
>        delete user script = /usr/sbin/smbldap-userdel '%u'
>        add group script = /usr/sbin/smbldap-groupadd '%g'
>        delete group script = /usr/sbin/smbldap-userdel '%g'
>        add user to group script = /usr/sbin/smbldap-groupmod -m '%u' '%g'
>        delete user from group script = /usr/sbin/smbldap-groupmod -x '%u' '%g'
>        set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
>        add machine script = /usr/sbin/smbldap-useradd -t 0 -w '%u'
>        domain logons = Yes
>        os level = 255
>        preferred master = Yes
>        dns proxy = No
>        wins support = Yes
>        ldap admin dn = cn=admin,dc=bensa,dc=ar
>        ldap group suffix = ou=groups
>        ldap idmap suffix = ou=idmap
>        ldap machine suffix = ou=machines
>        ldap passwd sync = yes
>        ldap suffix = dc=bensa,dc=ar
>        ldap ssl = no
>        ldap user suffix = ou=users
>        usershare allow guests = Yes
>        panic action = /usr/share/samba/panic-action %d
>        realm = BENSA.AR
>
> [printers]
>        comment = All Printers
>        path = /var/spool/samba
>        create mask = 0700
>        printable = Yes
>        browseable = No
>        guest ok = yes
>
> [print$]
>        comment = Printer Drivers
>        path = /var/lib/samba/printers
>
> [homes]
>        comment = Home Directory
>        browseable = No
>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Zoolook on
Ok so in 3.4.6 it is fixed, just no the way I like: printers are show only
if "config backend = file"

:-/

So. What is "config backend = registry" good for? or was it an experiment no
one really cared?


2010/3/19 Zoolook <nbensa(a)gmail.com>

> hi!
>
> no one knows?
>
> 2009/12/22 Zoolook <nbensa(a)gmail.com>:
> > Hello,
> >
> > I couldn't find an answer to this small question in google/man/faq:
> > why do I use lose my printer if I use registry backend?
> >
> >
> > config backend = file (full config file below):
> >
> > ...
> > [printers]
> > comment = All Printers
> > path = /var/spool/samba
> > create mask = 0700
> > printable = Yes
> > browseable = No
> > guest ok = yes
> > ...
> >
> > $ smbclient -kL //venkman
> > ...
> > EPSON_Stylus_CX5900 Printer EPSON Stylus CX5900
> > ...
> >
> >
> > config backend = files, delete everything except [printers] and
> > include "include = registry":
> >
> > ...
> > [global]
> > include = registry
> >
> > [printers]
> > comment = All Printers
> > path = /var/spool/samba
> > create mask = 0700
> > printable = Yes
> > browseable = No
> > guest ok = yes
> > ...
> >
> > $ smbclient -kL //venkman
> > ...
> > EPSON_Stylus_CX5900 Printer EPSON Stylus CX5900
> > ...
> >
> >
> > **BUT** if I change to config backend = registry, I no longer see my
> printer
> >
> > ...
> > [global]
> > config backend = registry
> > ...
> >
> > $ smbclient -kL //venkman
> > Domain=[BENSA] OS=[Unix] Server=[Samba 3.4.0]
> >
> > Sharename Type Comment
> > --------- ---- -------
> > IPC$ IPC IPC Service (venkman server (Samba,
> Ubuntu))
> > zoolook Disk Home Directory
> > print$ Disk Printer Drivers
> > Domain=[BENSA] OS=[Unix] Server=[Samba 3.4.0]
> >
> > Server Comment
> > --------- -------
> > VENKMAN venkman server (Samba, Ubuntu)
> >
> > Workgroup Master
> > --------- -------
> > BENSA VENKMAN
> >
> >
> > Why? (and no, disabling kerberos makes no difference...)
> >
> > samba is 2:3.4.0-3ubuntu5.3, ubuntu karmic.
> >
> > Here's my net conf list
> >
> > $ sudo net conf list
> > [global]
> > workgroup = BENSA
> > server string = %h server (Samba, Ubuntu)
> > map to guest = Bad User
> > obey pam restrictions = Yes
> > passdb backend = ldapsam:ldap://localhost
> > dedicated keytab file = /etc/samba/smb.keytab
> > kerberos method = dedicated keytab
> > syslog = 0
> > log file = /var/log/samba/log.%m
> > max log size = 1000
> > announce version = 5.9
> > time server = Yes
> > add user script = /usr/sbin/smbldap-useradd -m '%u'
> > delete user script = /usr/sbin/smbldap-userdel '%u'
> > add group script = /usr/sbin/smbldap-groupadd '%g'
> > delete group script = /usr/sbin/smbldap-userdel '%g'
> > add user to group script = /usr/sbin/smbldap-groupmod -m '%u' '%g'
> > delete user from group script = /usr/sbin/smbldap-groupmod -x '%u'
> '%g'
> > set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
> > add machine script = /usr/sbin/smbldap-useradd -t 0 -w '%u'
> > domain logons = Yes
> > os level = 255
> > preferred master = Yes
> > dns proxy = No
> > wins support = Yes
> > ldap admin dn = cn=admin,dc=bensa,dc=ar
> > ldap group suffix = ou=groups
> > ldap idmap suffix = ou=idmap
> > ldap machine suffix = ou=machines
> > ldap passwd sync = yes
> > ldap suffix = dc=bensa,dc=ar
> > ldap ssl = no
> > ldap user suffix = ou=users
> > usershare allow guests = Yes
> > panic action = /usr/share/samba/panic-action %d
> > realm = BENSA.AR
> >
> > [printers]
> > comment = All Printers
> > path = /var/spool/samba
> > create mask = 0700
> > printable = Yes
> > browseable = No
> > guest ok = yes
> >
> > [print$]
> > comment = Printer Drivers
> > path = /var/lib/samba/printers
> >
> > [homes]
> > comment = Home Directory
> > browseable = No
> >
>
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Michael Adam on
Hi Zoolook,

Oops, I just now found this little "thread".
Sorry for not having answered earlier.

This definitely looks like a bug.

The registry config backend is not an experiment, but
apparently, it was not much tested with printing.
(Since most of the time, it is used in clustererd
installations (with ctdb), where usually no printing
is done at all, and most of the time it is used in the
"include = registry" form.)

I am going to investigate this.
Would you mind filing a bug in bugzilla.samba.org for this?

Thanks for your patience and stay tuned...

Cheers - Michael

Zoolook wrote:
> Ok so in 3.4.6 it is fixed, just no the way I like: printers are show only
> if "config backend = file"
>
> :-/
>
> So. What is "config backend = registry" good for? or was it an experiment no
> one really cared?
>
>
> 2010/3/19 Zoolook <nbensa(a)gmail.com>
>
> > hi!
> >
> > no one knows?
> >
> > 2009/12/22 Zoolook <nbensa(a)gmail.com>:
> > > Hello,
> > >
> > > I couldn't find an answer to this small question in google/man/faq:
> > > why do I use lose my printer if I use registry backend?
> > >
> > >
> > > config backend = file (full config file below):
> > >
> > > ...
> > > [printers]
> > > comment = All Printers
> > > path = /var/spool/samba
> > > create mask = 0700
> > > printable = Yes
> > > browseable = No
> > > guest ok = yes
> > > ...
> > >
> > > $ smbclient -kL //venkman
> > > ...
> > > EPSON_Stylus_CX5900 Printer EPSON Stylus CX5900
> > > ...
> > >
> > >
> > > config backend = files, delete everything except [printers] and
> > > include "include = registry":
> > >
> > > ...
> > > [global]
> > > include = registry
> > >
> > > [printers]
> > > comment = All Printers
> > > path = /var/spool/samba
> > > create mask = 0700
> > > printable = Yes
> > > browseable = No
> > > guest ok = yes
> > > ...
> > >
> > > $ smbclient -kL //venkman
> > > ...
> > > EPSON_Stylus_CX5900 Printer EPSON Stylus CX5900
> > > ...
> > >
> > >
> > > **BUT** if I change to config backend = registry, I no longer see my
> > printer
> > >
> > > ...
> > > [global]
> > > config backend = registry
> > > ...
> > >
> > > $ smbclient -kL //venkman
> > > Domain=[BENSA] OS=[Unix] Server=[Samba 3.4.0]
> > >
> > > Sharename Type Comment
> > > --------- ---- -------
> > > IPC$ IPC IPC Service (venkman server (Samba,
> > Ubuntu))
> > > zoolook Disk Home Directory
> > > print$ Disk Printer Drivers
> > > Domain=[BENSA] OS=[Unix] Server=[Samba 3.4.0]
> > >
> > > Server Comment
> > > --------- -------
> > > VENKMAN venkman server (Samba, Ubuntu)
> > >
> > > Workgroup Master
> > > --------- -------
> > > BENSA VENKMAN
> > >
> > >
> > > Why? (and no, disabling kerberos makes no difference...)
> > >
> > > samba is 2:3.4.0-3ubuntu5.3, ubuntu karmic.
> > >
> > > Here's my net conf list
> > >
> > > $ sudo net conf list
> > > [global]
> > > workgroup = BENSA
> > > server string = %h server (Samba, Ubuntu)
> > > map to guest = Bad User
> > > obey pam restrictions = Yes
> > > passdb backend = ldapsam:ldap://localhost
> > > dedicated keytab file = /etc/samba/smb.keytab
> > > kerberos method = dedicated keytab
> > > syslog = 0
> > > log file = /var/log/samba/log.%m
> > > max log size = 1000
> > > announce version = 5.9
> > > time server = Yes
> > > add user script = /usr/sbin/smbldap-useradd -m '%u'
> > > delete user script = /usr/sbin/smbldap-userdel '%u'
> > > add group script = /usr/sbin/smbldap-groupadd '%g'
> > > delete group script = /usr/sbin/smbldap-userdel '%g'
> > > add user to group script = /usr/sbin/smbldap-groupmod -m '%u' '%g'
> > > delete user from group script = /usr/sbin/smbldap-groupmod -x '%u'
> > '%g'
> > > set primary group script = /usr/sbin/smbldap-usermod -g '%g' '%u'
> > > add machine script = /usr/sbin/smbldap-useradd -t 0 -w '%u'
> > > domain logons = Yes
> > > os level = 255
> > > preferred master = Yes
> > > dns proxy = No
> > > wins support = Yes
> > > ldap admin dn = cn=admin,dc=bensa,dc=ar
> > > ldap group suffix = ou=groups
> > > ldap idmap suffix = ou=idmap
> > > ldap machine suffix = ou=machines
> > > ldap passwd sync = yes
> > > ldap suffix = dc=bensa,dc=ar
> > > ldap ssl = no
> > > ldap user suffix = ou=users
> > > usershare allow guests = Yes
> > > panic action = /usr/share/samba/panic-action %d
> > > realm = BENSA.AR
> > >
> > > [printers]
> > > comment = All Printers
> > > path = /var/spool/samba
> > > create mask = 0700
> > > printable = Yes
> > > browseable = No
> > > guest ok = yes
> > >
> > > [print$]
> > > comment = Printer Drivers
> > > path = /var/lib/samba/printers
> > >
> > > [homes]
> > > comment = Home Directory
> > > browseable = No
> > >
> >
> --
> To unsubscribe from this list go to the following URL and read the
> instructions: https://lists.samba.org/mailman/options/samba

From: Zoolook on
Hello Michael,

2010/3/22 Michael Adam <obnox(a)samba.org>

> The registry config backend is not an experiment, but
> apparently, it was not much tested with printing.
> (Since most of the time, it is used in clustererd
> installations (with ctdb), where usually no printing
> is done at all, and most of the time it is used in the
> "include = registry" form.)

Thanks for the explanation.


> I am going to investigate this.
> Would you mind filing a bug in bugzilla.samba.org for this?

Yes, of course. I will tonight. 12 hours from now.


> Thanks for your patience and stay tuned...

:-)

Regards,
Norberto
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba
From: Zoolook on
2010/3/22 Zoolook <nbensa(a)gmail.com>:
>> I am going to investigate this.
>> Would you mind filing a bug in bugzilla.samba.org for this?
>
> Yes, of course. I will tonight. 12 hours from now.

Bug #7280


Thanks!

Norberto
--
To unsubscribe from this list go to the following URL and read the
instructions: https://lists.samba.org/mailman/options/samba