[Samba] no backend defined for idmap config

2009-04-27 Thread Ken Lupo
Hello Samba List,

I am currently running samba 3.3.2 joined to ADS and I am consistently
getting this error in the winbind log:
no backend defined for idmap config DOMAIN

Also, I seem to lose association between user and uid. I think it happens
when the winbind cache expires.

Here's my smb.conf:

[global]
workgroup = DOMAIN
realm = DOMAIN.COM
server string = server
security = ADS
password server = *
log level = 1
log file = /var/log/samba/%m
max log size = 50
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
winbind use default domain = Yes
winbind offline logon = false
template shell = /bin/false
local master = No
dns proxy = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192
SO_RCVBUF=8192 SO_KEEPALIVE
unix extensions = no

[%U$]
path = %H
read only = No
inherit permissions = yes
inherit owner = yes
browseable = yes


Thank you,
Ken
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Fwd: no backend defined for idmap config

2009-04-27 Thread Ken Lupo
Any comments on this would be a ton of help.

Thank you,
Ken

-- Forwarded message --
From: Ken Lupo lu...@saline.k12.mi.us
Date: Mon, Apr 27, 2009 at 9:02 AM
Subject: no backend defined for idmap config
To: samba@lists.samba.org samba@lists.samba.org


Hello Samba List,

I am currently running samba 3.3.2 joined to ADS and I am consistently
getting this error in the winbind log:
no backend defined for idmap config DOMAIN

Also, I seem to lose association between user and uid. I think it happens
when the winbind cache expires.

Here's my smb.conf:

[global]
workgroup = DOMAIN
realm = DOMAIN.COM
server string = server
security = ADS
password server = *
log level = 1
log file = /var/log/samba/%m
max log size = 50
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
winbind use default domain = Yes
winbind offline logon = false
template shell = /bin/false
local master = No
dns proxy = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192
SO_RCVBUF=8192 SO_KEEPALIVE
unix extensions = no

[%U$]
path = %H
read only = No
inherit permissions = yes
inherit owner = yes
browseable = yes


Thank you,
Ken
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] Dynamic Home Shares

2009-04-08 Thread Ken Lupo
Hello,

I am attempting to dynamically create user shares when they connect to the
server based on their username. I cannot use [homes]. My reasoning for this
is that the users require a $ at the end of the share or it becomes
confusing to them(long story). What I'm seeing is that some Windows XP
clients will connect to /home/username but other clients try to connect to
/home/username_ (with an underscore). For a work around I have symlinked
all home folders from username to username_

Here is my smb.conf file:

[global]
workgroup = PC
realm = PC.DOMAIN.COM
server string = FILE
security = ADS
log file = /var/log/samba/%m.log
local master = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
winbind use default domain = Yes
winbind offline logon = false
store dos attributes = Yes
ea support = Yes
dns proxy = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192
SO_RCVBUF=8192 SO_KEEPALIVE
inherit acls = yes
inherit permissions = yes
map acl inherit = yes

[%U$]
path = /home/PC/%U
comment = Homes
read only = No


Any help would be greatly appreicated.

Thank you,
Ken
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Dynamic Home Shares

2009-04-08 Thread Ken Lupo
On Wed, Apr 8, 2009 at 2:13 PM, Adam Williams awill...@mdah.state.ms.uswrote:

 see root preexec = in the man page.  so when they go to %U$ (such as using
 logon home = z: ) it will run a script that creates the required directory
 in /home/pc/


 Ken Lupo wrote:

 Hello,

 I am attempting to dynamically create user shares when they connect to the
 server based on their username. I cannot use [homes]. My reasoning for
 this
 is that the users require a $ at the end of the share or it becomes
 confusing to them(long story). What I'm seeing is that some Windows XP
 clients will connect to /home/username but other clients try to connect
 to
 /home/username_ (with an underscore). For a work around I have symlinked
 all home folders from username to username_

 Here is my smb.conf file:

 [global]
workgroup = PC
realm = PC.DOMAIN.COM
server string = FILE
security = ADS
log file = /var/log/samba/%m.log
local master = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
winbind use default domain = Yes
winbind offline logon = false
store dos attributes = Yes
ea support = Yes
dns proxy = no
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_SNDBUF=8192
 SO_RCVBUF=8192 SO_KEEPALIVE
inherit acls = yes
inherit permissions = yes
map acl inherit = yes

 [%U$]
path = /home/PC/%U
comment = Homes
read only = No


 Any help would be greatly appreicated.

 Thank you,
 Ken


 That will work for my dynamic creation. Does anyone know why the %U
variable returns username + undeerscore(username_)?
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] Dynamic Home Shares

2009-04-08 Thread Ken Lupo
That will work for my dynamic creation. Does anyone know why the %U variable
returns username + underscore(username_) instead of just username?

On Wed, Apr 8, 2009 at 2:27 PM, Brian Gregorcy brian.grego...@utah.eduwrote:

 Here is the script that we use to create the home directory when the user
 first logs in.



  humboldt samba # cat mkhomedir.sh
 #!/bin/bash
 # Creates home directories when account is created
 # gregorcy
 # Created: 03/21/2008
 # Last Mod: 06/10/2008 - Added the if for is fac and cleanup
 ###
 #
 # Variables
 hostname=`hostname`
 blessed=The permissions have been fixed 
 subject1=does not have valid email in our LDAP
 subject2=A user is missing their homedir on  $hostname the home dir has
 been created but the old homedirs should be checked for data
 emailto=supp...@che.utah.edu
 emailmes=/tmp/emailmessage.txt
 ldapmail=`ldapsearch -D cn=***,ou=***,dc=*,dc=utah,dc=edu -b
 ou=***,dc=***,dc=utah,dc=edu -w * -x -LLL (sAMAccountName=$1) mail |
 grep mail | sed 's/..//'`
 ldapfac=`ldapsearch -D cn=***,ou=***,dc=,dc=utah,dc=edu -b
 ou=***,dc=***,dc=utah,dc=edu -w * -x -LLL (sAMAccountName=$1)
 memberof  /tmp/testfac`




 grep -q Faculty /tmp/testfac isfac=$?
 echo $isfac

 # functionville
 function createbless () {
touch /home/CHEMENG/$1/.blessed
echo $blessed  /home/CHEMENG/$1/.blessed
#chown root:root /home/CHEMENG/$1/.blessed
chmod 700 /home/CHEMENG/$1/.blessed
 }



 # scriptage
 if [ ! -e /home/CHEMENG/$1 ]; thenecho The home dir for $1 was
 not found probably was not migrated  $emailmes
mkdir /home/CHEMENG/$1echo Created the home directory but
 should check trashheap or CHE-2551-30 for old stuff  $emailmes
mail -s $subject2 supp...@***.utah.edu  $emailmes
rm -r $emailmes
 fi

 if [ ! -e /home/CHEMENG/$1/.blessed ]; then
mkdir /home/CHEMENG/$1
if [ $isfac = 0 ]; then
xfs_quota -x -c limit bsoft=61440M bhard=63000M
 $1 /home
fi


if [ $isfac != 0 ]; thenxfs_quota
 -x -c limit bsoft=3072M bhard=3200M $1 /home
fi
#cp -r /etc/skel/* /home/CHEMENG/$1/*
chown $1:CHEMENG+Domain Users /home/CHEMENG/$1
chmod -R 711 /home/CHEMENG/$1
if [ -z $ldapmail ]; then
echo Add the attribute mail to the user $1
 $emailmes
echo then manually :( create the .forward in
 /home/CHEMENG/$1  $emailmes
echo Or add the email attribute to the AD and
 delete the .blessed file   $emailmes
mail -s $1 $subject1  supp...@***.utah.edu  
 $emailmes
rm -r $emailmes
createbless $1
exit 0
fi
touch /home/CHEMENG/$1/.forward
echo $ldapmail  /home/CHEMENG/$1/.forward
#chown root:root /home/CHEMENG/$1/.forward
chmod 700 /home/CHEMENG/$1/.forward
createbless $1
# mod the public_html folder so apache can see it
chown -R $1:apache /home/CHEMENG/$1/public_html
chmod -R 751 /home/CHEMENG/$1/public_html
chmod -R g+s /home/CHEMENG/$1/public_html


 fi

 # Clean Up
 rm /tmp/testfac

 exit 0


 # Notes
 # Basic premise for the .forward add
 # touch /home/CHEMENG/$1/foo.txt
 # echo grego...@***.utah.edu  /home/CHEMENG/$1/foo.txt

 # LDAP Search String
 # ldapsearch -D cn=***,ou=,dc=*,dc=utah,dc=edu -b
 ou=*8,dc=,dc=utah,dc=edu -w  -x -LLL
 (sAMAccountName=) mail | grep mail
 # Output looks like this:
 # mail: j...@***.utah.edu



 Adam Williams wrote:

 see root preexec = in the man page.  so when they go to %U$ (such as using
 logon home = z: ) it will run a script that creates the required directory
 in /home/pc/

 Ken Lupo wrote:

 Hello,

 I am attempting to dynamically create user shares when they connect to
 the
 server based on their username. I cannot use [homes]. My reasoning for
 this
 is that the users require a $ at the end of the share or it becomes
 confusing to them(long story). What I'm seeing is that some Windows XP
 clients will connect to /home/username but other clients try to connect
 to
 /home/username_ (with an underscore). For a work around I have
 symlinked
 all home folders from username to username_

 Here is my smb.conf file:

 [global]
workgroup = PC
realm = PC.DOMAIN.COM
server string = FILE
security = ADS
log file = /var/log/samba/%m.log
local master = No
idmap uid = 16777216-33554431
idmap gid = 16777216-33554431
winbind use default domain = Yes
winbind offline logon = false
store dos attributes = Yes
ea support = Yes
dns proxy = no
socket options = TCP_NODELAY IPTOS_LOWDELAY

[Samba] Using smbtorture to test performance

2009-03-15 Thread Ken Lupo
Hello,

Could someone give me a quick howto or link on how to do benchmarking using
smbtorture. I want to compare a Windows 2003 R2 vs Samba 3.0.33, exact same
hardware.

Thank you,
Ken
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


Re: [Samba] CTDB

2009-02-14 Thread Ken Lupo
I am trying to understand the ip addressing with nodes and public addresses.
Do I need to 2 or more ethernet nics in each ctdb node? What is best
practice for addressing?

Also, how do you start up ctdb on all nodes at once? with onnode? or can you
setup the ctdb service to the clsuter manager?

Thank you,
Ken

On Sat, Feb 14, 2009 at 7:41 AM, Kums kumaran.raja...@gmail.com wrote:


 On Fri, Feb 13, 2009 at 9:24 PM, Ken Lupo lu...@saline.k12.mi.us wrote:

 I am not sure if this is the correct list but I am having some issues with
 CTDB and configuring it properly. I have gone through all the
 documentation
 many many times and am still not able to get it setup and running
 correctly.
 Is there a howto on setting up CTDB in a RedHat GFS cluster out there?


 What is the exact issue that your seeing? Can you please elaborate a little
 bit.

 http://wiki.samba.org/index.php/CTDB_Setup

 Thanks,
 -Kums




-- 
Ken Lupo, Saline Area Schools
Office: 734.429.8014
Mobile: 248.881.5681
http://www.salineschools.com

idea=`grep -i clue /dev/brain` ; test -z $idea  echo sorry, init 6 in
progress || sh ./post-to-web
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba


[Samba] CTDB

2009-02-13 Thread Ken Lupo
I am not sure if this is the correct list but I am having some issues with
CTDB and configuring it properly. I have gone through all the documentation
many many times and am still not able to get it setup and running correctly.
Is there a howto on setting up CTDB in a RedHat GFS cluster out there?

Thank you,
Ken
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/options/samba