Koozali.org: home of the SME Server

SME to authenticate users on an openfiler box?

Offline judgej

  • *
  • 375
  • +0/-0
SME to authenticate users on an openfiler box?
« on: May 08, 2006, 01:16:56 PM »
Can anyone tell me whether it is possible to use an SME7 box to authenticate users accessing an OpenFiler NAS box?

I basically have one SME6.5 (to be upgraded to SME7.x) with the users defined. I am intending rolling out two OpenFiler NAS boxes, at different locations, synchronised so they back each other up over the Internet.

The OpenFiler boxes can authenticate against a wide range of services, most of which I have no idea how to set up.

My ideal would be to tick a few boxes in the OpenFiler boxes, enter some details for the SME box, and then have users accessing the OpenFiler box authenticated against the SME server.

-- JJ
-- Jason

SupportIT

Install NIS contrib
« Reply #1 on: June 13, 2006, 02:25:30 AM »
You can install the NIS contrib and use it for your authentication - I have it working and it seems to be all ok.

Offline judgej

  • *
  • 375
  • +0/-0
Re: Install NIS contrib
« Reply #2 on: June 24, 2006, 02:27:54 PM »
Quote from: "SupportIT"
You can install the NIS contrib and use it for your authentication - I have it working and it seems to be all ok.


Thanks.

For reference, I've found these two documents, which I suspect may need updating for SME7, but they have got me headed in the right direction at least:

http://no.longer.valid/phpwiki/index.php/NIS%20Authenticated%20Linux%20workstation%20on%20an%20e-smith%20server

http://no.longer.valid/phpwiki/index.php/How%20to%20set%20up%20NIS%20on%20your%20SME%20Server
-- Jason

Offline p-jones

  • *
  • 594
  • +0/-0
SME to authenticate users on an openfiler box?
« Reply #3 on: April 06, 2007, 12:55:52 AM »
judgej, did you ever progress this ?? If yes, how ?
...

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
SME to authenticate users on an openfiler box?
« Reply #4 on: April 06, 2007, 04:20:25 AM »
I second the query. I'll be moving ahead on this probably in the next few weeks. I'm toying with either OpenFiler or FreeNAS.
SME since 2003

Offline judgej

  • *
  • 375
  • +0/-0
SME to authenticate users on an openfiler box?
« Reply #5 on: April 06, 2007, 02:07:51 PM »
Quote from: "p-jones"
judgej, did you ever progress this ?? If yes, how ?


On the one hand: no, but the story has moved on.

In theory OpenFiler would authenticate against an NT domain, and SME Server can act as a domain controller. So it should work. Unfortunately, make one tiniest mistake setting up OpenFiler (the kind of thing you would do when when setting it up for the first time) and you get locked out of OpenFiler, with not even an administrator login. So for a biginner, it is a big risk, and a big learning curve trying to work out how to get your locked up data back.

But I said the story has moved on. I've noticed in the last few days that OpenFiler 2.2 now has its own built-in authentication server. That should really open up the market to home users. I've run out of space on my 500G SME server, and so I'm looking for a terabyte or more of decent RAID storage.

I'm going to give OpenFiler another go, but for now avoid trying to authenticate against the SME server, because it is not fun being locked out of your storage, with the prospect of days of learning how the damn thing works to get back in again.

-- JJ
-- Jason

Offline judgej

  • *
  • 375
  • +0/-0
SME to authenticate users on an openfiler box?
« Reply #6 on: April 06, 2007, 02:15:55 PM »
Quote from: "christian"
I second the query. I'll be moving ahead on this probably in the next few weeks. I'm toying with either OpenFiler or FreeNAS.


FreeNAS: very small, compact, fast, but very limited (one share - basically like a USB disk on the network). Can run off a small compactflash card. The Mini solution. Free.

OpenFiler: very large, complex, complete (many shares, many users, many ways to access the data - webav, ftp, NFS, iSCSI/NAS, etc.). Needs its own separate 3Gbyte+ disk to boot off, though people have had some luck booting from 4Gbyte compactflash cards. Just keep plugging in new disks and extend logical volumes as needed. The Rolls Royce solution. Free.

SME: more geared towards mail and other services than pure storage. Does its job well, but when you run out of storage, it's not easy to just plug another disk in and extend logical disks. The Estate/family car solution. Free.

All do RAID, and no matter which one you start with, moving your data to another would not be hard. All great choices for their niches.

-- JJ
-- Jason

Offline christian

  • *
  • 369
  • +0/-0
    • http://www.szpilfogel.com
SME to authenticate users on an openfiler box?
« Reply #7 on: April 06, 2007, 02:51:09 PM »
JJ,
thanks for the notes.

In the latest FreeNAS version the docs indicate that you can link up multiple FreeNAS boxes via iSCSI (as does OpenFiler). It also indicates the ability to combine physical volumes and then create logical volumes on top od these. To be frank the way it reads you could in theory create more logical volumes of logical volumes.

Are your FreeNAS comments based on the current releases or past analysis? In other words is the FreeNAS docs talking about future state (or over stating its capabilities)?

Did you note if either can have its root disk set up as RAID1?

What attracts me about FreeNAS is it seems well documented, small foot print, has uPNP capability.

Christian
SME since 2003

francois.mdlh

SME to authenticate users on an openfiler box?
« Reply #8 on: July 11, 2007, 09:41:58 AM »
judgej, any success getting Openfiler to authenticate from SME? I have been using both seperately, but it would be great to run both off the same user database. C'mon ppl, I'm sure this can be done! Help!

francois.mdlh

SME to authenticate users on an openfiler box?
« Reply #9 on: July 16, 2007, 02:52:14 PM »
bump

Offline judgej

  • *
  • 375
  • +0/-0
SME to authenticate users on an openfiler box?
« Reply #10 on: July 19, 2007, 12:15:29 AM »
Quote from: "francois.mdlh"
bump


Bumpy bump - sorry, no progress. I kind of ran out of time trying to set it up, and now have bought a bunch of portable USB disks we operate over 'sneakernet'.

-- JJ
-- Jason

francois.mdlh

SME to authenticate users on an openfiler box?
« Reply #11 on: July 19, 2007, 08:43:32 AM »
eish, bummer. was hoping someone could get this working. I'll have to use two sme servers then.

Offline grasomega

  • 2
  • +0/-0
SME to authenticate users on an openfiler box?
« Reply #12 on: August 06, 2007, 06:18:38 PM »
Hi everyone!

I have tested the Openfiler with SME server 7 and it worked like a charm.
I had no problem in getting the Openfiler to authenticate the users on SME Server.
First, you have to setup SME as a Domain Controller.
Join the Openfiler box to SME Domain using NTDOM, not ADS (see Openfiler docs: http://www.openfiler.com/docs/manual/#d0e1157 - 3.5.3. Windows Domain Controller Configuration).
Then you have to reset the computer account for Openfiler on SME:

Code: [Select]
smbpasswd -a -m Clientname$

Then rejoin the Openfiler to the SME Server Domain (on Openfiler):

Code: [Select]
net rpc join -S $smeserver -U admin

and enter the password.

I created then some file shares on Openfiler and I could setup ACLs based on SME users. They were respected and the users had access as set.

All the setup was made on a single server with VMware Server and virtual networking.

I hope this helps.

grasomega

P.S. Many thanks to the SME Server team for their absolutely great product!

EDIT: I forgot the joining the domain step  :oops:

Offline TrevorB

  • *
  • 259
  • +0/-0
    • http://www.batley.id.au
SME to authenticate users on an openfiler box?
« Reply #13 on: August 07, 2007, 12:58:50 AM »
Quote from: "christian"
In the latest FreeNAS version the docs indicate that you can link up multiple FreeNAS boxes via iSCSI (as does OpenFiler). It also indicates the ability to combine physical volumes and then create logical volumes on top od these. To be frank the way it reads you could in theory create more logical volumes of logical volumes.
I use a FreeNAS box for my backups etc. linked to the smeserver via iscsi (using dmay's dar2 contrib for backup). Works very nicely. 3 disks in the FreeNAS box. 2 in raid 0 mode (striped) and 1 holding the OS and some more share.

Shares are CIFS (for general media stuff throughout the household) and workstation backup as well as the iscsi for full/incremental server backup.

I have the security wide open (as it's just @ home), but it does allow for using the smeserver for authentication (I just haven't tried it).

FreeNAS box has a pre-allocated IP from the smeserver box (via hostnames), so it's a known name for all the Win boxes.

Trevor B

francois.mdlh

SME to authenticate users on an openfiler box?
« Reply #14 on: August 07, 2007, 10:00:22 AM »
you sir, are a genius! i love you!