Looking for CIFS howto


 
Thread Tools Search this Thread
Operating Systems Solaris Looking for CIFS howto
# 8  
Old 01-04-2010
Uhm...

A samba-server can authenticate it's users against an LDAP database. Sorry, but are you pulling my leg?

Windows user browses the network environment, chooses a samba-server, clicks on it, the server prompts for a username and password. When the password is correct, the server will permit access to the shares the user is granted access on. That's the way it's worked for the last 15 years?

See Samba & LDAP - SambaWiki for a linux-samba.

How do you authenticate users on a samba-server, if you've ever done so yet?
# 9  
Old 01-04-2010
Okay, I understand what you really want is to map Windows SIDs to Unix UIDs. I don't think the ZFS/CIFS OpenSolaris service allows interactive (one shot?) mappings like you explain in your previous posting.
What you might do instead is to add attributes to either the active directory server used to authenticate your users on the Windows side or to an LDAP directory server on the Unix side or simply to add static rules to map ids. Have a look at the idmap manual page for details.

This document is also explaining how that service works:

Preface - Solaris CIFS Administration Guide
# 10  
Old 01-04-2010
Yes, now we are speaking the same language.

But this is such a complex topic, completely different from old samba-style, that's why I wonder, if there isn't any easy to follow tutorial out there, as I am not excited about each and every detail...
# 11  
Old 01-04-2010
If you want to go the static mappings way, which is simpler to set up, you can use the syntax described in the manual page. eg.:
Code:
idmap add winname:PatrickBaer unixuser:pbaer

or, if your unix and windows usernames are identical:
Code:
idmap add 'winuser:*' 'unixuser:*'

# 12  
Old 01-04-2010
True, but in this setup I had to add a unix-user for every account, which is exactly what I do NOT want.

It should be as simple as "Lookup user/pass in LDAP => Authentication ok? => User in the right group to access the share => connect"

That way I can easily add a new server and just tell it, to do the same thing.
# 13  
Old 01-04-2010
Quote:
Originally Posted by PatrickBaer
True, but in this setup I had to add a unix-user for every account, which is exactly what I do NOT want.
Why ? That's the way it's designed. If a user create a file on a shared filesystem, that file should belong to that user which then must be know by the OS.
In any case, you tell your users are authenticating to an ldap directory so you are probably close to be set. Assuming your LDAP schema is properly configured to allow unix authentication (eg: having PosixAccount and shadowAccount object classes), you might simply need to configure the cifs server to be an ldap name service client.
Is this what you are looking for or am I still missing something ?
# 14  
Old 01-05-2010
Nope, now we are finally speaking the same language Smilie

---------- Post updated at 09:05 AM ---------- Previous update was at 08:12 AM ----------

I just heard, company will probably user a windows active directory instead of LDAP. Sad, but we will see what really happens...
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Red Hat

Issue with mounts CIFS

I donot know much about CIFS but i have been asked to look into an issue related to mounting CIFS filesystem On my redhat 5.6 the /etc/fstab file has the following entry //172.25.x.x/de0/ /dir1/de0 cifs username=bodsadm,password=12345,dir_mode=0777,file_mode=0777,uid=de0adm,gid=sapsys,rw 0 0... (2 Replies)
Discussion started by: Tirmazi
2 Replies

2. Solaris

Can't connect to CIFS share

Hello guys, as of recently I'm unable to connect to one of my CIFS shares and I've no clue why that may be. As you can see in the first attachment a connection attempt to tony prompts for user credentials but when I try to connect to Videos it claims not being able to find the resource which is... (1 Reply)
Discussion started by: Tony~
1 Replies

3. UNIX for Dummies Questions & Answers

Umount CIFS

hi guys I have to umount a CIFS from a Windows machine...but it's been imposible there is one special task /sbin/umount.cifs /mondobackup that task cannot be kill...so I cannot umount the unit any idea how to kill this and umount this CIFS share? by the way I've tried umount... (5 Replies)
Discussion started by: kopper
5 Replies

4. AIX

mounting cifs

Dear All, I mounted a windows share on AIX 5.3. with cifs. The write on it is much slower than from other windows clients. Could you help me with any tricks to speed the writing process? Thanks, Zoltán Patalenszki (0 Replies)
Discussion started by: zoltanp
0 Replies

5. AIX

cifs

Hi, I want to access windows folder from aix and viceversa. Is it possible to do that? I came to know we can do that from cifs but when tried to install cifs.base.cmd 3.2.1.0 cifs.base.lic 3.2.1.0 cifs.base.smit 3.2.1.0 cifs.basic.rte 3.2.1.0 cifs.client.rte 3.2.1.0 cifs.websm.apps 3.2.1.0... (4 Replies)
Discussion started by: vjm
4 Replies

6. OS X (Apple)

OS X - cifs - What's Up?

Can all you OS X xperts help me? OS X Leopard 10.5.6: mount -t cifs -o username=name,password=secret //server/share /mnt/dir Works from every linux box I have ever used. This does not work from the OS X terminal. Why? The gui/finder/go: cifs://server/share just works... command line... (2 Replies)
Discussion started by: cjohnsoia
2 Replies

7. HP-UX

mount with CIFS

hi everyone months ago i installed software on hp-ux box. So instead of going to the server room (which is far and cold :) ), I put the DVD in my windows xp box and mount it using CIFS, it was successful. Now I want to install another software on the same hp-ux box using the same windows... (3 Replies)
Discussion started by: neemoze
3 Replies

8. Shell Programming and Scripting

Cifs + 2 gb

Hi all, I am using script to take mysql database backup... its arrround 12 GB ...... I have used tar -a , cp -a and rsync -a to take backup on CIFS mounted drive but it fails to take backup more than 2 GB as well as not able to take backup with ownership,timestamps. Conf files... (3 Replies)
Discussion started by: jagnikam
3 Replies

9. AIX

share with cifs

Im trying to share a directory with cifs my aix box with a windows server. but when I try to mount mount -v cifs -n 172.19.90.240/suc_user/tommy /directory /directory1/directory1 I got this error There was an error connecting the share or the server. Make sure the lsdev command shows that... (1 Reply)
Discussion started by: lo-lp-kl
1 Replies

10. Linux

CIFS on linux ?

I have a program which reads all the files in a path given as argument into a buffer (And does something with it). The program makes use of several file processing APIs such as: stat(), fopen(), read() etc.. Now, it is possible that the directory specified by the path is actually a volume which... (5 Replies)
Discussion started by: the_learner
5 Replies
Login or Register to Ask a Question