FreeBSD to authenticate against Active Directory

2007-10-02 Thread Stephen Allen
Hello, Is there any up-to-date definitive resource which explains how to get FreeBSD (6.2) to authenticate against Active Directory (in my case Windows 2003 R2 which includes SFU). There are a few informative articles floating around, but most date back to 2004/2005 and most involve the use

/var/log/messages filling up with DHCPDISCOVER messages

2007-10-07 Thread Stephen Allen
/usr/local/etc/dhcpd.conf is configured with log-facility local7; and /etc/syslog.conf is also configured with local7.* /var/log/dhcpd.log However, /var/log/messages is filling up with DHCPDISCOVER / no free leases messages for those clients that are unknown to the DHCP server (eg.

Which java binary to use?

2007-10-07 Thread Stephen Allen
I installed the Diablo java packages (http://www.freebsdfoundation.org/downloads/java.shtml), but which java shows /usr/local/bin/java which is a link to javavm in the same directory. I wondered about changing the link to point to one of these: /usr/local/diablo-jre1.5.0/bin/java

Question about rc-scripts

2007-10-08 Thread Stephen Allen
Under normal circumstance, should the /etc/rc.subr functions handle the creation of the pid at service start? The basic vendor-provided script (which I've had to adapt somewhat to suit this installation) runs echo $! ${dbgw_pidfile} as the last line of the script. When you do a 'status'

Re: Question about rc-scripts

2007-10-08 Thread Stephen Allen
Hi Derek, Not all scripts create a pid file is the simple answer. I didn't see how the isc-dhcpd script or dovecot created a pid, so I assumed it was something that rc.subr took care of. Your script should create the pid file on start, remove it on stop, and simply cat that file on a

How to provide fail-over capability for servers?

2007-10-29 Thread Stephen Allen
I'm completely new to this so some of my ideas may sound ludicrous... please put me right where necessary! I will have 3 net-facing servers which must be available 24/7. I had planned to have an additional box located in a different building on the same site (in case of part power-outage)

Dangers of using a non-base shell

2007-10-30 Thread Stephen Allen
It's been drawn to my attention not to use bash from the ports collection, because if one of it's dependencies (gettext or libiconv) fails or is updated significantly, it could break, and prevent login. The suggested solution was to use a base shell (such as sh) and append 'bash -l' to .shrc

Re: ABI for i386 binaries under FreeBSD-amd64

2007-10-31 Thread Stephen Allen
Roland Smith wrote: Than they should run i386. You only _need_ (as opposed to nice to play with :-) amd64 if you run out of address space on a typical workload. What if you have more than 3Gb of RAM to play with... would you have to use amd64 then? Steve :)

Samba 3.0.26a (from Ports) won't compile if 'WITH_EXP_MODULES=true' is set

2007-11-12 Thread Stephen Allen
Hello, Using FreeBSD 6.2-RELEASE, I'm trying to configure FreeBSD/Samba/Winbind to talk to Active Directory, following these instructions: http://joseph.randomnetworks.com/archives/2005/11/08/freebsd-users-and-groups-with-samba-winbind-and-active-directory/ As per subject, using Samba

Problems mounting a DOMAIN share, rather than a COMPUTER share

2007-11-16 Thread Stephen Allen
FreeBSD 6.2 + Samba 3.0.26a Can Samba mount a DFS share, using \\DOMAIN\dfs, rather than \\COMPUTER\dfs? The following command successfully lists all the shares on a domain controller, the same as \\DOMAIN does on Windows. One of the shares returned is dfs which is the root of my dfs tree:

How to enable Linujx binary compatibility using sysinstall

2008-03-18 Thread Stephen Allen
Hello, After installing FreeBSD 7.0, I realised I'd forgotten to choose Linux binary compatibility during the install. I tried installing from ports, but it's gone and installed a load of other unwanted packages aswell now (perl/popt/rpm etc...). So, a few questions really... 1. Why does

Problem creating sendmail.cf file from .mc using /usr/bin/m4

2008-03-19 Thread Stephen Allen
Hello, When I run /usr/bin/m4 freebsd.mc, the output looks ok, except that none of the define() lines show up in the output - even when running m4 on an unaltered freebsd.mc. Can anyone help? Many thanks, Steve ___

Invalid credentials errors using pam_ldap on FreeBSD

2008-07-18 Thread Stephen Allen
Hello, I'm pretty sure I've done all the necessary steps to be able to ssh to my FreeBSD box using pam_ldap, but I'm getting Invalid credentials errors whenever I try (I can successfully perform an ldapsearch operation though). Here are snippets from my config: [/etc/nsswitch.conf]

Problem running 'top' when ldap is around

2008-07-22 Thread Stephen Allen
I've noticed that with files ldap in nsswitch.conf, if I try to run top and the ldap server is not available, it takes about a minute to start showing information, whereas normally it's instantaneous. The problem seems to be the mapping of uid numbers to usernames (the -u options prevents

SMB share not mounting at startup

2008-05-07 Thread Stephen Allen
I am trying to mount an SMB share at startup. I have configured (as root) .nsmbrc so I don't have to type a password. When I run mount -a, it mounts beautifully. However, when restarting the server, it will not mount automatically. According to rc.conf(5), smbfs is part of 'netfs_types' so

Re: SMB share not mounting at startup

2008-05-08 Thread Stephen Allen
I copied /root/.nsmbrc to /etc/nsmb.conf with security at 600, and it doesn't work. With security at 777 it still doesn't work. Any more suggestions? Many thanks, Steve :) Dominic Fandrey wrote: Stephen Allen wrote: I am trying to mount an SMB share at startup. I have configured (as root

Re: Questions from a Total samba Novice.

2008-05-09 Thread Stephen Allen
(forgot to send to list the first time) Hi Martin, You don't need samba if all you want to do is copy files from FreeBSD to a Windows system. The easiest way to do it is to mount an existing Windows share, on FreeBSD. This will give you access to the Windows share, but nothing is shared

Re: Questions from a Total samba Novice.

2008-05-09 Thread Stephen Allen
Hi Martin, I would have had to enabled nfs client if using mount_smbfs, correct? Nopes - stick to using the mount command. Depending on the filesystem you specify (with the -t option), it will call the relevant mount command itself (eg. mount_smbfs, mount_nfs). When I

Samba/Winbind/nsswitch problem

2008-05-22 Thread Stephen Allen
Hello, I've installed and configured samba with winbind, to allow Windows Active Directory users to login without me having to create a local account for them. Generally speaking, it works (I can login, wbinfo -u|-g returns the correct data). I can login as a Windows user through ssh, and