[Samba] 3rd POSTING: winbind mixcase DOMAIN+username???

daniel.jarboe at custserv.com daniel.jarboe at custserv.com
Mon Nov 18 19:38:00 GMT 2002


If your user-names are appearing in lowercase like DOMAIN-user that's because that's how they are defined in your NT domain.  I'm not familiar with smbfax but I suggest following up further with the author (whoever is responsible for smbfax-html.pl) to fix their broken software if it is truly dependent on UPPERCASE USERNAMES, which seems unlikely to me.

That being said, if I try to chown DOMAIN-user to DOMAIN-USER, it still retains the same uid for winbind.  It's not real clear from your description what's breaking, but I think you should follow up more with the authors of smbfax-html.pl who might have some insight into what the problem really is.

~ Daniel

-----Original Message-----
From: Di Vaio Gianluigi [mailto:Gianluigi.divaio at italia.ottobock.de] 
Sent: Monday, November 18, 2002 5:37 AM
To: 'Andrew Bartlett'
Cc: 'samba at lists.samba.org'
Subject: R: [Samba] 3rd POSTING: winbind mixcase DOMAIN+username???


Hallo Andrew,
thanks for the answer (for the hints in particular, I'm new on samba mailing
list), I'm working on a fax server based on the original implamentation of
Pedro Fraile you can read all the particular here:

http://www.linuxgazette.com/issue79/fraile.html

The goal of "my" fax server implementation:
Users authentication via samba/winbind/pam
Automatic creation of the mailbox for the users of the domain (only for
internal use with smbfax... because for corporete directive I can't connect
sendmail to our exchange server! Then now I have
WIN2KDOMAIN-USERNAME at faxserver.domain.it);
Hylafax runs fine via command line (send-receive) and also for the incoming
fax that are routed on the mailbox of the users configured in FaxDispatch as
attached in PDF format;

To send the fax I would use "smbfax" here a description of this software as
described by the autor Craig Kelley:
<<Allows users to "print" a document to a network printer. The Samba server
then sends the document to smbfax, which prepares it (MyNOTE: smbfax create
2 files one of this its a temporary with .dat extension) and sends an e-mail
to the owner inviting to complete the fax via a web interface. The user then
clicks on the provided link, fills in the fax information (recipient,
comment, coverpage options, etc.) and clicks on the "send" button.>> 

So I have created the printer "fax" as described in smbfax (plus with auto
download
and installation of the driver on the clients), then I can "print" the
fax, I receive the message in the mailbox with the subject "complete your
fax",
follow the link and...  
 
 Now my problem! 
 
Everytime the page with the form doesn't
appear, but I received a webpage with this message: "Server Error!
WIN2KDOMAINXUSERNAME1511nXnVPc.dat not owned by WIN2KDOMAIN-USERNAME"!!!
 
I have checked that the right permissions are sets on the file
"WIN2KDOMAINXUSERNAME1511nXnVPc.dat" but seems that the error is generated
because in fact the user "WIN2KDOMAIN-username" have the Ownership of rwx on
the temporary file and not the user "WIN2KDOMAIN-USERNAME"!!! 

Actually I have perl 5.6.1 installed... and this is the error log of apache:
 
[Fri Nov  8 11:22:54 2002] [notice] Apache/1.3.23 (Unix) PHP/4.1.0
mod_perl/1.26 configured -- resuming normal operations
[Fri Nov  8 11:22:54 2002] [notice] suEXEC mechanism enabled (wrapper:
/usr/sbin/suexec)
[Fri Nov  8 11:22:54 2002] [notice] Accept mutex: sysvsem (Default: sysvsem)
[Fri Nov  8 11:23:46 2002] smbfax-html.pl:
WIN2KDOMAINXUSERNAME1511nXnVPc.dat not owned by WIN2KDOMAIN-USERNAME 

My linux distribution is a SuSE 8.0 with Samba 2.2.5

Please notice that I have exposed the problem to Mr. Kelley (autor of
smbfax) and to Mr. Fraille (autor of the article on Linux Gazette), both 2
are very kind... Mr. Kelley suggest me to investigate on the winbind and Mr.
Fraille (that runs into the same problem but solved it!) suggest me to add
this line in smbfax-html.pl (that is the script that create the 2 files
described up...) but seems that on my system all is ignored (why?):

sub file_owner {

   my $file = shift;

   my @statent = stat($file) or return undef;
   my @pwent = getpwuid($statent[4]);
   # Put username in uppercase
   $pwent[0] =~ tr/[a-z]ñ/[A-Z]Ñ/;
   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
   return $pwent[0];
}

Sorry for the long mail, but its necessary to better explain my problem, the
last step in the configuration of "my" fax server...

Thanks always,
						Gianluigi Di Vaio
						IT Support
						Otto Bock Italia Srl
						



-----Messaggio originale-----
Da: Andrew Bartlett [mailto:abartlet at samba.org]
Inviato: lunedì 18 novembre 2002 10.16
A: Di Vaio Gianluigi
Cc: 'samba at lists.samba.org'
Oggetto: Re: [Samba] 3rd POSTING: winbind mixcase DOMAIN+username???


On Mon, 2002-11-18 at 18:59, Di Vaio Gianluigi wrote:
> Hallo Everyone,
> Please answer to:
> http://lists.samba.org/pipermail/samba/2002-November/084692.html
> Thanks a lot in advance,
> Gianluigi Di Vaio

A few hints:

Don't post a URL, repost the full details.  Show that you have not just
been waiting for a reply, you have looked into the issue, read the
archives and found no similar request.

Finally, you state that you 'need' the username in upper case.  I would
first look into why that is the case, not why winbind should be changed
(because changing current behavior could be quite painful, and isn't a
short-term fix)

Andrew Bartlett

-- 
Andrew Bartlett                                 abartlet at pcug.org.au
Manager, Authentication Subsystems, Samba Team  abartlet at samba.org
Student Network Administrator, Hawker College   abartlet at hawkerc.net
http://samba.org     http://build.samba.org     http://hawkerc.net
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba

-----------------------------------------------------------------------

This message is the property of Time Inc. or its affiliates. It may be
legally privileged and/or confidential and is intended only for the use
of the addressee(s). No addressee should forward, print, copy, or
otherwise reproduce this message in any manner that would allow it to be
viewed by any individual not originally listed as a recipient. If the
reader of this message is not the intended recipient, you are hereby
notified that any unauthorized disclosure, dissemination, distribution,
copying or the taking of any action in reliance on the information
herein is strictly prohibited. If you have received this communication
in error, please immediately notify the sender and delete this message.
Thank you.




More information about the samba mailing list