HylaFAX The world's most advanced open source fax server

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

[hylafax-users] WHFC Authentication failure




Hello list,

Please allow me to ask a few Qs regarding HylaFax with WHFC and destinations control.
I have setup WHFC and it works okay with my HylaFax except for some small problem.
One of my users is being denied access.

In hosts.hfaxd, I have

^username@.*\.wananchi.com$

This user is connecting from somehost.wananchi.com. The authentication that is
(seemingly) being used is their password on that HylaFax server. I say seemingly
because users get prompted for a passwd and they type in their e-mail passwds and
are allowed in. Is this an illusion or a reality? 

Secondly Can I force the HylaFax server to use the encrypted passwd from the shadow
passwd file?

I can use a small awk script that will update the hosts.hfaxd but I am not sure
of the correct specification.

From the man page:


	Each  newline-terminated entry is a set of colon (:) sepa-
       rated fields, all but the first  of  which  are  optional.
       Trailing  null fields and their separators may be omitted.
       The most general form is:

            client:uid:passwd:adminwd

       client is a regular expression to  be  matched  against  a
       string  ``user@host''  that is formed from the user string
       passed to hfaxd with the USER  command  and  the  official
       host  name  or  the  DARPA  Internet address, specified in
       ``dot notation''.  If client does  not  contain  an  ``@''
       then, for backwards compatibility, it is treated as a host
       for which any user may have access; i.e. it  is  automati-
       cally converted to the regular expression ``^.*@client$''.


I am brain dead now. I can't figure out what the correct sequence is. 
Suppose I want to force a user's passwd, which of the lines below is correct?


1.	user@.*\.wananchi.com:2222:$1$Tz.OjMPg$5j5pGgjfUHFNlJaSLsr5P/: 

#There we have user@.*\.wananchi.com

2.	^user@.*\.wananchi.com$:2222:$1$Tz.OjMPg$5j5pGgjfUHFNlJaSLsr5P/: 

#There we have ^user@.*\.wananchi.com$


3.	user:2222:$1$Tz.OjMPg$5j5pGgjfUHFNlJaSLsr5P/:


Third question:

In my destinations control file, I allow numbers as shown:

<cut>
^[+]82[0-9]{4}$         TimeOfDay = "Wk0945-1830,Sat,Sun"
^[+]83[0-9]{4}$         TimeOfDay = "Wk0945-1830,Sat,Sun"
^[+]86[0-9]{4}$         TimeOfDay = "Wk0945-1830,Sat,Sun"
^[+]88[0-9]{4}$         TimeOfDay = "Wk0945-1830,Sat,Sun"
^[+]89[0-9]{4}$         TimeOfDay = "Wk0945-1830,Sat,Sun"
#
# Let's allow people to send to the ISDN numbers
# In order they are KPLC, KenCell, Safaricom - the one's I know so far.
^[+]3201[0-9]{4}$       TimeOfDay = "Wk0945-1830,Sat,Sun"
^[+]6901[0-9]{4}$       TimeOfDay = "Wk0945-1830,Sat,Sun"
^[+]3272[0-9]{4}$       TimeOfDay = "Wk0945-1830,Sat,Sun"

# Let's block _everything_ else
#.*             RejectNotice = "We don't accept faxes destined for outside our dialing area. Please contact
		faxmaster@wananchi.com for clarification."
</cut>


The problem is that in my endeavor to reject all other numbers not expressly allowed, that last
line gives me headache. That's why it is having a hash. The moment I enable it, it rejects all
faxes.

That was long but if you've read this far, I must sincerely thank you in advance for your feedback.




-Wash

S y s t e m s   A d m i n i s t r a t o r
--
                                              ~\\_                 
 Odhiambo Washington                            \\\\               
 Wananchi Online Ltd.,                          `\\\\\             
 1st Flr Loita Hse, Loita Street                 |\\\\\            
 PO Box 10286,00100-NAIROBI,KE.                   \\\\\|__.--~~\   
 Fax: 254 2 313985-9                           _--~            /   
 Fax: 254 2 313922                           /~ //////  _-~~~~'    
 E-mail: wash@wananchi.com                  ('-//////-//           
 URL	: http://www.wananchi.com            //////(((-)           
 GSM: 254 72 743 223 / 254 733 744 121     /////"                  
                                        _///"                      

+++
Lizzie Borden took an axe,
And plunged it deep into the VAX;
Don't you envy people who
Do all the things ___YOU want to do?


____________________ HylaFAX(tm) Users Mailing List _______________________
 To unsub: mail -s unsubscribe hylafax-users-request@hylafax.org < /dev/null




Project hosted by iFAX Solutions