*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 ...
-
17th April 2007, 05:08 PM #1 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>'
-
-
IDG Tech News
-
17th April 2007, 06:10 PM #2 Re: Interesting prob with CUPS printserver and Windows users
a couple of things to check might be
UserPrincipleName == sAMAccountName and differences with primary groups
-
-
18th April 2007, 08:36 AM #3 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?
-
-
18th April 2007, 09:10 AM #4 Re: Interesting prob with CUPS printserver and Windows users
Dump the user info via LDAP and diff the results?
-
-
19th April 2007, 08:14 AM #5 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?
-
-
19th April 2007, 08:26 AM #6 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).
-
-
19th April 2007, 08:27 AM #7 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.
-
-
19th April 2007, 09:05 AM #8 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.
-
-
19th April 2007, 09:15 AM #9 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 ??
-
-
19th April 2007, 09:27 AM #10 Re: Interesting prob with CUPS printserver and Windows users
It does not. It uses native Active Directory RPC calls.
-
-
19th April 2007, 10:04 AM #11 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
-
-
19th April 2007, 10:11 AM #12 Re: Interesting prob with CUPS printserver and Windows users
Good catch, I'd forgotten about that.
-
-
19th April 2007, 10:20 AM #13 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
-
-
19th April 2007, 10:23 AM #14 Re: Interesting prob with CUPS printserver and Windows users
turn the debugging up and query the user again.
-
-
19th April 2007, 12:03 PM #15 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:

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

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:
Similar Threads
-
By Galway in forum Windows
Replies: 1
Last Post: 11th August 2007, 01:03 PM
-
By tosca925 in forum Windows
Replies: 6
Last Post: 9th May 2007, 09:22 PM
-
Replies: 1
Last Post: 18th April 2007, 08:01 AM
-
By Halfmad in forum Windows
Replies: 10
Last Post: 31st March 2007, 05:40 PM
-
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
-
Forum Rules