+ Post New Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 18
*nix Thread, Interesting prob with CUPS printserver and Windows users in Technical; As you are all aware, I have implemented a PyKota print server and it's really good with only minimal tweaks ...
  1. #1

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    Interesting prob with CUPS printserver and Windows users

    As you are all aware, I have implemented a PyKota print server and it's really good with only minimal tweaks required at the moment to speed up printing on specific printers - a note on this will be added to my HOWTO.

    Anyway... it seems that a random selection of users (staff and pupils) cannot connect to the printers. As far as I can see, there are no differences between any of the working and non-working users and it doesn't look like profile problems because enterring different credentials when adding a printer manually works fine.

    This is currently VERY bad and help is needed QUICK!!!

    It's got to be permissions or something but, like I said, I cannot see a difference between those users that work and do not work. I have also checked that the Linux box understands the non-working users using 'wbinfo -i | grep <username>'

  2. #2


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: Interesting prob with CUPS printserver and Windows users

    a couple of things to check might be
    UserPrincipleName == sAMAccountName and differences with primary groups

  3. #3

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    Re: Interesting prob with CUPS printserver and Windows users

    @CyberNerd: I have checked all the properties and ther doesn't seem to be any discrepencies. I have made a copy of a user that does not work and this copied user also does not map the printers.

    Is there any way to generate a report outlining the differences between two accounts?

  4. #4

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Interesting prob with CUPS printserver and Windows users

    Dump the user info via LDAP and diff the results?

  5. #5

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    Re: Interesting prob with CUPS printserver and Windows users

    I have used LDAP Browser to view two users side by side. One of these users can connect to printers the other cannot. Both users are staff users and were created at the same time.

    The only differences between the two usrs are what you would expect - names, etc.

    I am really struggling here and desperately need to find a solution. Any ideas people?

  6. #6
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,421
    Thank Post
    10
    Thanked 486 Times in 426 Posts
    Rep Power
    110

    Re: Interesting prob with CUPS printserver and Windows users

    Do you have more than 1000 user objects in AD? Does the linux box query all user objects or request one? You might need to increase your ADs maximum search results, I increased mine to 1500 for my mac server to return ldap user searches correctly (if returning all users then some were missing).

  7. #7
    DMcCoy's Avatar
    Join Date
    Oct 2005
    Location
    Isle of Wight
    Posts
    3,421
    Thank Post
    10
    Thanked 486 Times in 426 Posts
    Rep Power
    110

    Re: Interesting prob with CUPS printserver and Windows users

    Move a non working user to a seperate OU and only search that OU and see if it works.

  8. #8

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    Re: Interesting prob with CUPS printserver and Windows users

    How do I change the maximum search results? I definately do have more than 1000 user objects.

  9. #9


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: Interesting prob with CUPS printserver and Windows users

    http://support.microsoft.com/default...315071&sd=tech

    I'm not 100% sure this is the problem, certainly I've seen similar symptoms with LDAP queries, but AFIK winbind doesn't use ldap ??

  10. #10

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Interesting prob with CUPS printserver and Windows users

    It does not. It uses native Active Directory RPC calls.

  11. #11


    Join Date
    Jan 2006
    Posts
    8,202
    Thank Post
    442
    Thanked 1,032 Times in 812 Posts
    Rep Power
    339

    Re: Interesting prob with CUPS printserver and Windows users

    Are you running nscd ?
    It is known to cause problems with winbind
    http://www.samba.org/samba/docs/man/....html#id385581

  12. #12

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Interesting prob with CUPS printserver and Windows users

    Good catch, I'd forgotten about that.

  13. #13

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    Re: Interesting prob with CUPS printserver and Windows users

    @CyberNerd: Unfortunately, that was not the problem

    Upon some further inspection though, it appears that Winbind is failing to get the user info for these users. For example, a working account gives:
    debian-02:/etc/init.d# wbinfo --user-info=ipa
    ipa:*:11221:10000:Mr I Patel:/home/BAINES/ipa:/bin/false
    While a non-working account (in the same OU and with the same group membership, etc.) gives:
    debian-02:/etc/init.d# wbinfo --user-info=kwx
    Could not get info for user kwx
    Winbind knows that the user exists mind:
    debian-02:/etc/init.d# wbinfo -u | grep kwx
    kwx

  14. #14

    Geoff's Avatar
    Join Date
    Jun 2005
    Location
    Fylde, Lancs, UK.
    Posts
    11,802
    Thank Post
    110
    Thanked 583 Times in 504 Posts
    Blog Entries
    1
    Rep Power
    224

    Re: Interesting prob with CUPS printserver and Windows users

    turn the debugging up and query the user again.

  15. #15

    Ric_'s Avatar
    Join Date
    Jun 2005
    Location
    London
    Posts
    7,590
    Thank Post
    109
    Thanked 762 Times in 593 Posts
    Rep Power
    180

    Re: Interesting prob with CUPS printserver and Windows users

    OK... tried playng with the debug level and I think that the relevant bits are these:
    Quote Originally Posted by log.winbindd
    [ 0]: lookupname Unix User log file = /var/log/samba/log.%mroot
    [2007/04/19 12:55:00, 5] nsswitch/winbindd_async.c:lookupname_recv(641)
    lookup_name returned an error
    ...
    [2007/04/19 12:55:01, 5] nsswitch/winbindd_async.c:idmap_sid2uid_recv(232)
    sid2uid returned an error
    ...
    [2007/04/19 12:55:01, 5] nsswitch/winbindd_async.c:sid2uid_alloc_recv(1228)
    Could not allocate uid
    [2007/04/19 12:55:01, 5] nsswitch/winbindd_user.c:getpwsid_sid2uid_recv(264)
    Could not query user's BAINES\copied uid
    Quote Originally Posted by log.winbindd-idmap
    [2007/04/19 13:00:48, 0] tdb/tdbutil.c:tdb_log(783)
    tdb(/var/lib/samba/winbindd_idmap.tdb): rec_read bad magic 0x42424242 at offset=249672

SHARE:
+ Post New Thread
Page 1 of 2 12 LastLast

Similar Threads

  1. Changing windows explorer views for users.
    By Galway in forum Windows
    Replies: 1
    Last Post: 11th August 2007, 01:03 PM
  2. Replies: 6
    Last Post: 9th May 2007, 09:22 PM
  3. Replies: 1
    Last Post: 18th April 2007, 08:01 AM
  4. Replies: 10
    Last Post: 31st March 2007, 05:40 PM
  5. Replies: 14
    Last Post: 12th May 2006, 09:48 AM

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •