No subject
Jennie R. McLaughlin
mclaughj at aurora.sunyocc.edu
Thu Jun 15 19:48:12 GMT 2000
I am running Red Hat Linux 6.0. I installed pam_smb and smb
2.0.7. Everything seems to be going well except on the pam_smb site there
says there us a bug when you telnet from a host whose IP address is not
resolvable to a hostname. It causes login to crash. We are having this
problem exactly.
It suggested to download the SRPMS for util-linux-2.9.o-13, which I did.
Goes fine untill I run patch -p0<login.c.diff. I get the following error:
[root at aurora login-utils]# patch -p0 < login.c.diff
patching file `login.c'
Hunk #1 FAILED at 354.
1 out of 1 hunk FAILED -- saving rejects to login.c.rej
[root at aurora login-utils]#
Attached is a copy of the rejects. Do you know why I am having this
problem, or could you point me in a direction to try to find a solution?
Any help would be greatly appreciated!
Thanks!
Jennie
*****************************************************
Systems Administrator
Onondaga Community College
mclaughj at sunyocc.edu
jmclaugh at oswego.edu
http://www.oswego.edu/~jmclaugh
*****************************************************
On Thu, 8 Jun 2000, Matthew Keller wrote:
> "Jennie R. McLaughlin" wrote:
> >
> > My boss met you at STC and asked me to write you.
>
> Jennie,
> Yes, Paul and I talked for quite a bit. Given your environment, I don't
> think you need any extra coding.
>
> If you don't have it already, I highly recommend the book "Using Samba"
> (published by O'Reilly's). I may make some page references to this book.
> Also, I highly recommend a tool called webmin (
> http://www.webmin.com/webmin ) for administering you Linux/UNIX box(es).
> It is free, and a godsend (you can also configure Samba with it. :)
>
> I recommend (based on the environment/needs you outlined) using PAM
> (pluggable authentication modules). There are a couple good ones for NT
> authentication: (NOTE: You'll need to compile Samba with the --with-pam
> option to use PAM for Samba authentication (pages 36 and 179)
> PAM_NTDOM http://us1.samba.org/samba/ftp/pam_ntdom/
> PAM_SMB http://us1.samba.org/samba/ftp/pam_smb/
> PAM will allow you to have multiple services on the same host share the
> same authentication mechanism, eliminating the need for password
> synchronization, per se. The only caveat is that the account must exist
> in the /etc/passwd file - and the password disabled (a '*' in the
> password field). This will not be necessary in near-future versions of
> Samba and its sister PAM modules, but is for now.
> I also recommend staying "up" on the latest release of Samba (currently
> 2.0.7) ( http://us1.samba.org/samba/ftp/samba-latest.tar.gz ) - Yes,
> Samba is still "under development", but it is very very usable, and
> quite usable in most all environments.
>
> If you still feel you need code for your solution, let me know, and
> I'll send it on. I'll be up front that it is not commented, and quite
> obfuscated. The NT programming was all done in Visual BASIC/C++ and the
> UNIX-side is all in Perl.
> If you're still having problems, feel free to e-mail me- I'm more than
> happy to help- If push comes to shove, I can give you a few hours of my
> time on-site.
>
>
> Enjoy!
> --
>
> Matthew Keller
> Lead Programmer/Analyst
> Distributed Computing/Telemedia
> Information Services Division
> State University of New York at Potsdam
>
> Website: http://mattwork.potsdam.edu/
> PGP: http://mattwork.potsdam.edu/crypto/
> Webcam: http://webcam.mattwork.potsdam.edu:85/
>
-------------- next part --------------
***************
*** 354,381 ****
*p = 0;
hostname = optarg;
{
- struct hostent *he = gethostbyname(hostname);
- if (he) {
- if(he->h_addr_list) {
-
- int x=0,y=0;
-
- while(he->h_addr_list[x]!=NULL) x++;
-
- memcpy(&hostaddress, he, sizeof(hostaddress));
-
- hostaddress.h_addr_list = (char **) malloc (sizeof (char *) * x);
-
- while (y<x)
- {
- hostaddress.h_addr_list[y] = (char *) malloc (hostaddress.h_length);
- memcpy(hostaddress.h_addr_list[y],he->h_addr_list[y], hostaddress.h_length);
- y++;
- }
}
- } else {
- memset(&hostaddress, 0, sizeof(hostaddress));
- }
}
break;
--- 354,365 ----
*p = 0;
hostname = optarg;
{
+ struct hostent *he = gethostbyname(hostname);
+ if (he) {
+ memcpy(&hostaddress, he, sizeof(hostaddress));
+ } else {
+ memset(&hostaddress, 0, sizeof(hostaddress));
}
}
break;
More information about the samba-ntdom
mailing list