Problems with php5-pdo_pgsql, libpq etc. after upgrading postgresql

2011-10-23 Thread Jon Theil Nielsen
Hi list,

Last week, I ran portupgrade as usual (after reading UPDATING). At lot of
ports were upgraded, one of them the postgresql database.
In the first place, I had to change the user name to start and access the
database (I placed postgresql_class=postgres in /etc/rc.conf).
Secondly, I could not use davical (caldav calendar server) anymore. I
cannot connect to the database and when I try to access the web interface,
I get an error:
Fatal error: PDO connection error 'pgsql:dbname=davical user=davical_app':
could not find driver in /usr/local/share/awl/inc/AwlDBDialect.php on line
78.*
*I checked my php configuration through phpinfo and I could confirm that
there was no pdo driver for postgresql. There were only drivers for sqlite
and mysql.
When I try to rebuild databases/php5-pdo_pgsql with portupgrade -fRv
databases/php5-pdo_pgsql, I got this error:
...
checking for gawk... gawk
checking for PostgreSQL support for PDO... yes, shared
checking for pg_config... /usr/local/bin/pg_config
checking for openssl dependencies... no
checking for PQparameterStatus in -lpq... no
Unable to build the PDO PostgreSQL driver: libpq 7.4+ is required
===  Script configure failed unexpectedly.

My configuration:
uname -a:
FreeBSD servername 8.2-STABLE FreeBSD 8.2-STABLE #0: Sun Oct 16 04:26:18
CEST 2011 root@servername:/usr/obj/usr/src/sys/servername  i386
Some of the relevant ports:
postgresql-client-8.4.9
postgresql-server-8.4.9_2
php5-pdo-5.3.8
php5-pdo_mysql-5.3.8
php5-pdo_pgsql-5.3.8
php5-pdo_sqlite-5.3.8

I will appreciate any help, since I really need this calendar server.
-- 
*Jon Theil Nielsen*
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: MFP recommendations

2011-08-11 Thread Jon Theil Nielsen
2011/8/10 Jon Theil Nielsen jonth...@gmail.com

 Hi list,

 I want to buy another printer to use mainly with Windows. Even though I
 have no good feelings about those devises, that claims to be able to do
 everything I need. Even though, I need a better scanner with ADF and duplex
 printing (it need to be able to connect wirelessly to my Windows stations).
 So my question is if I can find such a thing, that I can connect to my
 FreeBSD server too. And if you can recommend a specific model.
 I have been looking at a lot of models, but I can't figure out if any of
 them would be able to work through FreeBSD, cups etc. Examples:
 HP Officejet Pro 8500A (CM755A)
 HP Photosmart Premium Fax e-All-in-One (CQ521B)
 Canon PIXMA MX885
 Epson...
 Brother...
 In the first place, I may have to connect it via USB or ehternet. If it
 could be connected by my wireless adapter (Linksys WUSB600N), it would be
 nice

 Best regards,
 Jon Theil Nielsen


Since my main goal is to be able to print over the network via my FreeBSD
station, I could put in another way:
Can I expect that printers known to be supported by HPLIP (
http://hplipopensource.com/hplip-web/supported_devices/index.html) actually
work in FreeBSD? And would one of the HP models by a safe choice?

Regards,
Jon Theil Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: MFP recommendations

2011-08-11 Thread Jon Theil Nielsen
2011/8/11 Michael cada...@tucu.net


 On Aug 11, 2011, at 2:51 AM, Jon Theil Nielsen wrote:

  2011/8/10 Jon Theil Nielsen jonth...@gmail.com
 
  Since my main goal is to be able to print over the network via my FreeBSD
  station, I could put in another way:
  Can I expect that printers known to be supported by HPLIP (
  http://hplipopensource.com/hplip-web/supported_devices/index.html)
 actually
  work in FreeBSD? And would one of the HP models by a safe choice?
 
  Regards,
  Jon Theil Nielsen

 Hi,

 If you buy something like an Lexmark X543, you'll get all the features you
 want and it connects directly to your LAN. It speaks IPP and LPR which will
 work great with FreeBSD. It also speaks fluent MS Windows, Bonjour,
 Appletalk, etc. It's a little more expensive and larger than the HP you're
 looking at but you'll end up saving money over time using toner rather than
 ink.

 Michael

 Hi Michael,

Thank you very much for your suggestion. It seems like a very nice printer.
And I actually like the idea of a laser compared to inkjet. But for now,
both the physical size and the price are too much. So I have too keep
looking for another FreeBSD compatible solution (though it mostly - and
certainly for scanning purposes - will be used with Windows).

Regards,
Jon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mrtg-2.16.2_6,1 does not run with perl-5.12.1_1

2010-08-02 Thread Jon Theil Nielsen
2010/8/2 Jon Theil Nielsen jonth...@gmail.com

 Hi list

 After upgrading perl according to UPDATING, I cannot use mrtg anymore. The
 error message is:

 Bareword P_DETACH not allowed while strict subs in use at
 /usr/local/lib/perl5/site_perl/5.12.1/MRTG_lib.pm line 1172.
 Compilation failed in require at /usr/local/bin/mrtg line 89.
 BEGIN failed--compilation aborted at /usr/local/bin/mrtg line 89.

 I filled a PR on this but haven't seen any answers/solutions:
 http://www.freebsd.org/cgi/query-pr.cgi?pr=148914

 Am I the only one having this problem?

 If the port needs upgrading (as suggested in my PR), but this does not
 happen, how can I fix it myself?

 Cheers,
 Jon
 --
 Jon Theil Nielsen


Hi again,

Hope I'm not beeing a pain...

But I wolud really like to hearing from *anyone* who has upgradeded perl and
has mrtg installed. Even if is working whtout problems. So, at least, I know
that I have to look for a specific problem on my own server.
I forgot to mention that I'm running 8.1 Stable.

Cheers,
Jon

-- 
Jon Theil Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: mrtg-2.16.2_6,1 does not run with perl-5.12.1_1

2010-08-02 Thread Jon Theil Nielsen
2010/8/2 Morgan Wesström freebsd-questi...@pp.dyndns.biz

 On 2010-08-02 10:49, Jon Theil Nielsen wrote:
  2010/8/2 Jon Theil Nielsen jonth...@gmail.com
 
  Hi list
 
  After upgrading perl according to UPDATING, I cannot use mrtg anymore.
 The
  error message is:
 
  Bareword P_DETACH not allowed while strict subs in use at
  /usr/local/lib/perl5/site_perl/5.12.1/MRTG_lib.pm line 1172.
  Compilation failed in require at /usr/local/bin/mrtg line 89.
  BEGIN failed--compilation aborted at /usr/local/bin/mrtg line 89.
 
  I filled a PR on this but haven't seen any answers/solutions:
  http://www.freebsd.org/cgi/query-pr.cgi?pr=148914
 
  Am I the only one having this problem?
 
  If the port needs upgrading (as suggested in my PR), but this does not
  happen, how can I fix it myself?
 
  Cheers,
  Jon
  --
  Jon Theil Nielsen
 
 
  Hi again,
 
  Hope I'm not beeing a pain...
 
  But I wolud really like to hearing from *anyone* who has upgradeded perl
 and
  has mrtg installed. Even if is working whtout problems. So, at least, I
 know
  that I have to look for a specific problem on my own server.
  I forgot to mention that I'm running 8.1 Stable.
 
  Cheers,
  Jon
 

 Hi Jon. You're not alone. :-)

 I ran into the same issue and it has also been reported on Gentoo (which
 I use too). The solution is mrtg 2.16.4 and until the ports tree is
 updated there's a patch here you can apply manually which worked for me:
 http://www.freebsd.org/cgi/query-pr.cgi?pr=ports/149016

 Regards
 Morgan


Hi  Morgan,

Thanks a lot! I'll try it out as soon as possible. If it worked for you, I
guess it will work for me too.
Strange, though, that so few people report this problem. Maybe they just
live happily with the old perl version. :-)

Regards,
Jon
-- 
Jon Theil Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


mrtg-2.16.2_6,1 does not run with perl-5.12.1_1

2010-08-01 Thread Jon Theil Nielsen
Hi list

After upgrading perl according to UPDATING, I cannot use mrtg anymore. The
error message is:

Bareword P_DETACH not allowed while strict subs in use at
/usr/local/lib/perl5/site_perl/5.12.1/MRTG_lib.pm line 1172.
Compilation failed in require at /usr/local/bin/mrtg line 89.
BEGIN failed--compilation aborted at /usr/local/bin/mrtg line 89.

I filled a PR on this but haven't seen any answers/solutions:
http://www.freebsd.org/cgi/query-pr.cgi?pr=148914

Am I the only one having this problem?

If the port needs upgrading (as suggested in my PR), but this does not
happen, how can I fix it myself?

Cheers,
Jon
-- 
Jon Theil Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: More than 8 partitions

2010-05-12 Thread Jon Theil Nielsen
2010/5/2 Christopher Key cj...@cam.ac.uk

 Jon Theil Nielsen wrote:
  2010/5/1 Christopher Key cj...@cam.ac.uk
 
 
  Jon Theil Nielsen wrote:
 
  Hi
 
  I'm running 8.0-Release on an external usb hard drive. and have
 dual-boot
  with FreeBSD on da0s2 and Windows XP on da0s1. I made a setup via
 
  Sysinstall
 
  with 7 partitions:
 
  /dev/da0s2a on / (ufs, local)
  /dev/da0s2b (swap)
  /dev/da0s2d on /var (ufs, local, soft-updates)
  /dev/da0s2e on /tmp (ufs, local, soft-updates)
  /dev/da0s2f on /usr (ufs, local, soft-updates)
  /dev/da0s2h on /var/log (ufs, local, soft-updates)
  /dev/da0s2g on /home (ufs, local, soft-updates)
 
  I have about 660 GB left unused on da0s2 that I would like to use for
  backups. But I can't figure out how to create one more partition.
  If i create a file for bsdlabel like
 
  #   sizeoffset  fstype
  i:  *   0   4.2BSD
 
  I get the following error message: line 2: partition name out of range
 
  a-h:
 
  i
  I have also tried with gpart:
 
  gpart add -s 500G -t freebsd -f x da0s2
 
  I get something like gpart: index '9': No space left on device
 
  I thought that 8.0 should support more than 8 partitions. Maybe it
 does,
 
  but
 
  then I don't know how to do.
  Any ideas?
 
 
 
  I believe that FreeBSD does support more than 8 partitions on a disk
  (apparently up to 20 using gpart), but that you need sufficient entries
  for these partitions to be created in the disklabel, viz.
 
  gpart create -n 20 ...
 
  Some testing seems to indicate that you can manually override this by
  changing by byte 0x28a of the disk from 0x08 to 0x14, and that bsdlabel
  / gpart will then allow you to create further partitions on the disk.
 
 
 
  Kind regards,
 
  Christopher Key
 
 
 
  Thanks Christopher
 
  I am not sure if I understand all of if. And I wouldn't like to wipe the
  drive to test if is possible to mass produce partitions like that.
 Could
  be useful in another situation, though.
 
  My knowlodge of GEOM and its utilities is very limited. Since I have
  succeded in creating the two slices with fdisk and subsequently populate
  them with bsdlabel, my only problem is how to create the last partition
 from
  the unpartioned space on da0s2. As mentioned in the beginning of this
 post,
  I have tried with both bsdlabel (from a file) and by issuing the gpart
 add
  command. With no luck. Would it be any help to give more specific about
 the
  drive/slice? The output of df -h | grep dev/da0 is:
 
  /dev/da0s2a   3.9G   630M2.9G17%/
  /dev/da0s2g97G   160K 89G 0%/home
  /dev/da0s2e   3.9G   129M3.4G 4%/tmp
  /dev/da0s2f48G   6.6G 38G15%/usr
  /dev/da0s2d   9.7G   151M8.8G 2%/var
  /dev/da0s2h   3.9G   1.5M3.6G 0%/var/log
 
  and of gpart show da0:
 
  = 0  1759551255  da0s2  BSD  (839G)
 0 1048576 - free -  (512M)
   1048576 8318064  2  freebsd-swap  (4.0G)
   9366640 7303168 - free -  (3.5G)
  16669808 8388608  1  freebsd-ufs  (4.0G)
  2505841620971520  4  freebsd-ufs  (10G)
  46029936 8388608  5  freebsd-ufs  (4.0G)
  54418544   104857600  6  freebsd-ufs  (50G)
 159276144   209715200  7  freebsd-ufs  (100G)
 936891344 8388608  8  freebsd-ufs  (4.0G)
 377379952  1382171303 - free -  (659G)
 
  and, finaly, of bsdlabel da0s2:
 
  # /dev/da0s2:
  8 partitions:
  #size offsetfstype   [fsize bsize bps/cpg]
  a:8388608   166698084.2BSD0 0 0
  b:83180641048576  swap
  c: 1759551255  0unused0 0 # raw part,
  don't edit
  d:   20971520   250584164.2BSD0 0 0
  e:8388608   460299364.2BSD0 0 0
  f:  104857600   544185444.2BSD0 0 0
  g:  209715200  1592761444.2BSD0 0 0
  h:8388608  3689913444.2BSD0 0 0
 
  In my desparate effort to understand these informations/data, i have put
  them into a spreadsheet and rearranged them - including some of my own
  calculations and assumptions.
 
  bsdlabel output - sorted by sector offset:
 
  #size   offset  (GB*)
  c   1.759.551.2550839
  b   8.318.0641.048.576  4
  a   8.388.608   16.669.808  4
  d  20.971.520   25.058.416 10
  e   8.388.608   46.029.936  4
  f 104.857.600   54.418.544 50
  g 209.715.200  159.276.144100
  h   8.388.608  368.991.344  4
 
  gpart show output - sorted by sector offset:
 
  (#) (size)(offset)   (GB)  (offset*)   (GiB*)(i)
  1.048.57600,5  01   free
   b  8.318.0641.048.576  4  1.048.5764  2
  7.303.1689.366.6403,5  9.366.6403   free
   a  8.388.608   16.669.808  4

Re: More than 8 partitions

2010-05-12 Thread Jon Theil Nielsen
2010/5/12 A. Wright and...@qemg.org



  On 2010/5/2, Christopher Key cj...@cam.ac.uk wrote:

  frhed.  Next write the data back to the disk:

 dd if=/tmp/hdr of=/dev/da0s2



 On 2010/5/12, Jon Theil Nielsen wrote:

  obviously this is not the case. So I'll dd the existing partitions to
 another drive, use gpart to create enough partitions and then dd the old
 content back. I could easily use a standard disk layout, but the other
 approach will add some to my FreeBSD knowledge..



 Just pointing out a rabbit hole here . . .

 You should be aware, too that if you want to _change_ the size
 (or any of several other params) of the filesystem, you don't
 really want dd, you want to dump(8) the filesystem and then use
 restore(8) -- as the man page says, this is the only reliable
 way to change various filesystem params.

 Using dd will be fine only if the sizes and all other params are
 to be identical (which is the case in Chris' comment, but not in
 the general case).

 Andrew.

 Thanks again

That was a very good point. I think I'll wait until tomorrow. But I'll get
back here if I run into troubles. :-I

Regards,
Jon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: More than 8 partitions

2010-05-01 Thread Jon Theil Nielsen
2010/5/1 Christopher Key cj...@cam.ac.uk

 Jon Theil Nielsen wrote:
  Hi
 
  I'm running 8.0-Release on an external usb hard drive. and have dual-boot
  with FreeBSD on da0s2 and Windows XP on da0s1. I made a setup via
 Sysinstall
  with 7 partitions:
 
  /dev/da0s2a on / (ufs, local)
  /dev/da0s2b (swap)
  /dev/da0s2d on /var (ufs, local, soft-updates)
  /dev/da0s2e on /tmp (ufs, local, soft-updates)
  /dev/da0s2f on /usr (ufs, local, soft-updates)
  /dev/da0s2h on /var/log (ufs, local, soft-updates)
  /dev/da0s2g on /home (ufs, local, soft-updates)
 
  I have about 660 GB left unused on da0s2 that I would like to use for
  backups. But I can't figure out how to create one more partition.
  If i create a file for bsdlabel like
 
  #   sizeoffset  fstype
  i:  *   0   4.2BSD
 
  I get the following error message: line 2: partition name out of range
 a-h:
  i
  I have also tried with gpart:
 
  gpart add -s 500G -t freebsd -f x da0s2
 
  I get something like gpart: index '9': No space left on device
 
  I thought that 8.0 should support more than 8 partitions. Maybe it does,
 but
  then I don't know how to do.
  Any ideas?
 
 
 I believe that FreeBSD does support more than 8 partitions on a disk
 (apparently up to 20 using gpart), but that you need sufficient entries
 for these partitions to be created in the disklabel, viz.

 gpart create -n 20 ...

 Some testing seems to indicate that you can manually override this by
 changing by byte 0x28a of the disk from 0x08 to 0x14, and that bsdlabel
 / gpart will then allow you to create further partitions on the disk.



 Kind regards,

 Christopher Key


Thanks Christopher

I am not sure if I understand all of if. And I wouldn't like to wipe the
drive to test if is possible to mass produce partitions like that. Could
be useful in another situation, though.

My knowlodge of GEOM and its utilities is very limited. Since I have
succeded in creating the two slices with fdisk and subsequently populate
them with bsdlabel, my only problem is how to create the last partition from
the unpartioned space on da0s2. As mentioned in the beginning of this post,
I have tried with both bsdlabel (from a file) and by issuing the gpart add
command. With no luck. Would it be any help to give more specific about the
drive/slice? The output of df -h | grep dev/da0 is:

/dev/da0s2a   3.9G   630M2.9G17%/
/dev/da0s2g97G   160K 89G 0%/home
/dev/da0s2e   3.9G   129M3.4G 4%/tmp
/dev/da0s2f48G   6.6G 38G15%/usr
/dev/da0s2d   9.7G   151M8.8G 2%/var
/dev/da0s2h   3.9G   1.5M3.6G 0%/var/log

and of gpart show da0:

= 0  1759551255  da0s2  BSD  (839G)
   0 1048576 - free -  (512M)
 1048576 8318064  2  freebsd-swap  (4.0G)
 9366640 7303168 - free -  (3.5G)
16669808 8388608  1  freebsd-ufs  (4.0G)
2505841620971520  4  freebsd-ufs  (10G)
46029936 8388608  5  freebsd-ufs  (4.0G)
54418544   104857600  6  freebsd-ufs  (50G)
   159276144   209715200  7  freebsd-ufs  (100G)
   936891344 8388608  8  freebsd-ufs  (4.0G)
   377379952  1382171303 - free -  (659G)

and, finaly, of bsdlabel da0s2:

# /dev/da0s2:
8 partitions:
#size offsetfstype   [fsize bsize bps/cpg]
a:8388608   166698084.2BSD0 0 0
b:83180641048576  swap
c: 1759551255  0unused0 0 # raw part,
don't edit
d:   20971520   250584164.2BSD0 0 0
e:8388608   460299364.2BSD0 0 0
f:  104857600   544185444.2BSD0 0 0
g:  209715200  1592761444.2BSD0 0 0
h:8388608  3689913444.2BSD0 0 0

In my desparate effort to understand these informations/data, i have put
them into a spreadsheet and rearranged them - including some of my own
calculations and assumptions.

bsdlabel output - sorted by sector offset:

#size   offset  (GB*)
c   1.759.551.2550839
b   8.318.0641.048.576  4
a   8.388.608   16.669.808  4
d  20.971.520   25.058.416 10
e   8.388.608   46.029.936  4
f 104.857.600   54.418.544 50
g 209.715.200  159.276.144100
h   8.388.608  368.991.344  4

gpart show output - sorted by sector offset:

(#) (size)(offset)   (GB)  (offset*)   (GiB*)(i)
1.048.57600,5  01   free
 b  8.318.0641.048.576  4  1.048.5764  2
7.303.1689.366.6403,5  9.366.6403   free
 a  8.388.608   16.669.808  4 16.669.8084  1
 d 20.971.520   25.058.416 10 25.058.416   10  4
 e  8.388.608   46.029.936  4 46.029.9364  5
 f104.857.600   54.418.544 50 46.029.936   50  6
 g209.715.200

More than 8 partitions

2010-04-30 Thread Jon Theil Nielsen
Hi

I'm running 8.0-Release on an external usb hard drive. and have dual-boot
with FreeBSD on da0s2 and Windows XP on da0s1. I made a setup via Sysinstall
with 7 partitions:

/dev/da0s2a on / (ufs, local)
/dev/da0s2b (swap)
/dev/da0s2d on /var (ufs, local, soft-updates)
/dev/da0s2e on /tmp (ufs, local, soft-updates)
/dev/da0s2f on /usr (ufs, local, soft-updates)
/dev/da0s2h on /var/log (ufs, local, soft-updates)
/dev/da0s2g on /home (ufs, local, soft-updates)

I have about 660 GB left unused on da0s2 that I would like to use for
backups. But I can't figure out how to create one more partition.
If i create a file for bsdlabel like

#   sizeoffset  fstype
i:  *   0   4.2BSD

I get the following error message: line 2: partition name out of range a-h:
i
I have also tried with gpart:

gpart add -s 500G -t freebsd -f x da0s2

I get something like gpart: index '9': No space left on device

I thought that 8.0 should support more than 8 partitions. Maybe it does, but
then I don't know how to do.
Any ideas?

Regards,
Jon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Fwd: More than 8 partitions

2010-04-30 Thread Jon Theil Nielsen
-- Forwarded message --
From: Jon Theil Nielsen jonth...@gmail.com
Date: 2010/4/30
Subject: Re: More than 8 partitions
To: Alberto Mijares amijar...@gmail.com


2010/4/30 Alberto Mijares amijar...@gmail.com

On Fri, Apr 30, 2010 at 1:14 PM, Jon Theil Nielsen jonth...@gmail.com
 wrote:
  Hi
 
  I'm running 8.0-Release on an external usb hard drive. and have dual-boot
  with FreeBSD on da0s2 and Windows XP on da0s1. I made a setup via
 Sysinstall
  with 7 partitions:
 
  /dev/da0s2a on / (ufs, local)
  /dev/da0s2b (swap)
  /dev/da0s2d on /var (ufs, local, soft-updates)
  /dev/da0s2e on /tmp (ufs, local, soft-updates)
  /dev/da0s2f on /usr (ufs, local, soft-updates)
  /dev/da0s2h on /var/log (ufs, local, soft-updates)
  /dev/da0s2g on /home (ufs, local, soft-updates)
 
  I have about 660 GB left unused on da0s2 that I would like to use for
  backups. But I can't figure out how to create one more partition.



 You should create a new slice (da0s3) and then create new partitions
 on it or use the whole slice (ad0s3c).

 Regards


 Alberto Mijares


Thanks Alberto

So it is *not* possible to have more than 8 partitions?  Just a matter of
interest, since I'm experimenting here. But nice to know.

The next problem is that i made fdisk create the two slices covering all the
space of the disk. Can I somehow - using FreeBSD tools - shrink the size of
da0s2 without data loss?

Regards,
Jon

-  reposting this to the list...
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Fwd: More than 8 partitions

2010-04-30 Thread Jon Theil Nielsen
2010/5/1 Da Rock freebsd-questi...@herveybayaustralia.com.au

On Fri, 2010-04-30 at 19:44 +0200, Jon Theil Nielsen wrote:
  Hi
 
  I'm running 8.0-Release on an external usb hard drive. and have dual-boot
  with FreeBSD on da0s2 and Windows XP on da0s1. I made a setup via
 Sysinstall
  with 7 partitions:
 
  /dev/da0s2a on / (ufs, local)
  /dev/da0s2b (swap)
  /dev/da0s2d on /var (ufs, local, soft-updates)
  /dev/da0s2e on /tmp (ufs, local, soft-updates)
  /dev/da0s2f on /usr (ufs, local, soft-updates)
  /dev/da0s2h on /var/log (ufs, local, soft-updates)
  /dev/da0s2g on /home (ufs, local, soft-updates)
 
  I have about 660 GB left unused on da0s2 that I would like to use for
  backups. But I can't figure out how to create one more partition.
  If i create a file for bsdlabel like
 
  #   sizeoffset  fstype
  i:  *   0   4.2BSD
 
  I get the following error message: line 2: partition name out of range
 a-h:
  i
  I have also tried with gpart:
 
  gpart add -s 500G -t freebsd -f x da0s2
 
  I get something like gpart: index '9': No space left on device
 
  I thought that 8.0 should support more than 8 partitions. Maybe it does,
 but
  then I don't know how to do.
  Any ideas?

 Use vinum - thats what I needed to do. Mind I had around 15 partitions
 to work out so it is effective...

 Maybe I should consider that too. But this installation is quite
experimental, and I just thought that it would be a simple task to make a
few extra partitions, since that was what I read about when 8.0 was
released. But I haven't found any documentation on the issue.
I guess I either  have to use some non-FreeBSD tool to change the size of my
slices or backup the installation to another drive, rerun fdisk etc., and
copy the system back.

'Regards,
Jon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: More than 8 partitions

2010-04-30 Thread Jon Theil Nielsen
2010/5/1 C. P. Ghost cpgh...@cordula.ws

 On Sat, May 1, 2010 at 1:58 AM, Jon Theil Nielsen jonth...@gmail.com
 wrote:
  So it is *not* possible to have more than 8 partitions?  Just a matter of
  interest, since I'm experimenting here. But nice to know.

 Unlike OpenBSD's disklabel(8) which supports up to 15 partitions,
 bsdlabel(8)
 supports only 8 partitions (including the whole disk):

 http://www.openbsd.org/cgi-bin/man.cgi?query=disklabelsektion=8


 http://www.freebsd.org/cgi/man.cgi?query=bsdlabelapropos=0sektion=0manpath=FreeBSD+8.0-RELEASEformat=html

 -cpghost.

 --
 Cordula's Web. http://www.cordula.ws/


I am very far from being an expert on these issues. And this link is
certainly not  documentation:
http://ivoras.sharanet.org/freebsd/freebsd8.html
But if I look into the source code of bsdlabel
(/usr/src/sbin/bsdlabel/bsdlabel.c), I can see this:
#define MAXPARTITIONS   26
which at least tells me that is has been the *intention* that it should be
possible.

Regards,
Jon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: More than 8 partitions

2010-04-30 Thread Jon Theil Nielsen
2010/5/1 Polytropon free...@edvax.de

 On Sat, 1 May 2010 02:53:13 +0200, Jon Theil Nielsen jonth...@gmail.com
 wrote:
  But if I look into the source code of bsdlabel
  (/usr/src/sbin/bsdlabel/bsdlabel.c), I can see this:
  #define MAXPARTITIONS   26
  which at least tells me that is has been the *intention* that it should
 be
  possible.

 Obviously, this refers to the possible letters a, b, c, ..., z
 as partition identifiers instead of numerical ones (e. g. ad0p7).



 --
 Polytropon
 Magdeburg, Germany
 Happy FreeBSD user since 4.0
 Andra moi ennepe, Mousa, ...


Sure. It could be so. All I know is that the bdslabel error message tells me
that I can't add a label outside the range a-h. And I must admit that I
can't find any official documentation saying that I should be able to do so.
I guess it has been the intention, but that it hasn't been implemented
(yet).

Regards,
Jon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org


Re: RAID 5 - serious problem

2008-10-15 Thread Jon Theil Nielsen
2008/10/15 Jeremy Chadwick [EMAIL PROTECTED]

 On Wed, Oct 15, 2008 at 02:32:25PM +0200, Jon Theil Nielsen wrote:
  Dear list,
 
  Something happened that I don't think should be possible. I lost all
 three
  disks in my RAID 5 array simultaneously after approx. two years without
 any
  problem. And I fear I will never see my data again. But I really hope
 some
  of you clever persons can give me some hints. My system is:
  FreeBSD 7.0-Release
  Intel D975XBX2 motherboard (Intel Matrix Storage Technology)

 Are you using the Matrix Storage Technology?  If so, immediately stop.
 FreeBSD's support for this is very, very bad, and will nearly guarantee
 data loss.  There are many of us who have tried it, and it's known to
 be buggy on FreeBSD.

 http://wiki.freebsd.org/JeremyChadwick/ATA_issues_and_troubleshooting

 I recommend you stop using this feature and start using ZFS or gvinum
 for what you need.

  3 WD Raptor 74 GB in a RAID 5 array
  1 WD Raptor 150 GB as a standalone disk
  / and /var mounted on the standalone,, /usr on the RAID 5
  I believe what happened was that one of the disks didn't respond for such
 a
  long time, that is was marked bad. And afterwards the same thing
 happened
  for the other disks. When I try to boot the system, all three disks are
  marked Offline.
  The BIOS utility for the host controller has no option to force the disks
  back online.
  I have another machine with a S5000XVN board and Intel Embedded Server
 RAID
  Technology II. The BIOS configuration utility on this board has the
 option
  to force offline drives back online.

 Any embedded RAID is usually BIOS RAID managed by either a software
 RAID IC (e.g. an IC on the motherboard that handles LBA/CHS addressing
 for creating a pseudo-array, but the OS still does all of the management
 and does not off-load anything).

  I am very desperate not to lose my data, so I don't know if I dare moving
  the drives to the other machine and try to make them online again. Do you
  think I should try?

 No, but you might not have any choice.  It honestly sounds like the
 metadata on your disks is in a bad state.

 I would recommend you try booting Linux, since their support for
 MatrixRAID is significantly better/more advanced.  Ideally, you should
 be able to bring the RAID members back online using their tools, then
 reboot into FreeBSD and cross your fingers that your data becomes
 accessible.  Once accessible, offload it somewhere immediately, and
 follow my above recommendations.

  In general, are there any procedures I can try to recover my RAID array?
 Or
  is the offline status definitive ? and all data definitely lost? I guess
  some specialized companies have the expertise to recover lost data from a
  broken RAID array, but I don't know. And I don't know the price of such a
  service.
  I would really, really appreciate any kind of help.
  I have backups of most user data, but not of the system configuration
 (and
  maybe even not the databases).  This is of course pretty stupid. In the
  future, I will not rely on RAID 5 as a foolproof solution?

 RAID 5 is a fine solution, but you have learned a very valuable lesson,
 one which I will enclose in asterisks to make it crystal clear: ***RAID
 DOES NOT REPLACE BACKUPS***.  Repeat this mantra over and over until you
 accept it.  :-)

 --
 | Jeremy Chadwickjdc at parodius.com |
 | Parodius Networking   http://www.parodius.com/ |
 | UNIX Systems Administrator  Mountain View, CA, USA |
 | Making life hard for others since 1977.  PGP: 4BD6C0CB |

 Hi Jeremy,

Thanks for your advice. As I understand you, the best bet is to boot from
Linux and try to repair. And that trying with my other controller might be
the second best. Would it be an idea to try to run som sort of Linux live
cd? I have no machines with Linux installed.

Regards, Jon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


RAID 5 - serious problem

2008-10-15 Thread Jon Theil Nielsen
Dear list,

Something happened that I don't think should be possible. I lost all three
disks in my RAID 5 array simultaneously after approx. two years without any
problem. And I fear I will never see my data again. But I really hope some
of you clever persons can give me some hints. My system is:
FreeBSD 7.0-Release
Intel D975XBX2 motherboard (Intel Matrix Storage Technology)
3 WD Raptor 74 GB in a RAID 5 array
1 WD Raptor 150 GB as a standalone disk
/ and /var mounted on the standalone,, /usr on the RAID 5
I believe what happened was that one of the disks didn't respond for such a
long time, that is was marked bad. And afterwards the same thing happened
for the other disks. When I try to boot the system, all three disks are
marked Offline.
The BIOS utility for the host controller has no option to force the disks
back online.
I have another machine with a S5000XVN board and Intel Embedded Server RAID
Technology II. The BIOS configuration utility on this board has the option
to force offline drives back online.
I am very desperate not to lose my data, so I don't know if I dare moving
the drives to the other machine and try to make them online again. Do you
think I should try?
In general, are there any procedures I can try to recover my RAID array? Or
is the offline status definitive – and all data definitely lost? I guess
some specialized companies have the expertise to recover lost data from a
broken RAID array, but I don't know. And I don't know the price of such a
service.
I would really, really appreciate any kind of help.
I have backups of most user data, but not of the system configuration (and
maybe even not the databases).  This is of course pretty stupid. In the
future, I will not rely on RAID 5 as a foolproof solution…

Regards,
Jon
-- 
*Jon Theil Nielsen*
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: RAID 5 - serious problem

2008-10-15 Thread Jon Theil Nielsen
2008/10/15 Nejc Skoberne [EMAIL PROTECTED]

 Hello,

  the drives to the other machine and try to make them online again. Do you
  think I should try?

 If I were you, I would first buy/get a XXX GB SATA drive, create a
 filesystem there
 and copy all three disks block-by-block as three separate files (which will
 be
 the size of the disks). This way you'll still have the backup of your
 screwed up
 drives somewhere in case something goes even more wrong.

 However, I don't think your data is *physically* lost. I am almost sure
 that it
 is still on that drives, only the metadata could be fscked up. Now how to
 get the
 data back is another thing. In worst case scenario you could analyze the
 specification of the metadata format for you controller and then write a C
 program
 which would somehow put the bits together again using syscalls.

 Bye,
 Nejc

Hi again,

There are a lot of interesting statements and arguments in this thread. I am
impressed. But you have to understand that I am not a very advanced user of
FreeBSD and especially Linux. So I have to try to keep it simple. Thanks to
the low dollar course and the technological development, I think it is
reasonable for me to buy an extra disk just to try to fix my problems.
Actually, a 300 GB Raptor will do. And then I can install some Linux flavour
(which one should I prefer) to copy the contents of my sick disks
bit-by-bit. And then I can somehow try to bring the disks back online again.
Could you please spell it out for me, which tools I should use for that? My
board has both the Intel controller and a Marvell one. Can I just keep the
disks on the Intel one and disregard the offline status (if I understand you
right, I might lose all metadata if I try to change anything)?
AFAIK, the discussion of hardware vs. software RAID has been going on for a
very long time. And it really seems to be complicated. I recognise the
argument of having to stick with the same hardware. At the same time, it
seems at little pessimistic that a lot of people will end up with lots of
useless disks because the vendors decide to cut backward compatability. I
don't know.

Best regards,
Jon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: vpn + samba

2008-04-24 Thread Jon Theil Nielsen
Hi,

I use FreeBSD 7.0-Release and mpd4. The setup is rather uncomplicated. The
only problem is that I have had to create a mpd.secret file to authenticate
users instead of using the UNIX password or alternatively the Samba
password. I'm not quite sure, but it migth be solved by  also setting up a
Radius server.
My setup works for both Windows and Mac clients.

Regards,
Jon

2008/4/21 alexus [EMAIL PROTECTED]:

 no problem (yet) just trying to get a word from someone who has an
 experience in both to share their knowledge which one is better and
 why.

 so far i see that mpd has more recent release vs poptop

 On Sun, Apr 20, 2008 at 11:16 AM, Wojciech Puchar
 [EMAIL PROTECTED] wrote:
 
   hi
  
   i need to get vpn + samba working by vpn i mean a remote user being on
   the road can connect to box and use samba file sharing, most of our
   users use vista, some xp
  
  
   so do it. what a problem?
 



 --
 http://alexus.org/
 ___
 freebsd-questions@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/freebsd-questions
 To unsubscribe, send any mail to 
 [EMAIL PROTECTED]


-- 
Jon Theil Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


A general purpose LDAP solution?

2008-03-24 Thread Jon Theil Nielsen
I asked this on freebsd-net@ but got no replies. So now I ask the same
question here.
 Hi list!
 
   I have speculated a lot about implementation of (Open)LDAP on my
   sever. By I haven't yet found the right (and logical) way to do it.
   I'm running FreeBSD 7.0-Release with some different server applications
   - Samba PDC
   - Virtual mail server (Postfix, MySQL, Courier-IMAP)
   - VPN (currently with mpd4)
   - Apache-2.2.8 web server (with PHP and MySQL)
   I would like to implement LDAP for:
   - authentication of UNIX/login users
   - authentication of Samba users
   - authentication/authorization of virtual mail users
   For the first part, I got useful information from a previsous thread
   
  (http://unix.derkeiler.com/Mailing-Lists/FreeBSD/questions/2008-02/msg01047.html)
   and for the second part, i guess there is sufficient howtos to make it
   work.
   My biggest question right now is if is possible to combine all three
   things in one data structure. And which in which order I should make
   the different implimentions.
   Excuse my total lack of understanding, but is it possible to have a
   structure with a superior unit such as OU=some organization which
   could contain several virtual domains and the actual doamin for my
   PDC?
 
   --
  Jon Theil Nielsen

Oh, i forgot one more thing: I would also like to be able to
 authenticate VPN users the same way.
 --
Jon Theil Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mpd pptp server?

2008-03-23 Thread Jon Theil Nielsen
2008/3/23, Alex de Kruijff [EMAIL PROTECTED]:

 On Wed, Mar 19, 2008 at 12:43:58AM +0100, Jon Theil Nielsen wrote:
  I have tried some different ways to make a working VPN server on FreeBSD
 7.0.
  The main goal is to make it possible for Windows clients to access their
  Samba home shares. I'm not sure if mpd is the best solution, but I will
 give
  it a try.
  I have installed /usr/ports/mpd4 and have the following configuration:

 I run openvpn on FreeBSD and Windows XP.

 --
 Alex

I have now succeeded in establishing connections from Windows to a VPN
server based on mpd4. But it has some severe limitations: I have to define
every single connection in the conf file (not a major problem). And I don't
see any option to authenticate against neither UNIX or Samba passwords. Is
that different through openvpn? Could you give some brief hints on the
configuration or maybe a reference to a useful howto?

Regards,
Jon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mpd pptp server?

2008-03-20 Thread Jon Theil Nielsen
2008/3/20, Alexander Motin [EMAIL PROTECTED]:

 On Wed, 19 Mar 2008 00:43:58 +0100 Jon Theil Nielsen
 [EMAIL PROTECTED] wrote:

  Do I need to have a customized kernel to make it work? Or are there any
  obvious errors in the above configuration?


 Mpd4 should work without special system tuning. The best way to find the
 problem is to read it's logs. Mpd writes detailed logs using syslog (you
 should configure syslog.conf for it alike to ppp) and to the stdout if
 running in foreground.


I finally got it working with mpd4 (can only check it from my own private
network right now). Files are as follow
/usr/local/etc/mpd4/mpd.conf
startup:

default:
load pptp1

pptp1:
new -i ng0 pptp1 pptp1
set iface disable on-demand
set iface enable proxy-arp
set iface idle 0
set iface enable tcpmssfix
set bundle enable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link keep-alive 10 60
set ipcp yes vjcomp
set ipcp ranges 192.168.1.4/32 192.168.1.151/32
set ipcp dns 195.184.96.2 213.173.225.86
set ipcp nbns 192.168.1.4
set bundle enable compression
set ccp yes mppc
set ccp yes mpp-e40
set ccp yes mpp-e128
set ccp yes mpp-stateless

/usr/local/etc/mpd.links
pptp1:
set link type pptp
set pptp enable incoming
set pptp disable originate

Hope I can access my (Samba) homedrive from the outside.
Line compression doesn't seem to work, but that has something to do with
some proprietary MS stuff or what?
There is now way I can authenticate via my Samba or system passowrds?


Thanks for the advices so far...!

Regards,
Jon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: mpd pptp server?

2008-03-20 Thread Jon Theil Nielsen
Oops, there was a typo. The path is of course /usr/local/etc/mpd4/

/usr/local/etc/mpd.links
 pptp1:
 set link type pptp
 set pptp enable incoming
 set pptp disable originate

 Regards,
 Jon

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


pptpd server on a Samba PDC

2008-03-18 Thread Jon Theil Nielsen
My goal is to make our PDC (FreeBSD 7.0 - Samba 3.0.28) available through
VPN from Windows clients so clients can authenticate via Winbind, join the
domain and access there home shares.
I have tried to follow the instructions by Andrew Bartlett (
http://samba.org/ftp/unpacked/lorikeet/pppd/final-report.pdf) - without
success.

My main configuration file /usr/local/etc/httpd.conf looks like
option /etc/ppp/options.pptp
localip 192.168.1.4
remoteip 192.168.1.150-155
pidfile /var/run/pptpd.pid
# TAG: bcrelay if
bcrelay eth0

And the /etc/ppp/options.pptp:
lock
noauth
nobsdcomp
lcp-echo-failure 10
lcp-echo-interval 10

I have another file /etc/ppp/options:
lock
noauth
nobsdcomp
lcp-echo-failure 10
lcp-echo-interval 10
mflserver3# less /etc/ppp/options
name mflserver3
noipdefault
noauth
lock
local
lcp-echo-interval 30
lcp-echo-failure 4
lcp-max-configure 60
lcp-restart 2
idle 600
noipx
file /etc/ppp/filters
proxyarp
ms-dns 192.168.1.4
ms-wins 192.168.1.4
refuse-chap
refuse-mschap

Finally, I have both pap-secrets and chap-secrets.

With the existence of a /etc/ppp/ppp.conf looking like:
pptp:
set timeout 0
set log phase chat connect lcp ipcp command
set dial
set login
enable mssfixup
set ifaddr 192.168.1.4 192.168.150-192.168.1.155 255.255.255.0
set server /tmp/loop  0177
disable pap
# Authenticate against /etc/passwd
enable passwdauth
disable ipv6cp
enable proxy
accept dns
enable MSChapV2
enable mppe
disable deflate pred1
deny deflate pred1
set dns 195.184.96.2
set device !/etc/ppp/secure

I got the following in my log:
ppp[67205]: Warning: Label /etc/ppp/options.pptp rejected -direct
connection: Configuration label not found

When I removed ppp.conf, I got:
 ppp[67267]: Warning: Label /etc/ppp/options.pptp rejected -direct
connection: /etc/ppp/ppp.conf : File not found

I am a bit confused. It seems that the reference to the options file makes
something go wrong. And it seems that pptpd needs the ppp configuration file
to work.

Does anyone have a working example of poptop-based vpn server for FreeBSD
that can make workstations join the domain?

Best regards,
Jon Theil Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: pptpd server on a Samba PDC

2008-03-18 Thread Jon Theil Nielsen


 Yes, this configuration guide you've read is for Linux, thus it will
 use pppd by Paul Mackeras. pppd is in the base system(/usr/sbin/pppd),
 but it's an older version than the Linux one, since most people on FreeBSD
 use user-ppp(/usr/sbin/ppp). So, bad news first:
 pppd probably won't work(at least won't work by copying
 a configuration file you've found on the internet). I have many
 doubts that FreeBSD's pppd can be used with pptp.

 The good news are, that poptop is supported(it's in the ports),
 you just have to use user-ppp(which you seem to already use, since
 the name of the process above is ppp). Isn't the pptp entry on
 /etc/ppp/ppp.conf, installed from the port???
 Did you search the package for configuration samples?


 
  Does anyone have a working example of poptop-based vpn server


 The pptp server/client of preference for a FreeBSD system, is in my humble
 opinion net/mpd. I suggest you to use that. There many guides on pptp
 and mpd lying around on the net.

 HTH, Nikos


Okay, I tried to install mpd, but now i doesn't seem to work

===/usr/local/etc/mpd/mpd.conf
default:
load pptp1

pptp1:
new -i ng0 pptp1 pptp1
set iface disable on-demand
set iface enable proxy-arp
set iface idle 0
set iface enable tcpmssfix
set bundle enable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link keep-alive 10 60
set ipcp yes vjcomp
set ipcp ranges 192.168.1.4/32 192.168.1.151/32
set ipcp dns 192.168.1.4
set ipcp nbns 192.168.1.4
set link disable pap
set bundle enable compression
set ccp yes mppc
#set ccp yes mpp-e40
set ccp yes mpp-e128
set ccp yes mpp-stateless
#set bundle enable crypt-reqd

===/usr/local/etc/mpd/mpd.linksf
pptp1:
set link type pptp  ## define the link type protocol as PPTP
set pptp self 192.168.1.4## define the IP address  on which MPD will
run
set pptp enable incoming  ## define the connection as Incoming
set pptp disable originate ## enables PPTP connection for communication
with the client

===/etc/rc.conf

mpd_enable=YES
gateway_enable=YES

And a /usr/local/etc/mpd/mpd.secret is also there.
I can start the service, but don't see any port 1793 by typing netstat -an
And ifconfig doesn't show any pptp1
Are there any obvious errors in this configuration?

Regards,
Jon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


mpd pptp server?

2008-03-18 Thread Jon Theil Nielsen
I have tried some different ways to make a working VPN server on FreeBSD 7.0.
The main goal is to make it possible for Windows clients to access their
Samba home shares. I'm not sure if mpd is the best solution, but I will give
it a try.
I have installed /usr/ports/mpd4 and have the following configuration:

==/usr/local/etc/mpd4/mpd.conf
startup:
don't know what to put in here...

default:
load pptp1

pptp1:
new -i ng0 pptp1 pptp1
set iface disable on-demand
set iface enable proxy-arp
set iface idle 0
set iface enable tcpmssfix
set bundle enable multilink
set link yes acfcomp protocomp
set link no pap chap
set link enable chap
set link keep-alive 10 60
set ipcp yes vjcomp
set ipcp ranges 192.168.1.4/32 192.168.1.151/32
set ipcp dns 192.168.1.4
set ipcp nbns 192.168.1.4
set link disable pap
set bundle enable compression
set ccp yes mppc
#set ccp yes mpp-e40
set ccp yes mpp-e128
set ccp yes mpp-stateless
#set bundle enable crypt-reqd

==/usr/local/etc/mpd4/mpd.linksf
pptp1:
set link type pptp  ## define the link type protocol as PPTP
set pptp self 192.168.1.4## define the IP address  on which MPD will
run
set pptp enable incoming  ## define the connection as Incoming
set pptp disable originate ## enables PPTP connection for communication
with the client

And then I also have a mpd.secrets file of course.

I can start the service, but I don't see any pptp interface after an
ifconfig command. And netstat -an does not show any port 1723 listening.

Do I need to have a customized kernel to make it work? Or are there any
obvious errors in the above configuration?

Regards,
Jon Theil Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: LDAP user authentication?

2008-02-14 Thread Jon Theil Nielsen
  I have googled for a very long time, but I haven't found any useful
   howto on this issue. Well, there is
   
 http://www.cultdeadsheep.org/FreeBSD/docs/Quick_and_dirty_FreeBSD_5_x_and_nss_ldap_mini-HOWTO.html
   but that seems to be a bit confusing an not up-to-date. I guess it
   _should_ be possible - and indeed very useful (especially combinde
   with Samba PDC and an easily maintainlable mail server). So please, if
   you have any experiences or knowledge of a useful description..!
  
   Regards,
   Jon Theil Nielsen


2008/2/14, Dave [EMAIL PROTECTED]:
 Hi,
 I am far from an expert, in fact i'm still learning. I don't know a lot
  of the jargon, that is i still get the more intense terms mixed up, but i've
  been banging my head against ldap for about a month now and am starting to
  show results. Right now i'm using ldap in jails on freebsd 6.2 as i don't
  have all the bugs worked out to go production. I've got a directory that is
  a user addressbook as well as handles authentication of users, both for the
  jailed ldap server, but for two other jailed environments, one the ldap
  client, the other just a test machine. I've also authenticated a linux box
  against this server that works fine with a few tweaks. Right now i've got a
  jail specifically for testmail setup i'm going to try to hook in email
  services, pop/imap, smtp, etc. in to ldap.
 If you have im abilities i can talk more there, but basically it's
  definitely not trivial to get going, in my opinion others might differ.
  Dave.

I have some experience with FreeBSD but not with running in jails. I
migth be a solution, but I don't know. What I would really like was a
thorough desription of setting LDAP authentication up for the wholw
system. But I might read up on jails. Thanks anyway.

Regards,
Jon Theil Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: LDAP user authentication?

2008-02-14 Thread Jon Theil Nielsen
2008/2/14, Dave [EMAIL PROTECTED]:
 Hi,
 Actually i'm only using jails, because i haven't got all the bugs worked
  out yet and when i do i'm going to just copy the files over and go
  production. Other than that these files will work for a freebsd system. In
  brief you'll need openldap server and client ports, i'm using 2.4, pam_ldap
  port and nss_ldap port. Go configure all that and that'll do it, take it in
  stages, slapd first, the ldap client next, then either pam_ldap or nss_ldap,
  one thing you'll definitely want is tls encryption, can't help with that as
  i'm still trying to get that working.
 If you need any help let me know, i'll do what i can.

 Dave.

  - Original Message -
  From: Jon Theil Nielsen [EMAIL PROTECTED]

 To: Dave [EMAIL PROTECTED]
  Cc: freebsd-questions@freebsd.org
  Sent: Thursday, February 14, 2008 7:20 AM
  Subject: Re: LDAP user authentication?


I have googled for a very long time, but I haven't found any useful
 howto on this issue. Well, there is

   
 http://www.cultdeadsheep.org/FreeBSD/docs/Quick_and_dirty_FreeBSD_5_x_and_nss_ldap_mini-HOWTO.html
 but that seems to be a bit confusing an not up-to-date. I guess it
 _should_ be possible - and indeed very useful (especially combinde
 with Samba PDC and an easily maintainlable mail server). So please, if
 you have any experiences or knowledge of a useful description..!

 Regards,
 Jon Theil Nielsen
  
  
   2008/2/14, Dave [EMAIL PROTECTED]:
   Hi,
   I am far from an expert, in fact i'm still learning. I don't know a
   lot
of the jargon, that is i still get the more intense terms mixed up, but
   i've
been banging my head against ldap for about a month now and am starting
   to
show results. Right now i'm using ldap in jails on freebsd 6.2 as i
   don't
have all the bugs worked out to go production. I've got a directory that
   is
a user addressbook as well as handles authentication of users, both for
   the
jailed ldap server, but for two other jailed environments, one the ldap
client, the other just a test machine. I've also authenticated a linux
   box
against this server that works fine with a few tweaks. Right now i've
   got a
jail specifically for testmail setup i'm going to try to hook in email
services, pop/imap, smtp, etc. in to ldap.
   If you have im abilities i can talk more there, but basically it's
definitely not trivial to get going, in my opinion others might differ.
Dave.
  
Thanks a lot. That might be interesting. TLS might not be that vital,
since I'm mostly thinking of a solution on my own servers and
primarily only on the central one. When I was on Linux, PAM was almost
a most, but I think it is different on FreeBSD, so I guess I would
prefer the solution with nss_ldap.
Your are right, nothing severe will happen if I try to get the LDAP
server and client up and running in the first place. As far as I
remember, the most critical issue was how to initialize the database
and how to make a reasonable structure suited for both user
authentication, Samba and some mail server. Right now I have to
parallel structures, one for Samba/system users and one for (virtual)
mail users.
I still wonder why a universal implementation of LDAP authentication
on FreeBSD is not described anywhere. But if I find the time and
energy, I migth try to experiment on my own and might also return to
you if a have more specific issues.

Regards,
Jon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: LDAP user authentication?

2008-02-14 Thread Jon Theil Nielsen
2008/2/14, Dave [EMAIL PROTECTED]:
 Hi,
 Actually i'm only using jails, because i haven't got all the bugs worked
  out yet and when i do i'm going to just copy the files over and go
  production. Other than that these files will work for a freebsd system. In
  brief you'll need openldap server and client ports, i'm using 2.4, pam_ldap
  port and nss_ldap port. Go configure all that and that'll do it, take it in
  stages, slapd first, the ldap client next, then either pam_ldap or nss_ldap,
  one thing you'll definitely want is tls encryption, can't help with that as
  i'm still trying to get that working.
 If you need any help let me know, i'll do what i can.

 Dave.
Hi again,
I don't know what happened, but now I found some seemingly useful
descriptions of LDAP authentication on FreeBSD. The one that appeared
must relevant is this one:
http://www.bsdforums.org/forums/archive/index.php/t-49221.html
Maybe it could be useful for you too. Obviously, I haven't had the
time to work trough the description yet, but I will give it a try.

Best regards,
Jon
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Re: LDAP user authentication?

2008-02-14 Thread Jon Theil Nielsen
2008/2/14, Jonathan Chen [EMAIL PROTECTED]:
 On Wed, Feb 13, 2008 at 08:10:57PM +0100, Jon Theil Nielsen wrote:
   I have googled for a very long time, but I haven't found any useful
   howto on this issue. Well, there is
   
 http://www.cultdeadsheep.org/FreeBSD/docs/Quick_and_dirty_FreeBSD_5_x_and_nss_ldap_mini-HOWTO.html
   but that seems to be a bit confusing an not up-to-date. I guess it
   _should_ be possible - and indeed very useful (especially combinde
   with Samba PDC and an easily maintainlable mail server). So please, if
   you have any experiences or knowledge of a useful description..!


 The first thing for you to do is to set up your LDAP tree, with your
  users using objectClass=posixAccount, and your groups with
  objectClass=posixGroup.

  Then make the following changes to /etc/nsswitch.conf:
 group: files ldap
 passwd: files ldap

  You then have to install the ports net/nss_ldap and security/pam_ldap.
  The strategy you should adopt is to first get nss_ldap working before
  looking at pam_ldap.

  To configure nss_ldap:
 cp /usr/local/etc/nss_ldap.conf.sample /usr/local/etc/nss_ldap.conf

  When editing the nss_ldap.conf, the entries of particular interest
  are bind_timelimit and bind_policy, which will need to be changed
  so that the system will still allow you login locally even if the LDAP
  server is not running. I've got mine set to:
 bind_timelimit 3
 bind_policy soft

  Make sure your nss_base_passwd and nss_base_group are set correctly.
  I foudn that I didn't need have to set rootbinddn or provide a ldap.secret
  file, YMMV.

  You can then test with getent group or getent passwd. However,
  getent(1) is only available with FreeBSD-7 onwards. If you aren't
  using FreeBSD-7, the simplest way to test is to create a file whose
  user and group ownership refers to the LDAP entries, and then see if
  a simple ls -l displays correctly.

  Once you've verified that this is working, you can then configure
  pam_ldap:
 cp /usr/local/etc/ldap.conf.dist /usr/local/etc/ldap.conf

  Again, set the bind_timelimit and bind_policy to ensure you don't hang
  your system if the LDAP server isn't up.

  To configure PAM, you have to add a reference to pam_ldap in the
  appropriate PAM files in /etc/pam.d. Here's my snippet in
  /etc/pam.d/login to allow a console login:

 # auth
 auth sufficient  pam_self.so no_warn
 auth sufficient  /usr/local/lib/pam_ldap.so  no_warn try_first_pass
 auth include system
 ...

  The pam_ldap.so reference will need to be added to other pamd.d files
  as required, eg: imap, gdm, kde, xdm.

  Hope this helps.

 --
  Jonathan Chen [EMAIL PROTECTED]

Well, I must say that this is almost more than I could imagine to get
out of my request..! I will absolutely try this method as soon as
possible. I hope I can make it work, and I will report back with
experiences (and hopefully not) problems/questions.

Regards,
Jon Theil Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


LDAP user authentication?

2008-02-13 Thread Jon Theil Nielsen
I have googled for a very long time, but I haven't found any useful
howto on this issue. Well, there is
http://www.cultdeadsheep.org/FreeBSD/docs/Quick_and_dirty_FreeBSD_5_x_and_nss_ldap_mini-HOWTO.html
but that seems to be a bit confusing an not up-to-date. I guess it
_should_ be possible - and indeed very useful (especially combinde
with Samba PDC and an easily maintainlable mail server). So please, if
you have any experiences or knowledge of a useful description..!

Regards,
Jon Theil Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Samba: changing UNIX passwords from Windows

2008-01-07 Thread Jon Theil Nielsen
Hello
 
We have a FreeBSD server (7.0 BETA3) running as PDC (Samba 3.0.28) passwords
stored in tdbsam. Theres are no problems for users and machines to log on to
the network as long as they use the passwords I have made by smbpasswd -a
username. But I cannot make a working configuration which allows users to
change their own passwords on the server. They are told something like You
do not have permission to change your password. I guess the problem is the
communication between Samba and the server, the passwd chat, but I'm not
sure. I have the following lines in smb.conf
 
passwd program = /usr/bin/passwd %u
unix password sync = Yes
passwd chat = *New*password* %n\n *Retype*new*passwordn* %n\n
 
I'm not sure the chat is correct and would like to hear about what migth be
more correct for this version of FreeBSD. I have tried to set passwd chat
debug = Yes, but that did not provide any useful (to me, at least)
information on the nature of the problem.
I haven't been able to find much information on this issue between FreeBSD
and Samba, bur I'm sure there must be a solution. I don't know if the
solution is to use another password database (e.g. LDAP), but this seems to
be a rather complicated issue too.
 
Regards,
Jon Theil Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]


Libtool cannot find correct libraries

2007-10-17 Thread Jon Theil Nielsen
System: FreeBSD 8.0 Current (!)
 
Made a classic UNIX mistake and entered rm -R * in the wrong directory.
Stopped it very quickly, but have been in troubles ever since. I have
made a rebuild of the system - both userland and kernel, but still
having the same problems.
The problem seems to be in libtool no longer being able to find the
correct version of the libraries (even after having rebuild libtool
itself without problems).
For example, when I need to install xorg-drivers from the ports, it ends
up with
 
libtool: link: unknown library version type 'freebsd-' (obviously
missing something after the hyphen).
 
When looking af the libtool configuration:
 
libtool --config:
...
# Library versioning type.
version_type=freebsd-
 
I don't know how to manually set the correct versioning type, and I dont
know from which configuration file it tries to determine the type.
 
Regards,
Jon Theil Nielsen
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to [EMAIL PROTECTED]