Re: Samba acting oddly.

2012-05-09 Thread Johan Hendriks

On 06-05-12 16:08, Graeme Dargie wrote:

I have a problem with Samba, well I "think" it is samba as one machine I have 
access to when I try to perform an action like create a new folder in my home folder 
windows spouts that I need permission and would I like to try again.

I guess some background would be useful at this point, I have 3 FreeBSD 
machines that were running 8.2 AMD 64, some kind souls on this list were able 
to help me get Samba working using Active Directory, I upgraded to 9.0 when it 
became available and everything seemed to be fine.

I happened to be needing to create a perl script that would allow two users to 
chat over a network, so rather than fiddling about with Linux and VM`s .. I 
just used two of my FreeBSD machines, this is when I noticed the issue.

Only one machine shows this problem, the others let me happily create / delete 
stuff in the home folder other shares on the problematic machine are fine.

The configuration files for all 3 machines is included below, but I just cannot 
seen to see why 2 work and 1 does as all three are running Samba35-3.5.6.2 so 
any help or pointers would be welcome.

Regards
Graeme



Machine Eris - samba works perfectly

Smb.conf looks like this
[global]
workgroup = UNIVERSE
realm = UNIVERSE.GALAXY.LCL
netbiosname = ERIS
interfaces = re0
security = ads
allow trusted domains = yes

idmap uid = 5000-1
#idmap gid = 15000-2
winbind gid = 5000-1
template homedir = /usr/home/%U
template shell = /bin/csh
winbind cache time = 3600
winbind nested groups = yes
winbind use default domain = yes
winbind separator = |
winbind enum users = yes
winbind enum groups = yes
winbind offline logon = yes
syslog only = Yes
socket options =  SO_RCVBUF=131072 SO_SNDBUF=131072 TCP_NODELAY
use sendfile = yes
read raw = yes
use sendfile = yes
local master = no
use sendfile = yes
dns proxy = no
username map = /usr/local/samba/usermap

# ACL Support
map acl inherit = yes
#acl group inherit = yes
acl group control = yes

# LOGGING
log file = /var/log/samba/%m
log level = 1
max log size = 1000
syslog = 2
### recycle bin code
# bin
 vfs object = recycle
 recycle:repository = .RecycleBin/%U
 recycle:keeptree = Yes
 recycle:touch = Yes
 recycle:versions = Yes
 recycle:maxsize = 0
 recycle:exclude = *.tmp
 recycle:exclude_dir = /tmp
 recycle:noversions = *.ppt


[homes]
readonly=no




Machine Proteus - samba working a charm ...
[global]

workgroup = UNIVERSE
realm = UNIVERSE.GALAXY.LCL
netbiosname = PROTEUS
interfaces = re0
security = ads
allow trusted domains = yes

idmap uid = 5000-1
#idmap gid = 15000-2
winbind gid = 5000-1
template homedir = /usr/home/%U
template shell = /bin/csh
winbind cache time = 3600
winbind nested groups = yes
winbind use default domain = yes
winbind separator = |
winbind enum users = yes
winbind enum groups = yes
winbind offline logon = yes
syslog only = Yes
socket options = TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536
use sendfile = yes
read raw = yes
use sendfile = yes
local master = no
use sendfile = yes
dns proxy = no
username map = /usr/local/samba/usermap

# ACL Support
map acl inherit = yes
#acl group inherit = yes
acl group control = yes

# LOGGING
log file = /var/log/samba/%m
log level = 1
max log size = 1000
syslog = 2


[homes]
read only = No


Both of these work with no issues.

However Amalthea which is the machine showing the problem, the smb.conf is the 
following

[global]
workgroup = UNIVERSE
realm = UNIVERSE.GALAXY.LCL
netbiosname = amalthea
interfaces = nfe0
security = ads
allow trusted domains = yes

idmap uid = 5000-1
#idmap gid = 15000-2
winbind gid = 5000-1
template homedir = /usr/home/%U
template shell = /bin/csh
winbind cache time = 3600
winbind nested groups = yes
winbind use default domain = yes
winbind separator = |
winbind enum users = yes
winbind enum groups = yes
winbind offline logon = yes
syslog only = Yes
socket options = TCP_NODELAY SO_RCVBUF=65536 SO_SNDBUF=65536
use sendfile = yes
read raw = yes
use sendfile = yes
local master = no
use sendfile = yes
dns proxy = no
username map = /usr/local/samba/usermap

# ACL Support
map acl inherit = yes
#acl group inherit = yes
acl group control = yes

# LOGGING
log file = /var/log/samba/%m
log level = 1
max log size = 1000syslog = 2

### recycle bin code
# bin
 vfs object = recycle
 recycle:repository = .RecycleBin/%U
 recycle:keeptree = Yes
 recycle:touch = Yes
 recycle:versions = Yes
 recycle:maxsize = 0
 recycle:exclude = *.tmp
 recycle:exclude_dir = /tmp
 recycle:noversions = *.ppt


[homes]
readonly=no

___
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"


This is not the solution, but there are some things i notice.

For s

Re: Samba

2011-10-06 Thread Chris Brennan
On Wed, Oct 5, 2011 at 11:29 PM, Kruppa, Peter Ulrich
 wrote:

 [snip]
>>
> Just one idea:
> did you activate the firewall on your Windows client somehow? That might
> happen during some kind of updates and block samba from client side.
>

Nope, SEP says 139 is allowed, the one thing I haven't done yet is a reboot
of that windows client, I will try that later today.

> --
> Chris Brennan
> A: Yes.
> >Q: Are you sure?
> >>A: Because it reverses the logical flow of conversation.
> >>>Q: Why is top posting frowned upon?
> http://xkcd.com/84/ | http://xkcd.com/149/ | http://xkcd.com/549/
> GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8  9E4A EECD 9A84 D5B2 0C0C)


___
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: Samba

2011-10-05 Thread Kruppa, Peter Ulrich



On 05.10.2011 22:08, Chris Brennan wrote:

Greetings!

I have FreeBSD8.2 running on an x86 box and samba sharing a hardware
raid1 array with zfs ontop and something strange happened today.
Samba stopped accepting connections for some reason and I can't
figure out why. I'm not sure if this is freebsd-specific or if it's a
samba-only issue. But I can note that it had been working fine for
months, the box itself has been up for 23 days w/o incident.

I don't get it, it was working this morning, I changed nothing (in
fact, this is the first time I logged in as root in several days and
there is no outside access to this box). I connected to it this
morning to map it's shares on my laptop and then noticed I couldn't
connect to those very same shares on my desktop.

As you can see, samba is running and the port is open

Just one idea:
did you activate the firewall on your Windows client somehow? That might 
happen during some kind of updates and block samba from client side.


Greetings

Peter.



[root@ziggy ~]# ps auxf | grep -e smbd -e nmbd root  42252  0.0  0.2
7636  3704  ??  Ss3:53PM   0:00.07 /usr/local/sbin/nmbd -D -s
/usr/local/etc/smb.conf root  42256  0.0  0.4 14616  7844  ??  Is
3:53PM   0:00.02 /usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf
root  42258  0.0  0.4 14616  7776  ??  I 3:53PM   0:00.00
/usr/local/sbin/smbd -D -s /usr/local/etc/smb.conf root  42472  0.0
0.1  3500  1248   0  S+4:05PM   0:00.00 grep -e smbd -e nmbd
[root@ziggy ~]# nmap -sT -p139 ziggy

Starting Nmap 5.59BETA1 ( http://nmap.org ) at 2011-10-05 16:05 EDT
Nmap scan report for ziggy (192.168.0.3) Host is up (0.0022s
latency). rDNS record for 192.168.0.3: ziggy.xaerolimit.net PORT
STATE SERVICE 139/tcp open  netbios-ssn

Nmap done: 1 IP address (1 host up) scanned in 0.09 seconds
[root@ziggy ~]#

So I don't get what gives.


-- Chris Brennan A: Yes.

Q: Are you sure?

A: Because it reverses the logical flow of conversation.

Q: Why is top posting frowned upon?

http://xkcd.com/84/ | http://xkcd.com/149/ | http://xkcd.com/549/
GPG: D5B20C0C (6741 8EE4 6C7D 11FB 8DA8  9E4A EECD 9A84 D5B2 0C0C)





___

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"



--

Peter Ulrich Kruppa
Wuppertal
Germany
___
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: Samba question

2011-09-10 Thread Michael Powell
Polytropon wrote:

> On Sat, 10 Sep 2011 11:53:48 +0100, Graeme Dargie wrote:
>> I am trying to mount a samba share that is on a FreeBSD 8.2
>> server to another FreeBSD 8.2 server,
>> 
>> Mount_smbfs -I  //user@host/share /mountpoint
>> 
>> It then asks for a password, I enter the users password
>> and then get mount_smbfs: unable to open connection:
>> syserr = Authentication error
>> 
>> Dmesg is showing smb_co_lock: recursive lock for object 1
>> 
>> I have samba integrated with Active Directory, so I then thought
>> ah maybe adding the user to AD would help, so I have done so
>> using the same password etc still no joy, I have make sure the
>> user has access rights on the samba share, restarted samba and
>> the same error persists, any ideas ?
> 
> Sorry, my indivudal knowledge on "Windows" related things
> is very limited, but maybe you need to add some information
> into /etc/nsmb.conf?
> 
> Maybe like this:
> 
> [default]
> workgroup=YOUR_WORKGROUP_NAME
> 
> [SERVERNAME]
> addr=192.168.2.2
> 
> [SERVERNAME:USERNAME]
> password=TOPSECRET
> 
> where SERVERNAME and USERNAME correspond to the server's name
> and the username you use to access the share (with the proper
> password).
> 
> See "man nsmb.conf" for details.
> 
> Parts of those information should then be reflected in /etc/fstab,
> maybe like this:
> 
> //user@SERVERNAME/share  /smb/share  smbfs  rw,noauto  0  0
> 
> This should allow you to use
> 
> # mount /smb/share
> 
> a bit easier (and automatically, if desired).
> 

Although it has been ages since I played with this, one thing I do recall: 
It matters that where indicated above the characters _must_ be in upper 
case. When I used to use such a setup I found it wouldn't work without it. 
Never knew exactly quite why. 

-Mike


___
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: Samba question

2011-09-10 Thread Polytropon
On Sat, 10 Sep 2011 11:53:48 +0100, Graeme Dargie wrote:
> I am trying to mount a samba share that is on a FreeBSD 8.2
> server to another FreeBSD 8.2 server,
> 
> Mount_smbfs -I  //user@host/share /mountpoint
> 
> It then asks for a password, I enter the users password
> and then get mount_smbfs: unable to open connection:
> syserr = Authentication error
> 
> Dmesg is showing smb_co_lock: recursive lock for object 1
> 
> I have samba integrated with Active Directory, so I then thought
> ah maybe adding the user to AD would help, so I have done so
> using the same password etc still no joy, I have make sure the
> user has access rights on the samba share, restarted samba and
> the same error persists, any ideas ?

Sorry, my indivudal knowledge on "Windows" related things
is very limited, but maybe you need to add some information
into /etc/nsmb.conf?

Maybe like this:

[default]
workgroup=YOUR_WORKGROUP_NAME

[SERVERNAME]
addr=192.168.2.2

[SERVERNAME:USERNAME]
password=TOPSECRET

where SERVERNAME and USERNAME correspond to the server's name
and the username you use to access the share (with the proper
password).

See "man nsmb.conf" for details.

Parts of those information should then be reflected in /etc/fstab,
maybe like this:

//user@SERVERNAME/share  /smb/share  smbfs  rw,noauto  0  0

This should allow you to use

# mount /smb/share

a bit easier (and automatically, if desired).



-- 
Polytropon
Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Samba and Active Directory

2011-03-01 Thread Johan Hendriks
>Hello list,

>I have tried putting this on the samba mail list seems that no knows or
is willing to share, having got good help with freebsd >on here before,
I figured its worth a shot, apologises if it is not 100% OT.

>I am sure this has been asked a million times but here goes for +1

>I am looking for help, or pointers to a good resource to get FreeBSD
8.2 and Samba 3.5 working within a Win 2008 AD >environment, the samba
how to got me so far, but I am missing something somewhere as none of
the shares defined within the >smb.conf will connect without asking for
a username and password.

>Regards

>Graeme

I made a little effort helping somebody on the FreeBSD forum.

http://forums.freebsd.org/showthread.php?t=20007

Use the directions i (Sylhouette) made in the above thread.
It should get you into a running state.


Regards 
Johan 
___
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: Samba Access Like Windows Explorer

2010-11-25 Thread Michael Powell
Jason C. Wells wrote:

> Is it possible to access samba shares much like windows explorer does?
> 
> The ultimate solution would be UNC names with browsing.  I would very
> much like to have my freebsd client see the network namespace in as
> similar fashion to windows as possible.
> 
> I also would like to avoid having to duplicate the hierarchy of mount
> points (for mount_smbfs) on every freebsd client in order to achieve
> this.  Nautilus access the samba shares this way, but I want this work
> on the command line.  Plus I prefer Thunar, which doesn't do samba
> access at all.
> 
> As it stands, I think I will have to mount all samba shares on a freebsd
> client into a top level directory named for the server name, with mount
> points sprinkled about.
> 

There two ways. I do it in Dolphin on KDE all the time. KDE has a kio_slave 
for smb:/ - that is it looks like this in the address bar:

smb://testbed.test.zip/web/   <- where the /web is a share

This is a GUI'fied way of hiding the CLI smbclient. It can be bookmarked, as 
well as made into icons in the left side of Dolphin for easy clicking. 
Smbclient works just fine from a command prompt as well.

The other way is to mount shares as file systems. This can be done with 
entries in fstab and an nsmb.conf file. If you were to pursue this route 
know that the workgroup/server/share info should be all Upper Case. Such is 
displayed in the example nsmb.conf but it isn't immediately apparent that 
upper case _must_ be used. Otherwise you end up chasing your tail wondering 
why it won't connect/mount.

Me I used to do mounts in fstab, but lately just use the kio_slave and 
smbclient approach because it does what I need.

-Mike



___
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: [solved] Re: Samba PDC roaming profiles problem

2010-08-03 Thread Ruben de Groot
On Tue, Aug 03, 2010 at 02:43:24PM +0200, Alex de Kruijff typed:
> 
> I solved it. Without LDAP one is able to use %L, %U and %a in the logon 
> path, but if one uses LDAP then this path is no longer processed by 
> Samba, but instead passed literally to Windows. So far my solution is to 
> change all LDAP entries. This also means I should name multiple servers 
> (on different networks) with the same hostname. Its a bit more limiting 
> the smb.conf, but it works.

Ah, I see. Been there. Do you have the "logon path" etc options still in
smb.conf or are you using ldap attributes (like sambaProfilePath, 
sambaHomeDrive) for each individual account? I found the latter to be
more flexible in the long run (though a little harder to set up and 
administrate initially)
___
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"


[solved] Re: Samba PDC roaming profiles problem

2010-08-03 Thread Alex de Kruijff

Op 3-8-2010 14:35, Ruben de Groot schreef:

On Tue, Aug 03, 2010 at 12:22:33PM +0200, Alex de Kruijff typed:

   

I've enabled debugging in Windows Domain using:
http://support.microsoft.com/default.aspx?scid=kb;en-us;221833

I find it strange that it first tries \\%L\profiles\testers. This is the
log.


USERENV(2ec.2f0) 12:08:35:468 LoadUserProfile: Entering, hToken =

<0x960>, lpProfileInfo = 0x6e3e0
USERENV(2ec.2f0) 12:08:35:468 LoadUserProfile:
 

[lot's of MS logs snipped]

I really think these kind of logs could be much better analyzed at a
samba or MS mailing list.

cheers,
Ruben

   

Hi,

I solved it. Without LDAP one is able to use %L, %U and %a in the logon 
path, but if one uses LDAP then this path is no longer processed by 
Samba, but instead passed literally to Windows. So far my solution is to 
change all LDAP entries. This also means I should name multiple servers 
(on different networks) with the same hostname. Its a bit more limiting 
the smb.conf, but it works.


Yours,
Alex

___
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: Samba PDC roaming profiles problem

2010-08-03 Thread Ruben de Groot
On Tue, Aug 03, 2010 at 12:22:33PM +0200, Alex de Kruijff typed:

> I've enabled debugging in Windows Domain using:
> http://support.microsoft.com/default.aspx?scid=kb;en-us;221833
> 
> I find it strange that it first tries \\%L\profiles\testers. This is the 
> log.
> 
> 
> USERENV(2ec.2f0) 12:08:35:468 LoadUserProfile: Entering, hToken =
> 
> <0x960>, lpProfileInfo = 0x6e3e0
> USERENV(2ec.2f0) 12:08:35:468 LoadUserProfile:

[lot's of MS logs snipped]

I really think these kind of logs could be much better analyzed at a 
samba or MS mailing list.

cheers,
Ruben

___
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: Samba PDC roaming profiles problem

2010-08-03 Thread Alex de Kruijff

Op 2-8-2010 21:26, David N schreef:

On 2 August 2010 21:32, Alex de Kruijff  wrote:
   

Hi,

I've setup a LDAP backend Samba PDC. I can gain access to shares and

login with a user that is in LDAP, but have a prblem setting up the
roaming profile stuff. I've been trying to solve this problem for some
time now, and have tried everything I could think of, but without much
luck. I keep getting the following error messages:

"Windows cannot locate the server copy of your roaming profile and is
attempting to log you on with your local profile. Changes to the profile
will not be copied to the server when you logoff. Plausible causes of
this error include network problem or insufficient security rights. If
this problem persists, contact your network administrators. DETAILS -
The network path was not found."

Followed by:

"Windows cannot find the local profile and is logging on with a tempory
profiles. Changes to this profile will be lost when you logoff."

Here is my smb.conf:

 

[global]
 security = user
 name resolve order = wins lmhosts hosts bcast
 deadtime = 15
 map to guest = Never
 csc policy = disable
 hosts allow = 127. 192.168.
 server string =
 workgroup = Nieuwegein
 time server = yes
 wins support = yes
 domain master = yes
 domain logons = yes
encrypt passwords = yes
 local master = yes
 logon drive = Z:
 logon path = \\%L\profiles\%U
 preferred master = yes
 os level = 255
 encrypt passwords = yes
 passdb backend = ldapsam:ldap://localhost/
 enable privileges = Yes
 pam password change = yes
 passwd program = /usr/local/sbin/smbldap-passwd %u
 passwd chat = *New*password* %n\n *Retype*new*password* %n\n
   

*all*authentication*tokens*updated*
 

 unix password sync = Yes
 ldap delete dn = Yes
 ldap ssl = Off
 ldap passwd sync = Yes
 ldap admin dn = cn=admin,dc=specialisterren,dc=nl
 ldap suffix = dc=specialisterren,dc=nl
 ldap group suffix = ou=Groups
 ldap idmap suffix = ou=Users
 ldap machine suffix = ou=Computers
 ldap user suffix = ou=Users
 idmap backend = ldap:ldap://localhost
 idmap uid = 1-2
 idmap gid = 1-2
 add user script = /usr/local/sbin/smbldap-useradd -a -m "%u"
 delete user script = /usr/local/sbin/smbldap-userdel "%u"
 add group script = /usr/local/sbin/smbldap-groupadd -p "%g"
 delete group script = /usr/local/sbin/smbldap-groupdel "%g"
 add user to group script = /usr/local/sbin/smbldap-groupmod -m
   

"%u" "%g"
 

 delete user from group script = /usr/local/sbin/smbldap-groupmod
   

-x "%u" "%g"
 

set primary group script = /usr/local/sbin/smbldap-usermod -g "%g"
   

"%u"
 

 add machine script = /usr/local/sbin/smbldap-useradd -w "%u"
template homedir = /home/%U
 template shell = /bin/csh
getwd cache = yes
socket options = SO_KEEPALIVE TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=819
use sendfile = yes
mangle prefix = 6 # How to mangle Long Filenames in to 8.3 DOS
log level = 1
log file = /var/log/samba/log.%m
max log size = 50
 syslog = 0

  [template]
  # edited out, has no path

  [homes]
comment = Home users
inherit owner = yes
dos filemode = yes
writable = yes
read list = @wheel @"Domain Admins"
valid users = "%S"
 create mask = 0740
 directory mask = 0750
 aio read size = 16384

  [netlogon]
 comment = Network Logon Service
 path = /disk/netlogon
 browseable = no
 read only = yes
 aio read size = 16384

  [profiles]
 comment = Roaming Profiles Directory
 path = /disk/profiles
 administrative share = true
 browseable = no
writable = yes
 create mask = 0600
 directory mask = 0700
 aio read size = 16384
 public = yes
 # The root preexec command performs:
# mkdir -pm 750 /disk/profiles/%U-%a; chown %U /disk/profiles/%U-%a
 # I started off without this.
 root preexec = /root/sbin/profiles.sh %U %a

# edited out other shares
   

ldapsearch gives me:
 

  # tester, Users, specialisterren.nl
  dn: uid=tester,ou=Users,dc=specialisterren,dc=nl
  objectClass: top
  objectClass: person
  objectClass: organizationalPerson
  objectClass: inetOrgPerson
  objectClass: posixAccount
  objectClass: shadowAccount
  objectClass: sambaSamAccount
  cn: tester
  sn: tester
  givenName: tester
  uid: tester
  uidNumber: 10005
  gidNumber: 513
  homeDirectory: /home/tester
  loginShell: /bin/sh
  gecos: Tes ter
  sambaLogonTime: 0
   

(Edited out the other stuff)

I can acces \\Server\profiles, \\Server\netlogon using my tester
account. /etc/passwd contains no line with the user tester. And I can
login under SSH with the tester account.

ll -d /disk/{netlogon,profiles}gives me:
drwxr-xr-x  2 root  wheel  512 Mar 16 11:09 /disk/netlogon/
drwxrwxrwt  2 root  wheel  512 Aug  2 12:41 /disk/profiles/

Alex


_

Re: Samba PDC roaming profiles problem

2010-08-02 Thread David N
On 2 August 2010 21:32, Alex de Kruijff  wrote:
> Hi,
>
> I've setup a LDAP backend Samba PDC. I can gain access to shares and
>
> login with a user that is in LDAP, but have a prblem setting up the
> roaming profile stuff. I've been trying to solve this problem for some
> time now, and have tried everything I could think of, but without much
> luck. I keep getting the following error messages:
>
> "Windows cannot locate the server copy of your roaming profile and is
> attempting to log you on with your local profile. Changes to the profile
> will not be copied to the server when you logoff. Plausible causes of
> this error include network problem or insufficient security rights. If
> this problem persists, contact your network administrators. DETAILS -
> The network path was not found."
>
> Followed by:
>
> "Windows cannot find the local profile and is logging on with a tempory
> profiles. Changes to this profile will be lost when you logoff."
>
> Here is my smb.conf:
>
>> [global]
>>     security = user
>>     name resolve order = wins lmhosts hosts bcast
>>     deadtime = 15
>>     map to guest = Never
>>     csc policy = disable
>>     hosts allow = 127. 192.168.
>>     server string =
>>     workgroup = Nieuwegein
>>     time server = yes
>>     wins support = yes
>>     domain master = yes
>>     domain logons = yes
>>    encrypt passwords = yes
>>     local master = yes
>>     logon drive = Z:
>>     logon path = \\%L\profiles\%U
>>     preferred master = yes
>>     os level = 255
>>     encrypt passwords = yes
>>     passdb backend = ldapsam:ldap://localhost/
>>     enable privileges = Yes
>>     pam password change = yes
>>     passwd program = /usr/local/sbin/smbldap-passwd %u
>>     passwd chat = *New*password* %n\n *Retype*new*password* %n\n
>
> *all*authentication*tokens*updated*
>>
>>     unix password sync = Yes
>>     ldap delete dn = Yes
>>     ldap ssl = Off
>>     ldap passwd sync = Yes
>>     ldap admin dn = cn=admin,dc=specialisterren,dc=nl
>>     ldap suffix = dc=specialisterren,dc=nl
>>     ldap group suffix = ou=Groups
>>     ldap idmap suffix = ou=Users
>>     ldap machine suffix = ou=Computers
>>     ldap user suffix = ou=Users
>>     idmap backend = ldap:ldap://localhost
>>     idmap uid = 1-2
>>     idmap gid = 1-2
>>     add user script = /usr/local/sbin/smbldap-useradd -a -m "%u"
>>     delete user script = /usr/local/sbin/smbldap-userdel "%u"
>>     add group script = /usr/local/sbin/smbldap-groupadd -p "%g"
>>     delete group script = /usr/local/sbin/smbldap-groupdel "%g"
>>     add user to group script = /usr/local/sbin/smbldap-groupmod -m
>
> "%u" "%g"
>>
>>     delete user from group script = /usr/local/sbin/smbldap-groupmod
>
> -x "%u" "%g"
>>
>>    set primary group script = /usr/local/sbin/smbldap-usermod -g "%g"
>
> "%u"
>>
>>     add machine script = /usr/local/sbin/smbldap-useradd -w "%u"
>>    template homedir = /home/%U
>>     template shell = /bin/csh
>>    getwd cache = yes
>>    socket options = SO_KEEPALIVE TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=819
>>    use sendfile = yes
>>    mangle prefix = 6 # How to mangle Long Filenames in to 8.3 DOS
>>    log level = 1
>>    log file = /var/log/samba/log.%m
>>    max log size = 50
>>     syslog = 0
>>
>>  [template]
>>  # edited out, has no path
>>
>>  [homes]
>>    comment = Home users
>>    inherit owner = yes
>>    dos filemode = yes
>>    writable = yes
>>    read list = @wheel @"Domain Admins"
>>    valid users = "%S"
>>     create mask = 0740
>>     directory mask = 0750
>>     aio read size = 16384
>>
>>  [netlogon]
>>     comment = Network Logon Service
>>     path = /disk/netlogon
>>     browseable = no
>>     read only = yes
>>     aio read size = 16384
>>
>>  [profiles]
>>     comment = Roaming Profiles Directory
>>     path = /disk/profiles
>>     administrative share = true
>>     browseable = no
>>    writable = yes
>>     create mask = 0600
>>     directory mask = 0700
>>     aio read size = 16384
>>     public = yes
>>     # The root preexec command performs:
>>    # mkdir -pm 750 /disk/profiles/%U-%a; chown %U /disk/profiles/%U-%a
>>     # I started off without this.
>>     root preexec = /root/sbin/profiles.sh %U %a
>>
>> # edited out other shares
>
> ldapsearch gives me:
>>
>>  # tester, Users, specialisterren.nl
>>  dn: uid=tester,ou=Users,dc=specialisterren,dc=nl
>>  objectClass: top
>>  objectClass: person
>>  objectClass: organizationalPerson
>>  objectClass: inetOrgPerson
>>  objectClass: posixAccount
>>  objectClass: shadowAccount
>>  objectClass: sambaSamAccount
>>  cn: tester
>>  sn: tester
>>  givenName: tester
>>  uid: tester
>>  uidNumber: 10005
>>  gidNumber: 513
>>  homeDirectory: /home/tester
>>  loginShell: /bin/sh
>>  gecos: Tes ter
>>  sambaLogonTime: 0
>
> (Edited out the other stuff)
>
> I can acces \\Server\profiles, \\Server\netlogon using my tester
> account. /etc/passwd contains no line with the user tester. And I can
> login under SSH with the tester account.
>

Re: Samba PDC roaming profiles problem

2010-08-02 Thread Michael Powell
Alex de Kruijff wrote:

> Hi,
> 
> I've setup a LDAP backend Samba PDC. I can gain access to shares and
> 
> login with a user that is in LDAP, but have a prblem setting up the
> roaming profile stuff. I've been trying to solve this problem for some
> time now, and have tried everything I could think of, but without much
> luck. I keep getting the following error messages:
> 
> "Windows cannot locate the server copy of your roaming profile and is
> attempting to log you on with your local profile. Changes to the profile
> will not be copied to the server when you logoff. Plausible causes of
> this error include network problem or insufficient security rights. If
> this problem persists, contact your network administrators. DETAILS -
> The network path was not found."
> 
> Followed by:
> 
> "Windows cannot find the local profile and is logging on with a tempory
> profiles. Changes to this profile will be lost when you logoff."
> 
Sorry - but I can't speak to anything about the LDAP setup as I probably 
don't know enough about it. One thing that strikes me though, is Windows 
uses DNS SRV records to locate services and populate variables. The naming 
scheme is fairly convoluted and Windows centric.

On a Windows box use network monitor to capture what the box is trying to 
do. If you see it doing a lot of look ups for SRV records and failing it 
might be something to investigate. The network monitor version that ships 
with the desktop will only grab traffic for that particular machine, but is 
enough for the purpose. The version that comes with the server is able to 
promiscuously examine all traffic.

-Mike



___
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: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE

2010-07-19 Thread David Brodbeck
On Mon, July 19, 2010 12:47 pm, Dan Nelson wrote:
> In the last episode (Jul 19), David Brodbeck said:
>> That doesn't work, unfortunately.  Once you rename ld-elf.so.1 to
>> ld-elf.so.1.old, trying to run any further commands -- even mv and cp --
>> fails with an error.  (I didn't write down which one; something about
>> failing to load the ELF interpreter, I think.) I know, I managed to
>> cripple my system that way.  I had to boot a LiveCD to recover, because
>> it
>> couldn't even load /bin/sh to get into single-user mode.
>
> A better method would be to copy (not move) the file to a backup location,
> then either use mv or install to install the new version.  Also, the
> programs in /rescue/ are statically linked so they can be used to recover
> if
> you end up losing ld-elf.so.1 or other critical shared libs.

That was actually what I tried first, but I got a file in use error when I
tried to overwrite it with the new version.

Good to know about /rescue.  I'll remember that next time something like
this happens.


___
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: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE

2010-07-19 Thread Dan Nelson
In the last episode (Jul 19), David Brodbeck said:
> On Mon, July 19, 2010 1:37 am, Timur I. Bakeyev wrote:
> > On Sun, Jul 18, 2010 at 10:42 PM, David Brodbeck  wrote:
> >> On Jul 7, 2010, at 10:12 AM, David Brodbeck wrote:
> >>> On Wed, July 7, 2010 2:20 am, mcoyles wrote:
>  David - have a look here...
>  http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016405.html
> >>>
> >>> OK, I see.  It looks like rtld is part of world, not a port, so then
> >>> the question becomes, why didn't freebsd-update update it for me?   Is
> >>> there a way I can force a binary upgrade, or do I need to download the
> >>> source and rebuild things that way?
> >>
> >> I ended up downloading the 7.3 livefs ISO, booting off of it, and
> >> replacing /libexec/ld-elf.so.1 with the one from the CD.   That fixed
> >> the problem.
> >>
> >> I suspect the reason freebsd-update didn't upgrade it properly is it
> >> appears it's impossible to replace this file on a running system, even
> >> in single-user mode.   Maybe there should be something in the release
> >> notes about a 7.2 -> 7.3 upgrade being impossible to do properly except
> >> by booting from CD?
> >
> > make installworld happily does it, so can you - by renaming file to the
> > *.old and then putting new on in it's place.  So, it could be that
> > freebsd-update isn't sophisticated enough to do such a trick.
> 
> That doesn't work, unfortunately.  Once you rename ld-elf.so.1 to
> ld-elf.so.1.old, trying to run any further commands -- even mv and cp --
> fails with an error.  (I didn't write down which one; something about
> failing to load the ELF interpreter, I think.) I know, I managed to
> cripple my system that way.  I had to boot a LiveCD to recover, because it
> couldn't even load /bin/sh to get into single-user mode.

A better method would be to copy (not move) the file to a backup location,
then either use mv or install to install the new version.  Also, the
programs in /rescue/ are statically linked so they can be used to recover if
you end up losing ld-elf.so.1 or other critical shared libs.

-- 
Dan Nelson
dnel...@allantgroup.com
___
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: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE

2010-07-19 Thread David Brodbeck
On Mon, July 19, 2010 1:37 am, Timur I. Bakeyev wrote:
> On Sun, Jul 18, 2010 at 10:42 PM, David Brodbeck  wrote:
>> On Jul 7, 2010, at 10:12 AM, David Brodbeck wrote:
>>> On Wed, July 7, 2010 2:20 am, mcoyles wrote:
 David - have a look here...
 http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016405.html
>>>
>>> OK, I see.  It looks like rtld is part of world, not a port, so then
>>> the
>>> question becomes, why didn't freebsd-update update it for me?  Is there
>>> a
>>> way I can force a binary upgrade, or do I need to download the source
>>> and
>>> rebuild things that way?
>>
>> I ended up downloading the 7.3 livefs ISO, booting off of it, and
>> replacing
>> /libexec/ld-elf.so.1 with the one from the CD.  That fixed the problem.
>>
>> I suspect the reason freebsd-update didn't upgrade it properly is it
>> appears
>> it's impossible to replace this file on a running system, even in
>> single-user mode.  Maybe there should be something in the release notes
>> about a 7.2 -> 7.3 upgrade being impossible to do properly except by
>> booting
>> from CD?
>
> make installworld happily does it, so can you - by renaming file to
> the *.old and then putting new on in it's place. So, it could be that
> freebsd-update isn't sophisticated enough to do such a trick.

That doesn't work, unfortunately.  Once you rename ld-elf.so.1 to
ld-elf.so.1.old, trying to run any further commands -- even mv and cp --
fails with an error.  (I didn't write down which one; something about
failing to load the ELF interpreter, I think.)  I know, I managed to
cripple my system that way.  I had to boot a LiveCD to recover, because it
couldn't even load /bin/sh to get into single-user mode.


___
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: samba pam_smbpass & passwd seg fault

2010-07-19 Thread Michael McGrew
Thank you for the response,

I have the latest port version of samba, samba34-3.4.8. The core does
not give much info here is a snippet of the end of the trace. Here is
a link to the end of the truss trace of the process.
http://mmcgrew.net/out


#636 0x792f6e69622f7273 in ?? ()
#637 0x0064777373617070 in ?? ()
#638 0x247c8d48002454ff in ?? ()
#639 0x01a1c0c748006a10 in ?? ()
#640 0x66fdebf4050f in ?? ()
#641 0x90909066 in ?? ()
#642 0x7fffec18 in ?? ()
#643 0x0001 in ?? ()
#644 0x7fffec28 in ?? ()
#645 0x0010 in ?? ()
Cannot access memory at address 0x8000

/var/log/messages
Jul 19 10:11:49 kernel: Jul 19 10:11:49 kernel: pid 58460 (passwd),
uid 0: exited on signal 11


On Mon, Jul 19, 2010 at 1:31 AM, Timur I. Bakeyev  wrote:
> Hi!
>
> On Mon, Jul 19, 2010 at 4:44 AM, Michael McGrew
>  wrote:
>> I'm trying to sync the local unix account passwords to the samba
>> smbpass db using pam. When i run passwd, after it's done it seg faults
>> and produces a core dump. The odd thing is that it works, the users
>> local unix password gets synced to the smbpass db, but it seg faults.
>> Below are my relevant config files. Is this a bug or am I doing
>> something wrong?
>
> The relevant information would be the version of the samba you are
> using and analysis of the coredump.
> Make sure your samba is compiled with debug information.
>
> Timur.
>
___
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: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE

2010-07-19 Thread Timur I. Bakeyev
On Sun, Jul 18, 2010 at 10:42 PM, David Brodbeck  wrote:
> On Jul 7, 2010, at 10:12 AM, David Brodbeck wrote:
>> On Wed, July 7, 2010 2:20 am, mcoyles wrote:
>>> David - have a look here...
>>> http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016405.html
>>
>> OK, I see.  It looks like rtld is part of world, not a port, so then the
>> question becomes, why didn't freebsd-update update it for me?  Is there a
>> way I can force a binary upgrade, or do I need to download the source and
>> rebuild things that way?
>
> I ended up downloading the 7.3 livefs ISO, booting off of it, and replacing
> /libexec/ld-elf.so.1 with the one from the CD.  That fixed the problem.
>
> I suspect the reason freebsd-update didn't upgrade it properly is it appears
> it's impossible to replace this file on a running system, even in
> single-user mode.  Maybe there should be something in the release notes
> about a 7.2 -> 7.3 upgrade being impossible to do properly except by booting
> from CD?

make installworld happily does it, so can you - by renaming file to
the *.old and then putting new on in it's place. So, it could be that
freebsd-update isn't sophisticated enough to do such a trick.

Timur.
___
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: samba pam_smbpass & passwd seg fault

2010-07-19 Thread Timur I. Bakeyev
Hi!

On Mon, Jul 19, 2010 at 4:44 AM, Michael McGrew
 wrote:
> I'm trying to sync the local unix account passwords to the samba
> smbpass db using pam. When i run passwd, after it's done it seg faults
> and produces a core dump. The odd thing is that it works, the users
> local unix password gets synced to the smbpass db, but it seg faults.
> Below are my relevant config files. Is this a bug or am I doing
> something wrong?

The relevant information would be the version of the samba you are
using and analysis of the coredump.
Make sure your samba is compiled with debug information.

Timur.
___
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: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE

2010-07-18 Thread David Brodbeck


On Jul 7, 2010, at 10:12 AM, David Brodbeck wrote:


On Wed, July 7, 2010 2:20 am, mcoyles wrote:
Today I tried using "portupgrade -R -f samba34" to rebuild samba  
and all
of its dependencies, but I'm still getting the same error. I'm a  
little
surprised that a minor version upgrade broke this so thoroughly.   
I went
back over the release notes to see if I missed any obvious caveats  
about

upgrading, but if I did, I'm not seeing it.


David - have a look here...
http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016405.html


OK, I see.  It looks like rtld is part of world, not a port, so then  
the
question becomes, why didn't freebsd-update update it for me?  Is  
there a
way I can force a binary upgrade, or do I need to download the  
source and

rebuild things that way?


I ended up downloading the 7.3 livefs ISO, booting off of it, and  
replacing /libexec/ld-elf.so.1 with the one from the CD.  That fixed  
the problem.


I suspect the reason freebsd-update didn't upgrade it properly is it  
appears it's impossible to replace this file on a running system, even  
in single-user mode.  Maybe there should be something in the release  
notes about a 7.2 -> 7.3 upgrade being impossible to do properly  
except by booting from CD?


___
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: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE

2010-07-07 Thread David Brodbeck
On Wed, July 7, 2010 2:20 am, mcoyles wrote:
>> Today I tried using "portupgrade -R -f samba34" to rebuild samba and all
>> of its dependencies, but I'm still getting the same error. I'm a little
>> surprised that a minor version upgrade broke this so thoroughly.  I went
>> back over the release notes to see if I missed any obvious caveats about
>> upgrading, but if I did, I'm not seeing it.
>
> David - have a look here...
> http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016405.html

OK, I see.  It looks like rtld is part of world, not a port, so then the
question becomes, why didn't freebsd-update update it for me?  Is there a
way I can force a binary upgrade, or do I need to download the source and
rebuild things that way?


___
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: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE

2010-07-07 Thread mcoyles
> Today I tried using "portupgrade -R -f samba34" to rebuild samba and all
> of its dependencies, but I'm still getting the same error. I'm a little
> surprised that a minor version upgrade broke this so thoroughly.  I went
> back over the release notes to see if I missed any obvious caveats about
> upgrading, but if I did, I'm not seeing it.

David - have a look here...
http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016405.html


Cheers!
Marci

___
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: Samba gives "invalid PT_PHDR" after upgrading from 7.2-RELEASE to 7.3-RELEASE

2010-07-06 Thread David Brodbeck
On Sat, July 3, 2010 2:49 pm, David Brodbeck wrote:
> Today I upgraded my system from FreeBSD 7.2-RELEASE to FreeBSD 7.3-
> RELEASE using freebsd-update. Samba no longer runs.  I get the
> following error messages:
>
> Starting nmbd.
> /libexec/ld-elf.so.1: /usr/local/sbin/nmbd: invalid PT_PHDR
> Starting smbd.
> /libexec/ld-elf.so.1: /usr/local/sbin/smbd: invalid PT_PHDR
>
> My upgrade sequence was to run 'freebsd-update upgrade -r 7.3-RELEASE'
> and 'freebsd-update install', followed by a reboot, then 'freebsd-
> update install' again, followed by a second reboot.
>
> I tried rebuilding the Samba port, thinking maybe it was an ABI
> change, but it still doesn't work.  Can someone point me in the right
> direction?

Today I tried using "portupgrade -R -f samba34" to rebuild samba and all
of its dependencies, but I'm still getting the same error. I'm a little
surprised that a minor version upgrade broke this so thoroughly.  I went
back over the release notes to see if I missed any obvious caveats about
upgrading, but if I did, I'm not seeing it.

___
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: Samba 3.5.2 with/out aio on FreeBSD 7.2

2010-05-05 Thread Gabor Radnai
Guys, arrogance and bad humor is not very helpful ...

Pls read again: I have a working version 3.4.5 _with_ aio. So, yes I know
what I am doing and yes, aio module is loaded. And yes, I know google. And
as I am asking here then no, I have not found any help yet.

My problem is that when using version 3.5.2 (which was compiled with
aio-support on and still aio module is loaded) I get this error message
below.

Any real help?

Thanks.

On Wed, May 5, 2010 at 6:59 PM, Matthias  wrote:

> Guess that's the Russian way to say google is your best friend...:P
>
> @gabor:
> did you load the AIO module?
>
>
> On 5 mei 2010, at 17:58, Timur I. Bakeyev wrote:
>
> > The real answer would be: if you don't know, what you are doing -
> > don't compile from source.
> >
> > Timur.
> >
> > On Tue, Apr 27, 2010 at 10:44 PM, Gabor Radnai 
> wrote:
> >> Hi,
> >>
> >> I have a FreeBSD 7.2/amd64 machine with Samba 3.4.5 with aio support
> >> enabled. If I try to upgrade to Samba 3.5.2 from source aio support
> compiles
> >> but I receive "Abnormal server exit: Failed to setup RT_SIGNAL_AIO
> handler"
> >> fatal error from smbd. Without aio 3.5.2 too works nice.
> >>
> >> Did somebody successfully compiled and run Samba 3.5.2 with aio enabled?
> >> What special compile/runtime option would be required to enable aio?
> >>
> >> Thanks.
>
___
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: Samba 3.5.2 with/out aio on FreeBSD 7.2

2010-05-05 Thread Matthias
Guess that's the Russian way to say google is your best friend...:P

@gabor:
did you load the AIO module?


On 5 mei 2010, at 17:58, Timur I. Bakeyev wrote:

> The real answer would be: if you don't know, what you are doing -
> don't compile from source.
> 
> Timur.
> 
> On Tue, Apr 27, 2010 at 10:44 PM, Gabor Radnai  wrote:
>> Hi,
>> 
>> I have a FreeBSD 7.2/amd64 machine with Samba 3.4.5 with aio support
>> enabled. If I try to upgrade to Samba 3.5.2 from source aio support compiles
>> but I receive "Abnormal server exit: Failed to setup RT_SIGNAL_AIO handler"
>> fatal error from smbd. Without aio 3.5.2 too works nice.
>> 
>> Did somebody successfully compiled and run Samba 3.5.2 with aio enabled?
>> What special compile/runtime option would be required to enable aio?
>> 
>> Thanks.
>> ___
>> 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"
>> 
> ___
> 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"

___
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: Samba 3.5.2 with/out aio on FreeBSD 7.2

2010-05-05 Thread Timur I. Bakeyev
The real answer would be: if you don't know, what you are doing -
don't compile from source.

Timur.

On Tue, Apr 27, 2010 at 10:44 PM, Gabor Radnai  wrote:
> Hi,
>
> I have a FreeBSD 7.2/amd64 machine with Samba 3.4.5 with aio support
> enabled. If I try to upgrade to Samba 3.5.2 from source aio support compiles
> but I receive "Abnormal server exit: Failed to setup RT_SIGNAL_AIO handler"
> fatal error from smbd. Without aio 3.5.2 too works nice.
>
> Did somebody successfully compiled and run Samba 3.5.2 with aio enabled?
> What special compile/runtime option would be required to enable aio?
>
> Thanks.
> ___
> 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"
>
___
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: samba failed MD5 Checksum

2010-04-04 Thread pluknet
On 4 April 2010 11:02, gahn  wrote:
> Hi all:
>
> I am trying to compile the smaba34 but somehow it failed MD5 Checksum and 
> SHA256 Checksum:
>
> 
> # make all
> ===>  Vulnerability check disabled, database not found
> ===>  Found saved configuration for samba34-3.4.5_1
> ===>  ---
> ===>  Run 'make config' to (re)configure the port
> ===>  ---
> ===>  Extracting for samba34-3.4.5_1
> => MD5 Checksum mismatch for samba-3.4.5.tar.gz.
> => SHA256 Checksum mismatch for samba-3.4.5.tar.gz.
> ===>  Refetch for 1 more times files: samba-3.4.5.tar.gz samba-3.4.5.tar.gz
> ===>  Vulnerability check disabled, database not found
> ===>  Found saved configuration for samba34-3.4.5_1
> ===>  ---
> ===>  Run 'make config' to (re)configure the port
> ===>  ---
> => samba-3.4.5.tar.gz doesn't seem to exist in /usr/ports/distfiles/.
> 
> -
>
> actually "samba-3.4.5.tar.gz" does exist under /usr/ports/distfiles
>

Looks like you have partially fetched distfile. Try to make distclean,
then restart again.


-- 
wbr,
pluknet
___
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: Samba read speed performance tuning

2010-03-20 Thread Dan Naumov
On Sat, Mar 20, 2010 at 3:49 AM, Gary Gatten  wrote:
> It MAY make a big diff, but make sure during your tests you use unique files 
> or flush the cache or you'll me testing cache speed and not disk speed.

Yeah I did make sure to use unique files for testing the effects of
prefetch. This is Atom D510 / Supermicro X75SPA-H / 4Gb Ram with 2 x
slow 2tb WD Green (WD20EADS) disks with 32mb cache in a ZFS mirror
after enabling prefetch.:
Code:

bonnie -s 8192

  ---Sequential Output ---Sequential Input-- --Random--
  -Per Char- --Block--- -Rewrite-- -Per Char- --Block--- --Seeks---
MachineMB K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU K/sec %CPU  /sec %CPU
 8192 29065 68.9 52027 39.8 39636 33.3 54057 95.4
105335 34.6 174.1 7.9

DD read:
dd if=/dev/urandom of=test2 bs=1M count=8192
dd if=test2 of=/dev/zero bs=1M
8589934592 bytes transferred in 76.031399 secs (112978779 bytes/sec)
(107,74mb/s)


Individual disks read capability: 75mb/s
Reading off a mirror of 2 disks with prefetch disabled: 60mb/s
Reading off a mirror of 2 disks with prefetch enabled: 107mb/s


- Sincerely,
Dan Naumov
___
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: Samba read speed performance tuning

2010-03-19 Thread Adam Vande More
On Fri, Mar 19, 2010 at 8:28 PM, Dan Naumov  wrote:

> Oh my god... Why did noone tell me how much of an enormous performance
> boost vfs.zfs.prefetch_disable=0 (aka actually enabling prefetch) is.
> My local reads off the mirror pool jumped from 75mb/s to 96mb/s (ie.
> they are now nearly 25% faster than reading off an individual disk)
> and reads off a Samba share skyrocketed from 50mb/s to 90mb/s.
>
> By default, FreeBSD sets vfs.zfs.prefetch_disable to 1 on any i386
> systems and on any amd64 systems with less than 4GB of avaiable
> memory. My system is amd64 with 4gb ram, but integrated video eats
> some of that, so the autotuning disabled the prefetch. I had read up
> on it and a fair amount of people seemed to have performance issues
> caused by having prefetch enabled and get better results with it
> turned off, in my case however, it seems that enabling it gave a
> really solid boost to performance.
>

My home VBox server is similar specs and I enabled the prefetch from the
start.  A few days ago, I added an intel SSD as the zpool cache device and
the read speed is mind blowing now.  This is from inside a VM frunning on it
meaning ad0 is really a vdi. Once the cache is populated, HD latency is
mostly a thing of the past.

# diskinfo -tv /dev/ad0
/dev/ad0
512 # sectorsize
12884901888 # mediasize in bytes (12G)
25165824# mediasize in sectors
24966   # Cylinders according to firmware.
16  # Heads according to firmware.
63  # Sectors according to firmware.
VBf9752473-05343e4e # Disk ident.

Seek times:
Full stroke:  250 iter in   0.082321 sec =0.329 msec
Half stroke:  250 iter in   0.078944 sec =0.316 msec
Quarter stroke:   500 iter in   0.161266 sec =0.323 msec
Short forward:400 iter in   0.128624 sec =0.322 msec
Short backward:   400 iter in   0.131770 sec =0.329 msec
Seq outer:   2048 iter in   0.667510 sec =0.326 msec
Seq inner:   2048 iter in   0.691691 sec =0.338 msec
Transfer rates:
outside:   102400 kbytes in   0.722864 sec =   141659 kbytes/sec
middle:102400 kbytes in   0.813619 sec =   125857 kbytes/sec
inside:102400 kbytes in   0.838129 sec =   122177 kbytes/sec



-- 
Adam Vande More
___
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: Samba read speed performance tuning

2010-03-19 Thread Gary Gatten
It MAY make a big diff, but make sure during your tests you use unique files or 
flush the cache or you'll me testing cache speed and not disk speed.

- Original Message -
From: owner-freebsd-questi...@freebsd.org 
To: freebsd-...@freebsd.org ; 
freebsd-questions@freebsd.org ; FreeBSD-STABLE 
Mailing List ; freebsd-performa...@freebsd.org 

Sent: Fri Mar 19 20:28:02 2010
Subject: Re: Samba read speed performance tuning

On Fri, Mar 19, 2010 at 11:14 PM, Dan Naumov  wrote:
> On a FreeBSD 8.0-RELEASE/amd64 system with a Supermicro X7SPA-H board
> using an Intel gigabit nic with the em driver, running on top of a ZFS
> mirror, I was seeing a strange issue. Local reads and writes to the
> pool easily saturate the disks with roughly 75mb/s throughput, which
> is roughly the best these drives can do. However, working with Samba,
> writes to a share could easily pull off 75mb/s and saturate the disks,
> but reads off a share were resulting in rather pathetic 18mb/s
> throughput.
>
> I found a threadon the FreeBSD forums
> (http://forums.freebsd.org/showthread.php?t=9187) and followed the
> suggested advice. I rebuilt Samba with AIO support, kldloaded the aio
> module and made the following changes to my smb.conf
>
> From:
> socket options=TCP_NODELAY
>
> To:
> socket options=SO_RCVBUF=131072 SO_SNDBUF=131072 TCP_NODELAY
> min receivefile size=16384
> use sendfile=true
> aio read size = 16384
> aio write size = 16384
> aio write behind = true
> dns proxy = no[/CODE]
>
> This showed a very welcome improvement in read speed, I went from
> 18mb/s to 48mb/s. The write speed remained unchanged and was still
> saturating the disks. Now I tried the suggested sysctl tunables:
>
> atombsd# sysctl net.inet.tcp.delayed_ack=0
> net.inet.tcp.delayed_ack: 1 -> 0
>
> atombsd# sysctl net.inet.tcp.path_mtu_discovery=0
> net.inet.tcp.path_mtu_discovery: 1 -> 0
>
> atombsd# sysctl net.inet.tcp.recvbuf_inc=524288
> net.inet.tcp.recvbuf_inc: 16384 -> 524288
>
> atombsd# sysctl net.inet.tcp.recvbuf_max=16777216
> net.inet.tcp.recvbuf_max: 262144 -> 16777216
>
> atombsd# sysctl net.inet.tcp.sendbuf_inc=524288
> net.inet.tcp.sendbuf_inc: 8192 -> 524288
>
> atombsd# sysctl net.inet.tcp.sendbuf_max=16777216
> net.inet.tcp.sendbuf_max: 262144 -> 16777216
>
> atombsd# sysctl net.inet.tcp.sendspace=65536
> net.inet.tcp.sendspace: 32768 -> 65536
>
> atombsd# sysctl net.inet.udp.maxdgram=57344
> net.inet.udp.maxdgram: 9216 -> 57344
>
> atombsd# sysctl net.inet.udp.recvspace=65536
> net.inet.udp.recvspace: 42080 -> 65536
>
> atombsd# sysctl net.local.stream.recvspace=65536
> net.local.stream.recvspace: 8192 -> 65536
>
> atombsd# sysctl net.local.stream.sendspace=65536
> net.local.stream.sendspace: 8192 -> 65536
>
> This improved the read speeds a further tiny bit, now I went from
> 48mb/s to 54mb/s. This is it however, I can't figure out how to
> increase Samba read speed any further. Any ideas?


Oh my god... Why did noone tell me how much of an enormous performance
boost vfs.zfs.prefetch_disable=0 (aka actually enabling prefetch) is.
My local reads off the mirror pool jumped from 75mb/s to 96mb/s (ie.
they are now nearly 25% faster than reading off an individual disk)
and reads off a Samba share skyrocketed from 50mb/s to 90mb/s.

By default, FreeBSD sets vfs.zfs.prefetch_disable to 1 on any i386
systems and on any amd64 systems with less than 4GB of avaiable
memory. My system is amd64 with 4gb ram, but integrated video eats
some of that, so the autotuning disabled the prefetch. I had read up
on it and a fair amount of people seemed to have performance issues
caused by having prefetch enabled and get better results with it
turned off, in my case however, it seems that enabling it gave a
really solid boost to performance.


- Sincerely
Dan Naumov
___
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"








"This email is intended to be reviewed by only the intended recipient
 and may contain information that is privileged and/or confidential.
 If you are not the intended recipient, you are hereby notified that
 any review, use, dissemination, disclosure or copying of this email
 and its attachments, if any, is strictly prohibited.  If you have
 received this email in error, please immediately notify the sender by
 return email and delete this email from your system."


___
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: Samba read speed performance tuning

2010-03-19 Thread Dan Naumov
On Fri, Mar 19, 2010 at 11:14 PM, Dan Naumov  wrote:
> On a FreeBSD 8.0-RELEASE/amd64 system with a Supermicro X7SPA-H board
> using an Intel gigabit nic with the em driver, running on top of a ZFS
> mirror, I was seeing a strange issue. Local reads and writes to the
> pool easily saturate the disks with roughly 75mb/s throughput, which
> is roughly the best these drives can do. However, working with Samba,
> writes to a share could easily pull off 75mb/s and saturate the disks,
> but reads off a share were resulting in rather pathetic 18mb/s
> throughput.
>
> I found a threadon the FreeBSD forums
> (http://forums.freebsd.org/showthread.php?t=9187) and followed the
> suggested advice. I rebuilt Samba with AIO support, kldloaded the aio
> module and made the following changes to my smb.conf
>
> From:
> socket options=TCP_NODELAY
>
> To:
> socket options=SO_RCVBUF=131072 SO_SNDBUF=131072 TCP_NODELAY
> min receivefile size=16384
> use sendfile=true
> aio read size = 16384
> aio write size = 16384
> aio write behind = true
> dns proxy = no[/CODE]
>
> This showed a very welcome improvement in read speed, I went from
> 18mb/s to 48mb/s. The write speed remained unchanged and was still
> saturating the disks. Now I tried the suggested sysctl tunables:
>
> atombsd# sysctl net.inet.tcp.delayed_ack=0
> net.inet.tcp.delayed_ack: 1 -> 0
>
> atombsd# sysctl net.inet.tcp.path_mtu_discovery=0
> net.inet.tcp.path_mtu_discovery: 1 -> 0
>
> atombsd# sysctl net.inet.tcp.recvbuf_inc=524288
> net.inet.tcp.recvbuf_inc: 16384 -> 524288
>
> atombsd# sysctl net.inet.tcp.recvbuf_max=16777216
> net.inet.tcp.recvbuf_max: 262144 -> 16777216
>
> atombsd# sysctl net.inet.tcp.sendbuf_inc=524288
> net.inet.tcp.sendbuf_inc: 8192 -> 524288
>
> atombsd# sysctl net.inet.tcp.sendbuf_max=16777216
> net.inet.tcp.sendbuf_max: 262144 -> 16777216
>
> atombsd# sysctl net.inet.tcp.sendspace=65536
> net.inet.tcp.sendspace: 32768 -> 65536
>
> atombsd# sysctl net.inet.udp.maxdgram=57344
> net.inet.udp.maxdgram: 9216 -> 57344
>
> atombsd# sysctl net.inet.udp.recvspace=65536
> net.inet.udp.recvspace: 42080 -> 65536
>
> atombsd# sysctl net.local.stream.recvspace=65536
> net.local.stream.recvspace: 8192 -> 65536
>
> atombsd# sysctl net.local.stream.sendspace=65536
> net.local.stream.sendspace: 8192 -> 65536
>
> This improved the read speeds a further tiny bit, now I went from
> 48mb/s to 54mb/s. This is it however, I can't figure out how to
> increase Samba read speed any further. Any ideas?


Oh my god... Why did noone tell me how much of an enormous performance
boost vfs.zfs.prefetch_disable=0 (aka actually enabling prefetch) is.
My local reads off the mirror pool jumped from 75mb/s to 96mb/s (ie.
they are now nearly 25% faster than reading off an individual disk)
and reads off a Samba share skyrocketed from 50mb/s to 90mb/s.

By default, FreeBSD sets vfs.zfs.prefetch_disable to 1 on any i386
systems and on any amd64 systems with less than 4GB of avaiable
memory. My system is amd64 with 4gb ram, but integrated video eats
some of that, so the autotuning disabled the prefetch. I had read up
on it and a fair amount of people seemed to have performance issues
caused by having prefetch enabled and get better results with it
turned off, in my case however, it seems that enabling it gave a
really solid boost to performance.


- Sincerely
Dan Naumov
___
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: Samba PDC with LDAP backend

2009-09-07 Thread Ruben de Groot
On Fri, Sep 04, 2009 at 02:43:00PM +0700, Olivier Nicole typed:
> Hi Ruel,
> 
> > But, I have one question left..
> > How do you join the Windows xp client on the domain? Is there another tweak
> > must be done?
> 
> The same way a PC would join any samba domain.
> 
> The PC joining Samba does not know that Samba is using LDAP or
> anything else for authentication, so the PC talks to Samba the way it
> always does/did.
> 
> (I managed, with some effort, to replace one Samba server
> authenticating to Unix /etc/passwd, by a Samba server authenticating
> with LDAP, without the XP clients noticing, that is nothing at all to
> be done on XP).

Yes, I have a script that does precisely this (read master.passwd, smbpasswd
and group and create an LDIF to import into LDAP. This is now being used for
the migration of 1200 samba servers from backend=smbpasswd to backend=ldapsam.

Most important things is preserving the SID's (net getlocalsid) and group 
mappings
(net groupmap list). Windows clients will not notice any difference.

Ruben
___
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: Samba PDC with LDAP backend

2009-09-04 Thread Ruel Luchavez
On Mon, Jul 20, 2009 at 6:51 PM, Ruben de Groot  wrote:

> On Mon, Jul 20, 2009 at 06:22:50PM +0800, Ruel Luchavez typed:
> >
> > But to some one out their who has an idea to this
> >
> > you are very much WELCOME:-)
>
> I think this was mentioned before, but did you have to edit
> /usr/local/etc/smbldap-tools/smbldap.conf and
> /usr/local/etc/smbldap-tools/smbldap_bind.conf
>
> Ruben
>
>
Wew...after a long weeks of searching I finally solve my own problem..
Lucky for me..

But, I have one question left..
How do you join the Windows xp client on the domain? Is there another tweak
must be done?


-- 
Regards,

rHueL
Happy BSD user...
Country:Philippines
___
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: Samba and busy network

2009-08-29 Thread Saifi Khan
On Fri, 28 Aug 2009, stan wrote:

> I have a FreeBSD machine serving as (among other  things) a Samba server
> for an XP instance running under VirtualBox. The XP application is a data
> gathering one that polls continuously. I have set up things so that XP
> mounts the Samba share, and logs it's data there.
> 
> Problem is that every morning I come in to find that the XP app is
> complaining of disk problems from the share. I am fairly certain that this
> problem is occurring in the middle of the night, when my Amanda backups run.
> This does load the network fairly good. The FreeBSD box, and the Linux box
> are on the same switch, and same subnet. Anyone have suggestions as to how
> to address this issue?
> 
> 

Can you please share error logs on the xp share side ?

What is the backup set size that Amanda is handling ?


thanks
Saifi.

___
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: Samba PDC with LDAP backend

2009-07-20 Thread Ruben de Groot
On Mon, Jul 20, 2009 at 06:22:50PM +0800, Ruel Luchavez typed:
> 
> But to some one out their who has an idea to this
> 
> you are very much WELCOME:-)

I think this was mentioned before, but did you have to edit
/usr/local/etc/smbldap-tools/smbldap.conf and
/usr/local/etc/smbldap-tools/smbldap_bind.conf

Ruben

___
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: Samba PDC with LDAP backend

2009-07-20 Thread Ruel Luchavez
On Mon, Jul 20, 2009 at 6:21 PM, Ruel Luchavez wrote:

>
>
> On Mon, Jul 20, 2009 at 6:17 PM, Olivier Nicole  wrote:
>
>> > #smbldap-populate -u 1 -g 1 -r 1
>> > Populating LDAP directory for domain MYDOMAIN
>> > (S-1-5-21-2772587264-3389604304-3649373591)
>> > (using builtin directory structure)
>> >
>> > adding new entry: dc=mydomain,dc=local
>> > failed to add entry: modifications require authentication at
>>
>> In fact the script smbldap-populate hangs here, see, it mentions the
>> authentication error at the begining.
>>
>> I never used smbldap-populate, but I beleive that to have it wiork,
>> you must configure/edit that script and define a password somewhere.
>>
>> I beleive you would also have to configure the domain name, unless you
>> want to keep MYDOMAIN (see line number two).
>>
>> As I suggested few days ago, you should try to do a ldapsearch and get
>> a result from it first.
>>
>> Samba is not something simple to configure. LDAP neither, so you
>> better go step by step.
>>
>> Good luck,
>>
>> Olivier
>>
>
>
> Well Thanks for your insight Oliver!
>
> I think your right that Samba is not something simple to configure neither
> LDAP too..
> Wheeew..
>
>
> I'll try my luck here because I started this already..
>
>
> Anyway...Thanks..
>
>
>
> --
> rHueL
> FreeBSD user since 6.0
> Happy BSD use...
> Country:Philippines
> Zip Code:8000
>


But to some one out their who has an idea to this

you are very much WELCOME:-)


-- 
rHueL
FreeBSD user since 6.0
Happy BSD use...
Country:Philippines
Zip Code:8000
___
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: Samba PDC with LDAP backend

2009-07-20 Thread Ruel Luchavez
On Mon, Jul 20, 2009 at 6:17 PM, Olivier Nicole  wrote:

> > #smbldap-populate -u 1 -g 1 -r 1
> > Populating LDAP directory for domain MYDOMAIN
> > (S-1-5-21-2772587264-3389604304-3649373591)
> > (using builtin directory structure)
> >
> > adding new entry: dc=mydomain,dc=local
> > failed to add entry: modifications require authentication at
>
> In fact the script smbldap-populate hangs here, see, it mentions the
> authentication error at the begining.
>
> I never used smbldap-populate, but I beleive that to have it wiork,
> you must configure/edit that script and define a password somewhere.
>
> I beleive you would also have to configure the domain name, unless you
> want to keep MYDOMAIN (see line number two).
>
> As I suggested few days ago, you should try to do a ldapsearch and get
> a result from it first.
>
> Samba is not something simple to configure. LDAP neither, so you
> better go step by step.
>
> Good luck,
>
> Olivier
>


Well Thanks for your insight Oliver!

I think your right that Samba is not something simple to configure neither
LDAP too..
Wheeew..


I'll try my luck here because I started this already..


Anyway...Thanks..


-- 
rHueL
FreeBSD user since 6.0
Happy BSD use...
Country:Philippines
Zip Code:8000
___
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: Samba PDC with LDAP backend

2009-07-20 Thread Olivier Nicole
> #smbldap-populate -u 1 -g 1 -r 1
> Populating LDAP directory for domain MYDOMAIN
> (S-1-5-21-2772587264-3389604304-3649373591)
> (using builtin directory structure)
> 
> adding new entry: dc=mydomain,dc=local
> failed to add entry: modifications require authentication at

In fact the script smbldap-populate hangs here, see, it mentions the
authentication error at the begining.

I never used smbldap-populate, but I beleive that to have it wiork,
you must configure/edit that script and define a password somewhere.

I beleive you would also have to configure the domain name, unless you
want to keep MYDOMAIN (see line number two).

As I suggested few days ago, you should try to do a ldapsearch and get
a result from it first.

Samba is not something simple to configure. LDAP neither, so you
better go step by step.

Good luck,

Olivier
___
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: {Disarmed} Re: Samba PDC with LDAP backend

2009-07-20 Thread Johan Hendriks

There is an improvement...
this is my current /etc/rc.conf

slapd_enable=YES
slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/
ldap://MailScanner warning: numerical links are often malicious:
127.0.0.1/   ldap://MailScanner warning: numerical
links are often malicious: 192.168.5.200/  "'
slapd_sockets="/var/run/openldap/ldapi"

samba_enable="YES"
winbindd_enable="YES"
cupsd_enable="YES"



and this is the output of ps -aux | grep slap

#ps -aux | grep slap
ldap   1667  0.0  6.7 345832  7936  ??  Ss5:24PM   0:01.18
/usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fopenldap%2fldapi/
ldap://MailScanner warning: numerical links are often malicious:
127.0.0.1/   ldap://MailScanner warning: numerical
links are often malicious: 192.168.5.200/   -u ld

root   1794  0.0  0.2   388   268  p0  R+5:32PM   0:00.00 grep slap

Well regarding what Oliver said "I see no ldaps:// in the command, but
one in the ps, that is strange!"
I think it is solve now! Am I right?

Then I populate the database, unfortunate there another error and I
can't understand the code in smbldap_tools.pm! Her's the output of the
box

#smbldap-populate -u 1 -g 1 -r 1
Populating LDAP directory for domain MYDOMAIN
(S-1-5-21-2772587264-3389604304-3649373591)
(using builtin directory structure)

adding new entry: dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 466.
adding new entry: ou=People,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 12.
adding new entry: ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 17.
adding new entry: ou=Computers,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 22.
adding new entry: ou=Idmap,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 27.
adding new entry: uid=root,ou=People,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 58.
adding new entry: uid=nobody,ou=People,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 89.
adding new entry: cn=Domain Admins,ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 101.
adding new entry: cn=Domain Users,ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 112.
adding new entry: cn=Domain Guests,ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 123.
adding new entry: cn=Domain Computers,ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 134.
adding new entry: cn=Administrators,ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 179.
adding new entry: cn=Account Operators,ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 201.
adding new entry: cn=Print Operators,ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 212.
adding new entry: cn=Backup Operators,ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 223.
adding new entry: cn=Replicators,ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 234.
adding new entry: sambaDomainName=MYDOMAIN,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 242.

Please provide a password for the domain root:
No such object at /usr/local/lib/perl5/site_perl/5.8.9/smbldap_tools.pm
line 406,  line 466.

# return (success, dn ) <<--and this is the line at 466 of
smbldap_tools.pm

What does it mean??
I can't type the password for the domain root cause it ends up there...

You guys are great...FreeBSD Rock

Thanks...
-- 
rHueL
FreeBSD user since 6.0
Happy BSD use...
Country:Philippines
Zip Code:8000

 

 

Ok did you do these steps of my howto.



Configuration

Prepare the openldap config file (/usr/local/etc/openl

Re: Samba PDC with LDAP backend

2009-07-20 Thread Ruel Luchavez
On Mon, Jul 20, 2009 at 5:10 PM, Ruel Luchavez wrote:

>
>
> On Mon, Jul 20, 2009 at 4:55 PM, Polytropon  wrote:
>
>> On Mon, 20 Jul 2009 16:50:48 +0800, Ruel Luchavez 
>> wrote:
>> > On Mon, Jul 20, 2009 at 4:35 PM, Olivier Nicole 
>> wrote:
>> > > > I know this is running
>> > > >  >>slapd_flags='-h \"ldapi://%2fvar%2frun%2fopenldap%2fldapi/
>> > > > ldap://0.0.0.0/ ldap://127.0.0.1/\";'
>> > > >
>> > > > as is issue a command ps -aux | grep slap, hers whats the box give
>> to me
>> > > > #ps -aux | grep slap
>> > > > ldap   1273  0.0  6.6 341992  7816  ??  Is4:17PM   0:00.14
>> > > > /usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fopenldap%2fldapi/
>> > > > ldaps://127.0.0.1/ ldap://192.168.5.200/ -u l
>> > >
>> > > I see no ldaps:// in the command, but one in the ps, that is strange!
>> > >
>> > > Olivier
>> > >
>> >
>> > Hey
>> > What do you mean you dont see no ldaps://
>>
>>
>> slapd_flags:
>>f1 = ldapi://%2fvar%2frun%2fopenldap%2fldapi/
>>f2 = ldap://0.0.0.0/
>>f3 = ldap://127.0.0.1/
>>
>> ps output:
>>p1 = ldapi://%2fvar%2frun%2fopenldap%2fldapi/
>>p2 = ldaps://127.0.0.1/
>>p3 = ldap://192.168.5.200/
>>
>> Compage f3 to p2: ldap://127.0.0.1/ vs. ldaps://127.0.0.1/
>>
>>
>> --
>> Polytropon
>> From Magdeburg, Germany
>> Happy FreeBSD user since 4.0
>> Andra moi ennepe, Mousa, ...
>>
>
> Thanks Polytropon
>
> I get the point..
>
> H...where did i mess up...
> I'll try to triple check all the config..
>
>
>
>
> --
> rHueL
> FreeBSD user since 6.0
> Happy BSD use...
> Country:Philippines
> Zip Code:8000
>

Hey guys...

There is an improvement...
this is my current /etc/rc.conf

slapd_enable=YES
slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/
ldap://127.0.0.1/ldap://
192.168.5.200/"'
slapd_sockets="/var/run/openldap/ldapi"

samba_enable="YES"
winbindd_enable="YES"
cupsd_enable="YES"


and this is the output of ps -aux | grep slap

#ps -aux | grep slap
ldap   1667  0.0  6.7 345832  7936  ??  Ss5:24PM   0:01.18
/usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://
127.0.0.1/ ldap://192.168.5.200/ -u ld

root   1794  0.0  0.2   388   268  p0  R+5:32PM   0:00.00 grep slap

Well regarding what Oliver said "I see no ldaps:// in the command, but one
in the ps, that is strange!"
I think it is solve now! Am I right?

Then I populate the database, unfortunate there another error and I can't
understand the code in smbldap_tools.pm! Her's the output of the box

#smbldap-populate -u 1 -g 1 -r 1
Populating LDAP directory for domain MYDOMAIN
(S-1-5-21-2772587264-3389604304-3649373591)
(using builtin directory structure)

adding new entry: dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 466.
adding new entry: ou=People,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 12.
adding new entry: ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 17.
adding new entry: ou=Computers,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 22.
adding new entry: ou=Idmap,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 27.
adding new entry: uid=root,ou=People,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 58.
adding new entry: uid=nobody,ou=People,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 89.
adding new entry: cn=Domain Admins,ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 101.
adding new entry: cn=Domain Users,ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 112.
adding new entry: cn=Domain Guests,ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 123.
adding new entry: cn=Domain Computers,ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 134.
adding new entry: cn=Administrators,ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 179.
adding new entry: cn=Account Operators,ou=Groups,dc=mydomain,dc=local
failed to add entry: modifications require authentication at
/usr/local/sbin/smbldap-populate line 498,  line 201.

Re: Samba PDC with LDAP backend

2009-07-20 Thread Ruel Luchavez
On Mon, Jul 20, 2009 at 4:55 PM, Polytropon  wrote:

> On Mon, 20 Jul 2009 16:50:48 +0800, Ruel Luchavez 
> wrote:
> > On Mon, Jul 20, 2009 at 4:35 PM, Olivier Nicole  wrote:
> > > > I know this is running
> > > >  >>slapd_flags='-h \"ldapi://%2fvar%2frun%2fopenldap%2fldapi/
> > > > ldap://0.0.0.0/ ldap://127.0.0.1/\";'
> > > >
> > > > as is issue a command ps -aux | grep slap, hers whats the box give to
> me
> > > > #ps -aux | grep slap
> > > > ldap   1273  0.0  6.6 341992  7816  ??  Is4:17PM   0:00.14
> > > > /usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fopenldap%2fldapi/
> > > > ldaps://127.0.0.1/ ldap://192.168.5.200/ -u l
> > >
> > > I see no ldaps:// in the command, but one in the ps, that is strange!
> > >
> > > Olivier
> > >
> >
> > Hey
> > What do you mean you dont see no ldaps://
>
>
> slapd_flags:
>f1 = ldapi://%2fvar%2frun%2fopenldap%2fldapi/
>f2 = ldap://0.0.0.0/
>f3 = ldap://127.0.0.1/
>
> ps output:
>p1 = ldapi://%2fvar%2frun%2fopenldap%2fldapi/
>p2 = ldaps://127.0.0.1/
>p3 = ldap://192.168.5.200/
>
> Compage f3 to p2: ldap://127.0.0.1/ vs. ldaps://127.0.0.1/
>
>
> --
> Polytropon
> From Magdeburg, Germany
> Happy FreeBSD user since 4.0
> Andra moi ennepe, Mousa, ...
>

Thanks Polytropon

I get the point..

H...where did i mess up...
I'll try to triple check all the config..



-- 
rHueL
FreeBSD user since 6.0
Happy BSD use...
Country:Philippines
Zip Code:8000
___
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: Samba PDC with LDAP backend

2009-07-20 Thread Polytropon
On Mon, 20 Jul 2009 16:50:48 +0800, Ruel Luchavez  
wrote:
> On Mon, Jul 20, 2009 at 4:35 PM, Olivier Nicole  wrote:
> > > I know this is running
> > >  >>slapd_flags='-h \"ldapi://%2fvar%2frun%2fopenldap%2fldapi/
> > > ldap://0.0.0.0/ ldap://127.0.0.1/\";'
> > >
> > > as is issue a command ps -aux | grep slap, hers whats the box give to me
> > > #ps -aux | grep slap
> > > ldap   1273  0.0  6.6 341992  7816  ??  Is4:17PM   0:00.14
> > > /usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fopenldap%2fldapi/
> > > ldaps://127.0.0.1/ ldap://192.168.5.200/ -u l
> >
> > I see no ldaps:// in the command, but one in the ps, that is strange!
> >
> > Olivier
> >
> 
> Hey
> What do you mean you dont see no ldaps://


slapd_flags:
f1 = ldapi://%2fvar%2frun%2fopenldap%2fldapi/
f2 = ldap://0.0.0.0/
f3 = ldap://127.0.0.1/

ps output:
p1 = ldapi://%2fvar%2frun%2fopenldap%2fldapi/
p2 = ldaps://127.0.0.1/
p3 = ldap://192.168.5.200/

Compage f3 to p2: ldap://127.0.0.1/ vs. ldaps://127.0.0.1/


-- 
Polytropon
>From Magdeburg, Germany
Happy FreeBSD user since 4.0
Andra moi ennepe, Mousa, ...
___
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: Samba PDC with LDAP backend

2009-07-20 Thread Ruel Luchavez
On Mon, Jul 20, 2009 at 4:35 PM, Olivier Nicole  wrote:

> > I know this is running
> >  >>slapd_flags='-h \"ldapi://%2fvar%2frun%2fopenldap%2fldapi/
> > ldap://0.0.0.0/ ldap://127.0.0.1/\";'
> >
> > as is issue a command ps -aux | grep slap, hers whats the box give to me
> > #ps -aux | grep slap
> > ldap   1273  0.0  6.6 341992  7816  ??  Is4:17PM   0:00.14
> > /usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fopenldap%2fldapi/
> > ldaps://127.0.0.1/ ldap://192.168.5.200/ -u l
>
> I see no ldaps:// in the command, but one in the ps, that is strange!
>
> Olivier
>

Hey
What do you mean you dont see no ldaps://

-- 
rHueL
FreeBSD user since 6.0
Happy BSD use...
Country:Philippines
Zip Code:8000
___
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: Samba PDC with LDAP backend

2009-07-20 Thread Olivier Nicole
> I know this is running
>  >>slapd_flags='-h \"ldapi://%2fvar%2frun%2fopenldap%2fldapi/
> ldap://0.0.0.0/ ldap://127.0.0.1/\";'
> 
> as is issue a command ps -aux | grep slap, hers whats the box give to me
> #ps -aux | grep slap
> ldap   1273  0.0  6.6 341992  7816  ??  Is4:17PM   0:00.14
> /usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fopenldap%2fldapi/
> ldaps://127.0.0.1/ ldap://192.168.5.200/ -u l

I see no ldaps:// in the command, but one in the ps, that is strange!

Olivier 
___
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: Samba PDC with LDAP backend

2009-07-20 Thread Ruel Luchavez
On Mon, Jul 20, 2009 at 4:04 PM, Johan Hendriks  wrote:

> >> On Sat, Jul 18, 2009 at 12:53:40PM +0800, Ruel Luchavez typed:
> >> > On Sat, Jul 18, 2009 at 11:43 AM, Olivier Nicole 
> >> wrote:
> >> >
> >> > >
> >> > > > Still it does not start the LDAP, hers my /etc/rc.conf:
> >> > > >
> >> > > > slapd_flags='-h
> "ldapi://%2fvar%2frun%2fopenldap%2fldapi/
> >> > > ldaps://
> >> > > > / ldap://127.0.0.1/";'
> >>
> >> You try to start slapd with ssl/tls support (ldaps), but I didn't see
> any
> >> TLS parameters in the slapd.conf file you posted.
> >>
> >> Ruben
> >>
> >>
> >Hey Ruben,
>
> >Is it necessary to have ssl/tls support?
>
> >My goal is to build a Samba PDC on FreeBSD with a ldap backend. This
> will
> >not authenticate ssh users just a plain samba server for our windows
> >clients.
>
>
> >More ideas are very WELCOME...
>
>
> >Thanks.:-)
> >--
> >Rhuel
> >FreeBSD user since 6.0
> >Happy BSD use...
> >Country:Philippines
> >Zip Code:8000
>
> You do not need to add ssl/tls it is some extra security.
> But First try to make sure the ldap server start.
> 192.168.5.0 is nota n ipadres but a network, i do not know fors ure but
> i thougt it need an ipadres like 192.168.5.1
>
> But try this one First and look i fit starts.
> slapd_flags='-h \"ldapi://%2fvar%2frun%2fopenldap%2fldapi/
> ldap://0.0.0.0/ ldap://127.0.0.1/\";'
>
> It will listen on all your ip's available on your system.
>
> If it does still not start then look at the configuration of your
> slapd.conf file
>
> Regards,
> Johan Hendriks
> (Sylhouette)
>
>
>
>
> No virus found in this outgoing message.
> Checked by AVG - www.avg.com
> Version: 8.5.392 / Virus Database: 270.13.20/2249 - Release Date:
> 07/19/09 17:59:00
>

Hey Mr. Johan (Sylhoutte)

Thanks for your reply, are you the author of this link? because I posted a
reply on your comment their

http://forums.freebsd.org/showthread.php?t=770&page=2

But anyway..Thanks for your time!!! Back to my problem

I know this is running
 >>slapd_flags='-h \"ldapi://%2fvar%2frun%2fopenldap%2fldapi/
ldap://0.0.0.0/ ldap://127.0.0.1/\";'

as is issue a command ps -aux | grep slap, hers whats the box give to me
#ps -aux | grep slap
ldap   1273  0.0  6.6 341992  7816  ??  Is4:17PM   0:00.14
/usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fopenldap%2fldapi/
ldaps://127.0.0.1/ ldap://192.168.5.200/ -u l

Does it means it is running OR not?

and her's my slapd.conf

include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
include /usr/local/etc/openldap/schema/misc.schema
include /usr/local/etc/openldap/schema/nis.schema
include /usr/local/etc/openldap/schema/openldap.schema
include /usr/local/etc/openldap/schema/samba.schema

loglevel 256

pidfile /var/run/openldap/slapd.pid
argsfile/var/run/openldap/slapd.args

#Additional config
#access to attrs=userpPassword
#   by dn="uid=root,ou=People,dc=mydomain,dc=local" write
#   by dn="cn=Manager,dc=mydomain,dc=local" write
#   by anonymoud auth
#   by self write
#   by * none
#access to dn.base=""by * read
#access to *
#   by dn="cn=Manager,dc=mydomain,dc=local" write
#   by * read

# Load dynamic backend modules:
modulepath  /usr/local/libexec/openldap
moduleload  back_bdb

###
# BDB database definitions
###

databasebdb
suffix  "dc=mydomain,dc=local"
rootdn  "cn=Manager,dc=mydomain,dc=local"
#rootpw = very-secure-password
rootpw  secret

directory   /usr/local/var/db/openldap-data

# Indices to maintain

index   objectClass eq
index   cn  pres,sub,eq
index   sn  pres,sub,eq
index   uid pres,sub,eq
index   displayName pres,sub,eq
index   uidNumber   eq
index   gidNumber   eq
index   memberUID   eq
index   sambaSIDeq
index   sambaPrimaryGroupSIDeq
index   sambaDomainName eq
index   default sub


Hoping you have more ideas on this...

Thanks for your immediate reply..
-- 

rHueL
FreeBSD user since 6.0
Happy BSD use...
Country:Philippines
Zip Code:8000
___
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: Samba PDC with LDAP backend

2009-07-20 Thread Johan Hendriks
>> On Sat, Jul 18, 2009 at 12:53:40PM +0800, Ruel Luchavez typed:
>> > On Sat, Jul 18, 2009 at 11:43 AM, Olivier Nicole 
>> wrote:
>> >
>> > >
>> > > > Still it does not start the LDAP, hers my /etc/rc.conf:
>> > > >
>> > > > slapd_flags='-h
"ldapi://%2fvar%2frun%2fopenldap%2fldapi/
>> > > ldaps://
>> > > > / ldap://127.0.0.1/";'
>>
>> You try to start slapd with ssl/tls support (ldaps), but I didn't see
any
>> TLS parameters in the slapd.conf file you posted.
>>
>> Ruben
>>
>>
>Hey Ruben,

>Is it necessary to have ssl/tls support?

>My goal is to build a Samba PDC on FreeBSD with a ldap backend. This
will
>not authenticate ssh users just a plain samba server for our windows
>clients.


>More ideas are very WELCOME...


>Thanks.:-)
>-- 
>Rhuel
>FreeBSD user since 6.0
>Happy BSD use...
>Country:Philippines
>Zip Code:8000

You do not need to add ssl/tls it is some extra security.
But First try to make sure the ldap server start.
192.168.5.0 is nota n ipadres but a network, i do not know fors ure but
i thougt it need an ipadres like 192.168.5.1 

But try this one First and look i fit starts.
slapd_flags='-h \"ldapi://%2fvar%2frun%2fopenldap%2fldapi/
ldap://0.0.0.0/ ldap://127.0.0.1/\";'

It will listen on all your ip's available on your system.

If it does still not start then look at the configuration of your
slapd.conf file

Regards,
Johan Hendriks
(Sylhouette)




No virus found in this outgoing message.
Checked by AVG - www.avg.com 
Version: 8.5.392 / Virus Database: 270.13.20/2249 - Release Date:
07/19/09 17:59:00
___
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: Samba PDC with LDAP backend

2009-07-19 Thread Olivier Nicole
Rhuel,

In your starting command you have:

> ldaps://192.168.5.0/ ldap://127.0.0.1/";'

This means TLS/SSL. If you don't want it, remove it from your command.

> Is it necessary to have ssl/tls support?

It is up to you. TLS/SSL will bring some extra security. It may be
important if the network between your LDAP and your samba servers is
unsecure.

Bests,

Olivier
___
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: Samba PDC with LDAP backend

2009-07-19 Thread Ruel Luchavez
On Sun, Jul 19, 2009 at 7:28 PM, Ruben de Groot  wrote:

> On Sat, Jul 18, 2009 at 12:53:40PM +0800, Ruel Luchavez typed:
> > On Sat, Jul 18, 2009 at 11:43 AM, Olivier Nicole 
> wrote:
> >
> > >
> > > > Still it does not start the LDAP, hers my /etc/rc.conf:
> > > >
> > > > slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/
> > > ldaps://
> > > > 192.168.5.0/ ldap://127.0.0.1/";'
>
> You try to start slapd with ssl/tls support (ldaps), but I didn't see any
> TLS parameters in the slapd.conf file you posted.
>
> Ruben
>
>
Hey Ruben,

Is it necessary to have ssl/tls support?

My goal is to build a Samba PDC on FreeBSD with a ldap backend. This will
not authenticate ssh users just a plain samba server for our windows
clients.


More ideas are very WELCOME...


Thanks.:-)
-- 
Rhuel
FreeBSD user since 6.0
Happy BSD use...
Country:Philippines
Zip Code:8000
___
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: Samba PDC with LDAP backend

2009-07-19 Thread Ruben de Groot
On Sat, Jul 18, 2009 at 12:53:40PM +0800, Ruel Luchavez typed:
> On Sat, Jul 18, 2009 at 11:43 AM, Olivier Nicole  wrote:
> 
> >
> > > Still it does not start the LDAP, hers my /etc/rc.conf:
> > >
> > > slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/
> > ldaps://
> > > 192.168.5.0/ ldap://127.0.0.1/";'

You try to start slapd with ssl/tls support (ldaps), but I didn't see any 
TLS parameters in the slapd.conf file you posted.

Ruben

___
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: Samba PDC with LDAP backend

2009-07-17 Thread Ruel Luchavez
On Sat, Jul 18, 2009 at 11:43 AM, Olivier Nicole  wrote:

>
> > Still it does not start the LDAP, hers my /etc/rc.conf:
> >
> > slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/
> ldaps://
> > 192.168.5.0/ ldap://127.0.0.1/";'
>
> At this point it would be usefull that you have a look in the logs at
> /var/log and see what is wrong in your command line.
>
> It may also be usefull to set rc_debug="YES" in /etc/rc.conf, so you
> can see the exact command line that is tried when you start ldap
> server with /usr/local/etc/rc.d/slapd start
>
> Olivier
>

Thanks...

I'll try your idea..I'll be back



-- 
Ruel Luchavez
FreeBSD user since 6.0
Happy BSD use...
Country:Philippines
Zip Code:8000
___
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: Samba PDC with LDAP backend

2009-07-17 Thread Olivier Nicole

> Still it does not start the LDAP, hers my /etc/rc.conf:
> 
> slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldaps://
> 192.168.5.0/ ldap://127.0.0.1/";'

At this point it would be usefull that you have a look in the logs at
/var/log and see what is wrong in your command line.

It may also be usefull to set rc_debug="YES" in /etc/rc.conf, so you
can see the exact command line that is tried when you start ldap
server with /usr/local/etc/rc.d/slapd start

Olivier
___
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: Samba PDC with LDAP backend

2009-07-17 Thread Ruel Luchavez
On Sat, Jul 18, 2009 at 11:11 AM, Olivier Nicole  wrote:

> Ruel,
>
> > I tried you idea with NO SPACE between each URL but when i restart the
> LDAP
> > it does not start anymore...hmmm
> > what did i mess here!!??
>
> in /etc/rc.conf I have:
>
>   slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldaps://
> 192.41.170.6/ ldap://192.41.170.6/";'
>
> see the specific use of quotes.
>
> Olivier
>

Hey Oliver,

Still it does not start the LDAP, hers my /etc/rc.conf:

slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldaps://
192.168.5.0/ ldap://127.0.0.1/";'

I still have no LUCK...:-(

Thanks
-- 
RhueL
FreeBSD user since 6.0
Happy BSD use...
Country:Philippines
Zip Code:8000
___
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: Samba PDC with LDAP backend

2009-07-17 Thread Olivier Nicole
Ruel,

> I tried you idea with NO SPACE between each URL but when i restart the LDAP
> it does not start anymore...hmmm
> what did i mess here!!??

in /etc/rc.conf I have:

   slapd_flags='-h "ldapi://%2fvar%2frun%2fopenldap%2fldapi/ 
ldaps://192.41.170.6/ ldap://192.41.170.6/";'

see the specific use of quotes.

Olivier
___
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: Samba PDC with LDAP backend

2009-07-17 Thread Ruel Luchavez
On Sat, Jul 18, 2009 at 10:25 AM, Olivier Nicole  wrote:

> Ruel,
>
> > And yes ldap is running
> > #ps -aux | grep slap
>
> That the process slapd is running does not mean you can access it.
>
> That:
>
> > /usr/local/libexec/slapd -h
> ldapi://%2fvar%2frun%2fopenldap%2fldapi/ldap://
> > 0.0.0.0/ldap://192.168.5.0/ldap://127.0
>
> looks strange to me, I am used to someting like:
>
>/usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fopenldap%2fldapi/
> ldaps://192.41.170.6/ ldap://192.41.170.6/ -u ldap -g ldap
>
> with space between each URL on the command line.
>
> You should first assert that LDAP is running the way you want, if it
> is, you should be able to find a set of options to use with ldapsearch
> to be able to access your LDAP server.
>
> Basically, these options will have to be transposed into smbldap
> configuration.
>
> Good luck,
>
> Olivier
>

Hey,

I tried you idea with NO SPACE between each URL but when i restart the LDAP
it does not start anymore...hmmm
what did i mess here!!??

Anyway thanks for your immediate responds..maybe i try to dig more to solve
this.

Those who have more idea, you are welcome to comment...


-- 
Ruel Luchavez
FreeBSD user since 6.0
Happy BSD use...
Country:Philippines
Zip Code:8000
___
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: Samba PDC with LDAP backend

2009-07-17 Thread Olivier Nicole
Ruel,

> And yes ldap is running
> #ps -aux | grep slap

That the process slapd is running does not mean you can access it.

That: 

> /usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fopenldap%2fldapi/ldap://
> 0.0.0.0/ldap://192.168.5.0/ldap://127.0

looks strange to me, I am used to someting like:

/usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fopenldap%2fldapi/ 
ldaps://192.41.170.6/ ldap://192.41.170.6/ -u ldap -g ldap

with space between each URL on the command line.

You should first assert that LDAP is running the way you want, if it
is, you should be able to find a set of options to use with ldapsearch
to be able to access your LDAP server.

Basically, these options will have to be transposed into smbldap
configuration.

Good luck,

Olivier
___
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: Samba PDC with LDAP backend

2009-07-17 Thread Ruel Luchavez
On Sat, Jul 18, 2009 at 10:07 AM, Olivier Nicole  wrote:

> Hi,
>
> > >>when I look at the smblap_tools.pm at line 322 this is what it look
> likes
> > and sorry I cant understand the code:
> >
> > else {
> > $ldap_master = Net::LDAP->new(   <--This is line 322
> > "$config{masterLDAP}",
> > port=> "$config{masterPort}",
> > version => 3,
> > timeout => 60,
>
> Are you sure about your configuration of smbldap?
>
> Are you sure ldap is running? Have you tried a manual access through
> ldapsearch(1)?
>
> Olivier
>

Hello,
Im sure with my smblap..why?Is there something wrong with my config?

And yes ldap is running
#ps -aux | grep slap

ldap   1522  0.0  6.6 341992  7756  ??  Is   10:15AM   0:00.08
/usr/local/libexec/slapd -h ldapi://%2fvar%2frun%2fopenldap%2fldapi/ldap://
0.0.0.0/ldap://192.168.5.0/ldap://127.0

root   1678  0.0  0.2   388   268  p0  R+   10:20AM   0:00.00 grep slap


Its running right?

I also tried the ldapsearch and it says it cant contact the ldap server
#ldapsearch

ldap_sasl_bind(SIMPLE): Can't contact LDAP server (-1)
any more ideas?

thanks for your reply

-- 
Ruel Luchavez
FreeBSD user since 6.0
Happy BSD use...
Country:Philippines
Zip Code:8000
___
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: Samba PDC with LDAP backend

2009-07-17 Thread Olivier Nicole
Hi,

> >>when I look at the smblap_tools.pm at line 322 this is what it look likes
> and sorry I cant understand the code:
> 
> else {
> $ldap_master = Net::LDAP->new(   <--This is line 322
> "$config{masterLDAP}",
> port=> "$config{masterPort}",
> version => 3,
> timeout => 60,

Are you sure about your configuration of smbldap?

Are you sure ldap is running? Have you tried a manual access through
ldapsearch(1)?

Olivier
___
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: Samba

2009-07-16 Thread Samuel Martín Moro
here is my conf file:


fa...@alpha ~ : cat /etc/samba/smb.conf
6:34
#=== Global Settings ===

[global]
   workgroup = WORKGROUP
   server string = Samba server on alpha {debian:lenny}
   Security = share

#=== Share Definitions ===

[Videos]
comment = media::vidz
path = /mnt/media
force user = smbguest
force group = users
read only = Yes
guest ok = Yes

[Upload]
comment = misc::upload
path = /home/faust/download
forceuser = smbguest
forcegroup = users
read only = No
guest ok = Yes
fa...@alpha ~ :

then:
adduser smbguest
chown -R faust:smbguest /home/faust/download
chmod 775 /home/faust/download
and a restart of samba

gl&hf ;)


Samuel Martín Moro
CamTrace
{EPITECH.} tek3


2009/7/16 Anton 

>
>   Hello freebsd-questions,
>
> Could anyone give me fuidance, how to create Samba share with rw
>  acces in workgroup with security=share
>
>   --
>
>   --
>
>   Best regards,
>
>Anton ;[1]mailto:an...@sng.by
>
>Administrator
>
>   Feel free to contact me
>
>   via ICQ 363780596
>
>   via Skype dobryak47
>
>   via phone +375 29 3320987
>
> References
>
>   1. 3D"mailto:an...@sng.by";
> ___
> 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"
>
___
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: [Samba] PDC and "group" question

2009-05-07 Thread Peter Ulrich Kruppa
Am Donnerstag, den 07.05.2009, 09:11 -0700 schrieb MargoAndTodd:
> Peter Ulrich Kruppa wrote:
> 
> > I am not quite sure, I understand your question correctly:
> > probably you will want to use commands like
> > # net groupmap add ntgroup="Domain Admins" unixgroup=wheel  type=d 
> >   rid=512
> > which would map the Windows group "Domain Admins" to the local UNIX
> > group wheel and so on. See the documentation on samba.org for more
> > details examples.
> 
> Hi Peter,
> 
> There is "a lot" of documentation out on samba.org.
> Can you point me to where to start?
I think the main document would be
http://www.samba.org/samba/docs/man/Samba-HOWTO-Collection/groupmapping.html
but it assumes you really have a Primary Domain Controller up and
running.

Greetings and good luck

Uli.

> 
> Many thanks,
> -T

___
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: Samba 3.2 & FreeBSD

2009-02-10 Thread Jerry
On Tue, 10 Feb 2009 15:04:52 +0300
Proskurin Kirill  wrote:

>Odhiambo Washington wrote:
>> On Tue, Feb 10, 2009 at 11:01 AM, Proskurin Kirill
>>>
>>> Just wondering - why samba 3.2+ is not in a ports?
>> net/samba3-devel ??
>
>Oh. But why it is "devel"?
>Samba 3.3 is officially stable.

Have you tried contacting the port maintainer?

ti...@freebsd.org

-- 
Jerry
ges...@yahoo.com

"Surely you can't be serious."
"I am serious, and don't call me Shirley."


signature.asc
Description: PGP signature


Re: Samba 3.2 & FreeBSD

2009-02-10 Thread Michael Powell
Proskurin Kirill wrote:

> Odhiambo Washington wrote:
>> On Tue, Feb 10, 2009 at 11:01 AM, Proskurin Kirill
>>>
>>> Just wondering - why samba 3.2+ is not in a ports?
>> net/samba3-devel ??
> 
> Oh. But why it is "devel"?
> Samba 3.3 is officially stable.
> 

Look in the subdirectory called "files" for the port. You will see a 
collection of patch files. These are developed by the port maintainer(s) in 
order to facilitate a successful build and runtime for the FreeBSD OS 
environment.

Since these maintainer(s) are volunteers who do this in their spare time 
there can be a lag between the time some upstream application releases a new 
version and the port gets updated for FreeBSD. 

It is still possible that one can try and simply download the source tarball 
for some application and compile it outside of the ports system. You may or 
may not be successful with this. In any event, should you pursue this path 
you will find that future maintainability isn't as easy as if you had just 
stuck with the ports system.

-Mike
 


___
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: Samba 3.2 & FreeBSD

2009-02-10 Thread Proskurin Kirill

Odhiambo Washington wrote:

On Tue, Feb 10, 2009 at 11:01 AM, Proskurin Kirill


Just wondering - why samba 3.2+ is not in a ports?

net/samba3-devel ??


Oh. But why it is "devel"?
Samba 3.3 is officially stable.

--
Best regards,
Proskurin Kirill
___
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: Samba 3.2 & FreeBSD

2009-02-10 Thread Odhiambo Washington
On Tue, Feb 10, 2009 at 11:01 AM, Proskurin Kirill
wrote:

> Hello all.
>
> Just wondering - why samba 3.2+ is not in a ports?


net/samba3-devel ??


-- 
Best regards,
Odhiambo WASHINGTON,
Nairobi,KE
+254733744121/+254722743223
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
"The only time a woman really succeeds in changing a man is when he is a
baby."
 - Natalie Wood
___
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: Samba, WinVista and Roaming Profiles

2008-12-01 Thread Tim Judd
On Mon, Dec 1, 2008 at 10:53 AM, Peter Ulrich Kruppa <[EMAIL PROTECTED]>wrote:

> Hello,
>
> I hope my question isn't too off-topic for this list, but usually some
> people come up with good ideas ...
>
> We have got a FreeBSD Samba Server (set up as PDC) and about 100 WinXP
> desktops and laptops. The WinXP machines can log into the network, connect
> to home directories and shares and download (roaming) profiles. Everything
> works fine with them.
>
> Now we have purchased 2 new WinVista desktops. Login and shares work all
> right, but they can't download the profiles. They will deliver an error
> message saying they lack appropriate permissions.
>
> Any idea what is happening there?
>
> Thanks for your help and greetings,
>
> Uli.
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
>


http://lists.samba.org/archive/samba-technical/2007-April/053051.html

May the power of Google help your next question's answer.  Long story short,
Vista's "profile" is incompatible with anything older.  It must use a "V2"
of the profile.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: samba - vista problems

2008-10-23 Thread Darryl Hoar
In windows world, username is machinename\username.

So, if the Vista box is named mypc and your username is fred,

The username you enter should be mypc\fred.

 

Not sure if you have a freebsd password problem.

 

Anyway, just more info to help you solve your problem.

 

Darryl

 

From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jerry
Sent: Thursday, October 23, 2008 9:21 AM
To: freebsd-questions@freebsd.org
Subject: Re: samba - vista problems

 

On Thu, 23 Oct 2008 15:39:16 +0200 (CEST)
Wojciech Puchar <[EMAIL PROTECTED]> wrote:

>> Hello!
>
>I have some problems with my samba/vista "os"
>I can't log on from my pc to the samba, it says every time that there
>is a password/user problem, I tried to retype almost 50 times the
>user/pass, to change it but it don't works.
>
>do you ever meet this problem?
>
>
>no - i don't use windows, for users i strongly recommend not using
>vista.

That was not the question the OP asked.

>anyway - it's not FreeBSD related problem, samba is not FreeBSD
>specific.

If the OP is using SAMBA in a FreeBSD environment, then it is most
certainly a FBSD related problem.

>try windows support and samba related mailing lists!

In which case, if their users are as closed minded as you appear to be,
they will refer the OP to the FreeBSD and/or Samba mailing list,
depending on which list he contacts.

--
Jerry
[EMAIL PROTECTED]

"Life's tough ... it is even tougher if you are stupid."

John Wayne

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


Re: samba - vista problems

2008-10-23 Thread Jerry
On Thu, 23 Oct 2008 15:39:16 +0200 (CEST)
Wojciech Puchar <[EMAIL PROTECTED]> wrote:

>> Hello!
>
>I have some problems with my samba/vista "os"
>I can't log on from my pc to the samba, it says every time that there
>is a password/user problem, I tried to retype almost 50 times the
>user/pass, to change it but it don't works.
>
>do you ever meet this problem?
>
>
>no - i don't use windows, for users i strongly recommend not using
>vista.

That was not the question the OP asked.

>anyway - it's not FreeBSD related problem, samba is not FreeBSD
>specific.

If the OP is using SAMBA in a FreeBSD environment, then it is most
certainly a FBSD related problem.

>try windows support and samba related mailing lists!

In which case, if their users are as closed minded as you appear to be,
they will refer the OP to the FreeBSD and/or Samba mailing list,
depending on which list he contacts.

-- 
Jerry
[EMAIL PROTECTED]

"Life's tough ... it is even tougher if you are stupid."

John Wayne


signature.asc
Description: PGP signature


Re: samba - vista problems

2008-10-23 Thread Dánielisz László
It works!
Thank you very much!


[2008/10/23 15:51:28, 1] smbd/service.c:make_connection_snum(1033)
  laci-laptop (192.168.1.4) connect to service laci_smb initially as user 
laci_smb (uid=1002, gid=1002) (pid 13213)



- Original Message 
From: Valentin Bud <[EMAIL PROTECTED]>
To: Dánielisz László <[EMAIL PROTECTED]>
Cc: freebsd-questions 
Sent: Thursday, October 23, 2008 3:31:59 PM
Subject: Re: samba - vista problems

On Thu, Oct 23, 2008 at 3:27 PM, Dánielisz László <
[EMAIL PROTECTED]> wrote:

> Yes, I got the following error message, but not every time, sometime its
> just simply empty:
>
> # tail -f /var/log/samba/log.laci-laptop
> [2008/10/23 14:51:36, 0] lib/util_sock.c:read_data(534)
>   read_data: read failure for 4 bytes to client 192.168.1.4. Error =
> Connection reset by peer
>
> - Original Message 
> From: Valentin Bud <[EMAIL PROTECTED]>
> To: Dánielisz László <[EMAIL PROTECTED]>
> Sent: Thursday, October 23, 2008 3:21:11 PM
> Subject: Re: samba - vista problems
>
>
>
> On Thu, Oct 23, 2008 at 2:50 PM, Dánielisz László <
> [EMAIL PROTECTED]> wrote:
>
>> Hello!
>>
>> I have some problems with my samba/vista "os"
>> I can't log on from my pc to the samba, it says every time that there is a
>> password/user problem, I tried to retype almost 50 times the user/pass, to
>> change it but it don't works.
>>
>> do you ever meet this problem?
>>
>
> did you check the logs? /var/log/samba/*
>
>>
>> Laci
>>
>>
>>
>>
>> ___
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "
>> [EMAIL PROTECTED]"
>>
>
Ok, have you added the user to the samba user database:
# smbpasswd -a 
The  must be a system user. You can use either smbpasswd(8) or
pdbedit(8).

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




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


Re: samba - vista problems

2008-10-23 Thread Wojciech Puchar



Hello!


I have some problems with my samba/vista "os"
I can't log on from my pc to the samba, it says every time that there is a 
password/user problem, I tried to retype almost 50 times the user/pass, to 
change it but it don't works.

do you ever meet this problem?


no - i don't use windows, for users i strongly recommend not using vista.


anyway - it's not FreeBSD related problem, samba is not FreeBSD specific.

try windows support and samba related mailing lists!
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: samba - vista problems

2008-10-23 Thread Valentin Bud
On Thu, Oct 23, 2008 at 3:27 PM, Dánielisz László <
[EMAIL PROTECTED]> wrote:

> Yes, I got the following error message, but not every time, sometime its
> just simply empty:
>
> # tail -f /var/log/samba/log.laci-laptop
> [2008/10/23 14:51:36, 0] lib/util_sock.c:read_data(534)
>   read_data: read failure for 4 bytes to client 192.168.1.4. Error =
> Connection reset by peer
>
> - Original Message 
> From: Valentin Bud <[EMAIL PROTECTED]>
> To: Dánielisz László <[EMAIL PROTECTED]>
> Sent: Thursday, October 23, 2008 3:21:11 PM
> Subject: Re: samba - vista problems
>
>
>
> On Thu, Oct 23, 2008 at 2:50 PM, Dánielisz László <
> [EMAIL PROTECTED]> wrote:
>
>> Hello!
>>
>> I have some problems with my samba/vista "os"
>> I can't log on from my pc to the samba, it says every time that there is a
>> password/user problem, I tried to retype almost 50 times the user/pass, to
>> change it but it don't works.
>>
>> do you ever meet this problem?
>>
>
> did you check the logs? /var/log/samba/*
>
>>
>> Laci
>>
>>
>>
>>
>> ___
>> freebsd-questions@freebsd.org mailing list
>> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>> To unsubscribe, send any mail to "
>> [EMAIL PROTECTED]"
>>
>
Ok, have you added the user to the samba user database:
# smbpasswd -a 
The  must be a system user. You can use either smbpasswd(8) or
pdbedit(8).

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


Re: Samba and LDAP install on FreeBSD

2008-07-23 Thread Tim Judd

[EMAIL PROTECTED] wrote:

Here is my problem.  I installed the OpenLdap 2.4.10 server and SASL
client.  I then went to install the Samba 3.0.30 Port and it tells me that
it needs to install OpenLDAP client 2.3.42, but the 2.4.10 is in the same
place and I need to deinstall it.  I deinstall 2.4.10 and samba will
install, but now openldap will not run because it has missing files.  I
went to reinstall the 2.4.10 SASL client, but it tells me that the
openldap 2.3.42 needs to be removed.

If I go to remove the 2.3.42 openldap client, it tells me that samba
3.0.30 relies on it.  I am kind of stuck here.  Does samba 3.0.30 not work
with openldap 2.4?  Do I have to have openldap 2.3?

Thanks for any suggestions.

  
as I had also written in a previous mail just moments ago earlier in the 
queue 


A 2.4.x database already established (as soon as 2.4 was run) may not be 
compatible with 2.3.x (not verified).


the missing rc.conf values to start 2.3?

and OpenLDAP won't log to ANYTHING until configured to do so.

I'm going from memory on this last peice --
in slapd.conf, insert a "loglevel 256" statement anywhere before the 
database definitions
in /etc/syslog.conf define before the middle chunk of comments (seems 
it's picky) you need to add EITHER (which I think is the latter of these 
two):

slapd.*   /var/log/slapd.log-OR-
local4.*   /var/log/slapd.log

touching (creating) /var/log/slapd.log to create the file,
restarting syslogd
restart slapd

That should start logging.  Now why it's not any easier to setup, I 
don't know.


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


Re: [Samba] Samba and LDAP install on FreeBSD

2008-07-22 Thread Daniel O'Connor
On Tue, 22 Jul 2008, [EMAIL PROTECTED] wrote:
> Here is my problem.  I installed the OpenLdap 2.4.10 server and SASL
> client.  I then went to install the Samba 3.0.30 Port and it tells me
> that it needs to install OpenLDAP client 2.3.42, but the 2.4.10 is in
> the same place and I need to deinstall it.  I deinstall 2.4.10 and
> samba will install, but now openldap will not run because it has
> missing files.  I went to reinstall the 2.4.10 SASL client, but it
> tells me that the openldap 2.3.42 needs to be removed.
>
> If I go to remove the 2.3.42 openldap client, it tells me that samba
> 3.0.30 relies on it.  I am kind of stuck here.  Does samba 3.0.30 not
> work with openldap 2.4?  Do I have to have openldap 2.3?

Put this in /etc/make.conf
WANT_OPENLDAP_VER=24

It tells the ports tree that you want OpenLDAP 2.4 if a port doesn't 
specify a particular version.

-- 
Daniel O'Connor software and network engineer
for Genesis Software - http://www.gsoft.com.au
"The nice thing about standards is that there
are so many of them to choose from."
  -- Andrew Tanenbaum
GPG Fingerprint - 5596 B766 97C0 0E94 4347 295E E593 DC20 7B3F CE8C


signature.asc
Description: This is a digitally signed message part.


Re: SAMBA 3.0.28a and CVE-2008-1105

2008-07-02 Thread Timur I. Bakeyev
On Fri, Jun 20, 2008 at 1:20 PM, O. Hartmann
<[EMAIL PROTECTED]> wrote:
> Johan Hendriks wrote:
>>
 Konrad Heuer wrote:

 On Thu, 19 Jun 2008, O. Hartmann wrote:

> We still have Samba R3.0.28a in the ports but regarding to
> CVE-2008-1105 shouldn't it be R3.0.30?

 As far as I know the mentioned security patch gets applied when

Each new version of Samba has it's own bugs, so I prefer not to commit
0 day release versions, but wait, until it's got proven to be stable
enough.

Again, there are talks about 3.0.31 release due some new fixes... *sigh*

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


Re: SAMBA 3.0.28a and CVE-2008-1105

2008-06-20 Thread O. Hartmann

Johan Hendriks wrote:



Konrad Heuer wrote:

On Thu, 19 Jun 2008, O. Hartmann wrote:

We still have Samba R3.0.28a in the ports but regarding to 
CVE-2008-1105 shouldn't it be R3.0.30?

As far as I know the mentioned security patch gets applied when
building 

Samba from ports.

Best regards

Konrad Heuer
GWDG, Am Fassberg, 37077 Goettingen, Germany, [EMAIL PROTECTED]




Oh, is that so ... then why isn't the version number bumped up?
Slightly 

confusing, but if the patch has been incorporated it makes me feel

better.


Kindly regards,
Oliver


Reding this on freshports makes me think it is bumped!

29 May 2008 11:47:46
3.0.28a_1,1

This is a security update of Samba 3.0.28a, that address CVE-2008-1105.

Approved by:shaun (mentor, implicit)
Security:   CVE-2008-1105

Regards,
Johan Hendriks
Double L Automatisering




Well, sorry making this noise, I looked at www.samba.org and saw version 
3.0.30 out there and checked against the port and that what smbstatus 
reveals and tried to figure out ...


Somehow it would be much easier and for the 'stupid' among us (like me) 
to bump also version number - if that would be possible and without 
implications ino too much work ...


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


RE: SAMBA 3.0.28a and CVE-2008-1105

2008-06-20 Thread Johan Hendriks


>>Konrad Heuer wrote:
>> 
>> On Thu, 19 Jun 2008, O. Hartmann wrote:
>> 
>>> We still have Samba R3.0.28a in the ports but regarding to 
>>> CVE-2008-1105 shouldn't it be R3.0.30?
>> 
>> As far as I know the mentioned security patch gets applied when
building 
>> Samba from ports.
>> 
>> Best regards
>> 
>> Konrad Heuer
>> GWDG, Am Fassberg, 37077 Goettingen, Germany, [EMAIL PROTECTED]
>> 

>Oh, is that so ... then why isn't the version number bumped up?
Slightly 
>confusing, but if the patch has been incorporated it makes me feel
better.

>Kindly regards,
>Oliver

Reding this on freshports makes me think it is bumped!

29 May 2008 11:47:46
3.0.28a_1,1

This is a security update of Samba 3.0.28a, that address CVE-2008-1105.

Approved by:shaun (mentor, implicit)
Security:   CVE-2008-1105

Regards,
Johan Hendriks
Double L Automatisering


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


Re: SAMBA 3.0.28a and CVE-2008-1105

2008-06-20 Thread O. Hartmann

Konrad Heuer wrote:


On Thu, 19 Jun 2008, O. Hartmann wrote:

We still have Samba R3.0.28a in the ports but regarding to 
CVE-2008-1105 shouldn't it be R3.0.30?


As far as I know the mentioned security patch gets applied when building 
Samba from ports.


Best regards

Konrad Heuer
GWDG, Am Fassberg, 37077 Goettingen, Germany, [EMAIL PROTECTED]



Oh, is that so ... then why isn't the version number bumped up? Slightly 
confusing, but if the patch has been incorporated it makes me feel better.


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


Re: SAMBA 3.0.28a and CVE-2008-1105

2008-06-19 Thread Konrad Heuer


On Thu, 19 Jun 2008, O. Hartmann wrote:

We still have Samba R3.0.28a in the ports but regarding to CVE-2008-1105 
shouldn't it be R3.0.30?


As far as I know the mentioned security patch gets applied when building 
Samba from ports.


Best regards

Konrad Heuer
GWDG, Am Fassberg, 37077 Goettingen, Germany, [EMAIL PROTECTED]

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


Re: Samba on FreeBSD 7.0

2008-06-16 Thread Ruel Luchavez
I can recommend you reading the lots of FAQ of samba in their site at
samba.org.

Theres plenty of solution out there...


Cheers..



On Sat, Jun 14, 2008 at 4:41 AM, white list <[EMAIL PROTECTED]>
wrote:

> Hello ALL,
> I want to install Samba on FreeBSD 7.0 from ports collection.
> when i cd to /usr/ports/net/samba3
> make config
> LDAP
> ADS
> and many more options to enable with samba with ADS server 2008
>
> What would  like to know which options will best work with ADS Windows
> Server 2008? suggestions are welcome and appreciate.
> Thanks in advance to all,
> - Augustin
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Samba & FreeBSD

2008-06-12 Thread Derek Ragona

At 03:36 PM 6/12/2008, white list wrote:

hope to be in the right place, I'm seeking help join a FreeBSD 6.2 machine
to a ADS Windows 2008.
when I execute "net ads join -U Administrator" I get a
"/libexec/ld-elf.so.1: /usr/lib/libkrb5.so.8: Undefined symbol
"init_error_table" error message.

[global]
dos charset = cp866
unix charset = koi8-r
display charset = koi8-r
workgroup = LAB
realm = LAB.NET
server string = SambaServer
security = ADS
password server = SAFAD.LAB.NET
log file = /var/log/samba/log.%m
max log size = 50
socket options = SO_RCVBUF=8192 SO_SNDBUF=8192
logon script = %U.bat
logon path = \\%L\Profiles\%U
os level = 33
preferred master = No
local master = No
domain master = No
dns proxy = No
wins server = safad.lab.net
idmap uid = 600-2
winbind separator = /
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
inherit acls = Yes
map acl inherit = Yes
map archive = No
store dos attributes = Yes

this is my global configuration,
Thanks,
Augustin,
_


I believe this is an upgraded FreeBSD system,  You need to rebuild samba so 
it is linked to the correct libraries.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Samba in Windows XP Error

2008-06-04 Thread Derek Ragona

At 12:14 AM 6/4/2008, Ruel Luchavez wrote:

Hi ALL

I have installed the samba package 3.0.28 in my freebsd 7.0, the
installation all goes well my problem only is when i add the
samba in an existing workgroup i can access it in my windows xp client
however if it has its own workgroup i always have this
error in windows xp pro "The network path was not found".. what would i
miss??

Freebsd Rocks.


Ruel,

Your note doesn't say how you have windows configured?  Active 
Directory?  Domain Controller?  Or?


Do you have samba as a slave to the window's controller?  Usually I have 
found this method works best.  Windows user's accounts are created 
automatically that way on the samba box.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Samba user failed..Corrupt

2008-05-24 Thread Christian Zachariasen
On Sat, May 24, 2008 at 10:05 AM, Ruel Luchavez <[EMAIL PROTECTED]>
wrote:

> Regards to ALL,
>
> Guys do you have an idea how to fix this?
> Every time I add this user in my samba it always got an error:
>
> #smbpasswd -a John
> New SMB password=x
> Retype password=x
> build_sam_account: sambapasswd database is corrupt! username Joh with uid
> 1001 is not in unix passwd database!
> add_smbfilepwd_entry: entry with name John already exists
> Failed to add entry for user John
> Failed to modify password entry for user John
>
> >From what i know the server declare that the user is existing, BUT i have
> already remove the user (rmuser -y ruel)
>
> Idea please..I'm stock with this..or is this a BUGS?
> Thanks in advance
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"


You say you have already rmuser'd John from your system, but in your post
you wrote rmuser -y ruel. I'm assuming this is a spelling mistake. I've
never seen this error before and wasn't able to reproduce it on my system,
but this is what I'd do:

If we assume the user name you want to add is actually John, then rmuser -y
John first of all.
Make a backup of /usr/local/etc/samba/smbpasswd and then delete the
smbpasswd file.
Type adduser and add John as you normally would, then type smbpasswd -a
John.

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


Re: Samba/Winbind/nsswitch problem

2008-05-22 Thread Derek Ragona

At 08:47 AM 5/22/2008, Stephen Allen wrote:

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 am using 
the pam_mkhomedir module (which also works ok).


Anyway, I've got 2 questions/problems...

(1)
Whenever I restart samba, syslog receives messages like these below.

auth/auth_util.c:create_builtin_administrators(792)
create_builtin_administrators: Failed to create Administrators
auth/auth_util.c:create_builtin_users(758)
create_builtin_users: Failed to create Users
auth/auth_util.c:create_builtin_administrators(792)
create_builtin_administrators: Failed to create Administrators
auth/auth_util.c:create_builtin_users(758)
create_builtin_users: Failed to create Users

(2)
If I use the "winbind enum users|groups = Yes" options, syslog receives 
messages like these below (hundreds of them... every few mins).


nsswitch/winbindd_group.c:winbindd_getgrent(1110)
could not lookup domain group department (maths)
nsswitch/winbindd_group.c:winbindd_getgrent(1110)
could not lookup domain group department (mecheng)


Can anyone help please?

Many thanks,
Steve :)



SOME NOTES ON MY CONFIG:


FreeBSD 7.0-RELEASE amd64
samba-3.0.28a,1

[EMAIL PROTECTED] ~ $ testparm -s
Load smb config files from /usr/local/etc/smb.conf
Loaded services file OK.
Server role: ROLE_DOMAIN_MEMBER
[global]
workgroup = TECHNOLOGY
security = DOMAIN
allow trusted domains = No
syslog only = Yes
load printers = No
printcap name = /dev/null
ldap ssl = no
idmap domains = TECHNOLOGY
template shell = /usr/local/bin/bash
winbind enum users = Yes
winbind enum groups = Yes
winbind use default domain = Yes
idmap config TECHNOLOGY:range = 1-2
idmap config TECHNOLOGY:backend = rid

[EMAIL PROTECTED] ~ $ wbinfo -u | wc -l
2944
[EMAIL PROTECTED] ~ $ wbinfo -g | wc -l
 117

[EMAIL PROTECTED] ~ $ cat /etc/nsswitch.conf
group: files winbind
group_compat: files nis
hosts: files dns
networks: files
passwd: files winbind
passwd_compat: files nis
shells: files
services: files
services_compat: files nis
protocols: files
rpc: files


Do you have an entry in smb.cnf like this:
admin users = root, Administrator

-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Samba, AD, nsswitch, freebsd & idmap

2008-05-19 Thread Derek Ragona

At 02:22 PM 5/19/2008, Aaron Holmes wrote:
I'm not sure where this issue should go, or if it's even a bug. If it's 
not, please help!

https://bugzilla.samba.org/show_bug.cgi?id=5468


There are known issues with the utilities than work with winbind, but the 
basic functionality does work.  Some of the docs are also out of sync.  I 
have found  samba as a slave ad works ok.


-Derek

--
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.

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


Re: Samba doesn't start after a ports upgrade

2008-05-13 Thread Johan Dowdy


For extra info at start time I always use

sh -x /sur/local/etc/rc.d/foo start   which will give you some nice realtime
debugging.

-J

On 5/13/08 1:20 AM, "Reinhold" <[EMAIL PROTECTED]> wrote:

> Hi
> 
> I have a samba server here at work. Last night I did a ports upgrade and
> since then samba fails to start. It just hangs at the rc script.
> 
> # /usr/local/etc/rc.d/samba start
> Removing stale Samba tdb files:  done
> Starting nmbd.
> Starting smbd.
> 
> 
> # ps auxwww |grep smb
> root 66854  0.0  0.7  5740  3464  ??  Ss9:09AM   0:00.01
> /usr/local/sbin/nmbd -D -s /usr/local/etc/smb.conf
> root 67466  0.0  1.3  9616  6756  p1  I+9:09AM   0:00.06
> /usr/local/sbin/smbd -d 5 -s /usr/local/etc/smb.conf
> root 67561  0.0  0.2  1596   924  p2  S+9:09AM   0:00.00 grep smb
> 
> and in the log file it looks like this
> [2008/05/13 09:14:16, 5] lib/debug.c:debug_dump_status(391)
>   INFO: Current debug levels:
> all: True/5
> tdb: False/0
> printdrivers: False/0
> lanman: False/0
> smb: False/0
> rpc_parse: False/0
> rpc_srv: False/0
> rpc_cli: False/0
> passdb: False/0
> sam: False/0
> auth: False/0
> winbind: False/0
> vfs: False/0
> idmap: False/0
> quota: False/0
> acls: False/0
> locking: False/0
> msdfs: False/0
> dmapi: False/0
> [2008/05/13 09:14:16, 3] lib/fault.c:dump_core_setup(134)
>   Maximum core file size limits now -1(soft) -1(hard)
> [2008/05/13 09:14:16, 3] smbd/sec_ctx.c:get_current_groups(167)
>   get_current_groups: user is in 3 groups: 0, 0, 5
> [2008/05/13 09:14:16, 0] smbd/server.c:main(944)
>   smbd version 3.0.28a started.
>   Copyright Andrew Tridgell and the Samba Team 1992-2008
> [2008/05/13 09:14:16, 2] smbd/server.c:main(948)
>   uid=0 gid=0 euid=0 egid=0
> [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
>   Build environment:
> [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
>  Built by:[EMAIL PROTECTED]
> [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
>  Built on:Tue May 13 08:52:37 BST 2008
> [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
>  Built using: cc
> [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
>  Build host:  FreeBSD fbsd01.gim.local 6.3-STABLE FreeBSD 6.3-STABLE
> #1: Mon May 12 18:47:12 BST 2008
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYKERN  i386
> [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
>  SRCDIR:  /usr/ports/net/samba3/work/samba-3.0.28a/source
> [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
>  BUILDDIR:/usr/ports/net/samba3/work/samba-3.0.28a/source
> [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
> 
> And loads of other stuff that looks the same as above
> It ends with this
> [2008/05/13 09:14:16, 3] printing/pcap.c:pcap_cache_reload(117)
>   reloading printcap cache
> [2008/05/13 09:14:16, 5] printing/print_cups.c:cups_cache_reload(94)
>   reloading cups printcap cache
> [2008/05/13 09:16:46, 0] printing/print_cups.c:cups_connect(69)
>   Unable to connect to CUPS server localhost:631 - Operation timed out
> [2008/05/13 09:16:46, 3] printing/pcap.c:pcap_cache_reload(223)
>   reload status: error
> [2008/05/13 09:16:46, 3] printing/pcap.c:pcap_cache_reload(117)
>   reloading printcap cache
> [2008/05/13 09:16:46, 5] printing/print_cups.c:cups_cache_reload(94)
>   reloading cups printcap cache
> 
> 
> Any help please, my whole office is down at the moment :-(
> 
> Regards
> Reinhold
> 
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "[EMAIL PROTECTED]"

-- 
Johan Dowdy - CISSP
Senior Systems Administrator
nCircle Network Security
 
415.318.2880

"Any sufficiently advanced technology is indistinguishable from magic."
-- Arthur C. Clarke

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


Re: Samba doesn't start after a ports upgrade

2008-05-13 Thread Reinhold
On Tue, May 13, 2008 10:55, Wojciech Puchar wrote:
>> The problem was cups.
>>
>
> i don't have cups installed and have samba running. check samba config -
> it should not be like this
>

I just checked make config and I have cups selected, but I'm pretty sure
it has always been selected. I'll deselect it and recompile and see what
happens.

Here is my smb.conf
[global]
dos charset = ASCII
unix charset = UTF8
workgroup = OFFICE
server string = Samba File Server
passdb backend = tdbsam
log file = /var/log/samba/log.%m
max log size = 50
load printers = No
os level = 60
preferred master = Yes
domain master = Yes
dns proxy = No
wins support = Yes
ldap ssl = no
#acl group control = Yes
#inherit acls = Yes
profile acls = Yes
#map acl inherit = Yes
delete veto files = Yes
veto files =
/.AppleDB/.AppleDesktop/.AppleDouble/.TemporaryItems/._.TemporaryItems/Network
Trash Folder/Temporary Items/
hide files =
/.cshrc/.history/.lesshst/.login/.login_conf/.mail_aliases/.mailrc/.profile/.rhosts/.shrc/.ssh/.subversion/.tmp/.usermin/.viminfo/.vimrc
/
map archive = No
store dos attributes = Yes
dos filemode = Yes

[homes]
browseable = No
comment = Home Directories
delete readonly = yes
writable = yes
***snip

>>
>> I never used cups before, but for some reason now I have to start cups
>> up so that samba can work.
>>
>> Regards
>> Reinhold
>>
>>


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


Re: Samba doesn't start after a ports upgrade

2008-05-13 Thread Wojciech Puchar

The problem was cups.


i don't have cups installed and have samba running. check samba config - 
it should not be like this




I never used cups before, but for some reason now I have to start cups up
so that samba can work.

Regards
Reinhold

On Tue, May 13, 2008 09:20, Reinhold wrote:

Hi


I have a samba server here at work. Last night I did a ports upgrade and
since then samba fails to start. It just hangs at the rc script.

# /usr/local/etc/rc.d/samba start
Removing stale Samba tdb files:  done
Starting nmbd.
Starting smbd.



# ps auxwww |grep smb
root 66854  0.0  0.7  5740  3464  ??  Ss9:09AM   0:00.01
/usr/local/sbin/nmbd -D -s /usr/local/etc/smb.conf
root 67466  0.0  1.3  9616  6756  p1  I+9:09AM   0:00.06
/usr/local/sbin/smbd -d 5 -s /usr/local/etc/smb.conf
root 67561  0.0  0.2  1596   924  p2  S+9:09AM   0:00.00 grep smb

and in the log file it looks like this [2008/05/13 09:14:16, 5]
lib/debug.c:debug_dump_status(391)
INFO: Current debug levels:
all: True/5
tdb: False/0
printdrivers: False/0
lanman: False/0
smb: False/0
rpc_parse: False/0
rpc_srv: False/0
rpc_cli: False/0
passdb: False/0
sam: False/0
auth: False/0
winbind: False/0
vfs: False/0
idmap: False/0
quota: False/0
acls: False/0
locking: False/0
msdfs: False/0
dmapi: False/0
[2008/05/13 09:14:16, 3] lib/fault.c:dump_core_setup(134)
Maximum core file size limits now -1(soft) -1(hard)
[2008/05/13 09:14:16, 3] smbd/sec_ctx.c:get_current_groups(167)
get_current_groups: user is in 3 groups: 0, 0, 5
[2008/05/13 09:14:16, 0] smbd/server.c:main(944)
smbd version 3.0.28a started. Copyright Andrew Tridgell and the Samba Team
1992-2008
[2008/05/13 09:14:16, 2] smbd/server.c:main(948)
uid=0 gid=0 euid=0 egid=0 [2008/05/13 09:14:16, 4]
smbd/build_options.c:output(45)
Build environment:
[2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
Built by:[EMAIL PROTECTED]
[2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
Built on:Tue May 13 08:52:37 BST 2008
[2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
Built using: cc
[2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
Build host:  FreeBSD fbsd01.gim.local 6.3-STABLE FreeBSD 6.3-STABLE
#1: Mon May 12 18:47:12 BST 2008
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYKERN  i386
[2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
SRCDIR:  /usr/ports/net/samba3/work/samba-3.0.28a/source
[2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
BUILDDIR:/usr/ports/net/samba3/work/samba-3.0.28a/source
[2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)


And loads of other stuff that looks the same as above
It ends with this
[2008/05/13 09:14:16, 3] printing/pcap.c:pcap_cache_reload(117)
reloading printcap cache [2008/05/13 09:14:16, 5]
printing/print_cups.c:cups_cache_reload(94)
reloading cups printcap cache [2008/05/13 09:16:46, 0]
printing/print_cups.c:cups_connect(69)
Unable to connect to CUPS server localhost:631 - Operation timed out
[2008/05/13 09:16:46, 3] printing/pcap.c:pcap_cache_reload(223)
reload status: error [2008/05/13 09:16:46, 3]
printing/pcap.c:pcap_cache_reload(117)
reloading printcap cache [2008/05/13 09:16:46, 5]
printing/print_cups.c:cups_cache_reload(94)
reloading cups printcap cache


Any help please, my whole office is down at the moment :-(


Regards
Reinhold


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





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



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


Re: Samba doesn't start after a ports upgrade

2008-05-13 Thread Reinhold
Woot, its back up.

The problem was cups.

I never used cups before, but for some reason now I have to start cups up
so that samba can work.

Regards
Reinhold

On Tue, May 13, 2008 09:20, Reinhold wrote:
> Hi
>
>
> I have a samba server here at work. Last night I did a ports upgrade and
> since then samba fails to start. It just hangs at the rc script.
>
> # /usr/local/etc/rc.d/samba start
> Removing stale Samba tdb files:  done
> Starting nmbd.
> Starting smbd.
>
>
>
> # ps auxwww |grep smb
> root 66854  0.0  0.7  5740  3464  ??  Ss9:09AM   0:00.01
> /usr/local/sbin/nmbd -D -s /usr/local/etc/smb.conf
> root 67466  0.0  1.3  9616  6756  p1  I+9:09AM   0:00.06
> /usr/local/sbin/smbd -d 5 -s /usr/local/etc/smb.conf
> root 67561  0.0  0.2  1596   924  p2  S+9:09AM   0:00.00 grep smb
>
> and in the log file it looks like this [2008/05/13 09:14:16, 5]
> lib/debug.c:debug_dump_status(391)
> INFO: Current debug levels:
> all: True/5
> tdb: False/0
> printdrivers: False/0
> lanman: False/0
> smb: False/0
> rpc_parse: False/0
> rpc_srv: False/0
> rpc_cli: False/0
> passdb: False/0
> sam: False/0
> auth: False/0
> winbind: False/0
> vfs: False/0
> idmap: False/0
> quota: False/0
> acls: False/0
> locking: False/0
> msdfs: False/0
> dmapi: False/0
> [2008/05/13 09:14:16, 3] lib/fault.c:dump_core_setup(134)
> Maximum core file size limits now -1(soft) -1(hard)
> [2008/05/13 09:14:16, 3] smbd/sec_ctx.c:get_current_groups(167)
> get_current_groups: user is in 3 groups: 0, 0, 5
> [2008/05/13 09:14:16, 0] smbd/server.c:main(944)
> smbd version 3.0.28a started. Copyright Andrew Tridgell and the Samba Team
> 1992-2008
> [2008/05/13 09:14:16, 2] smbd/server.c:main(948)
> uid=0 gid=0 euid=0 egid=0 [2008/05/13 09:14:16, 4]
> smbd/build_options.c:output(45)
> Build environment:
> [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
> Built by:[EMAIL PROTECTED]
> [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
> Built on:Tue May 13 08:52:37 BST 2008
> [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
> Built using: cc
> [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
> Build host:  FreeBSD fbsd01.gim.local 6.3-STABLE FreeBSD 6.3-STABLE
> #1: Mon May 12 18:47:12 BST 2008
> [EMAIL PROTECTED]:/usr/obj/usr/src/sys/MYKERN  i386
> [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
> SRCDIR:  /usr/ports/net/samba3/work/samba-3.0.28a/source
> [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
> BUILDDIR:/usr/ports/net/samba3/work/samba-3.0.28a/source
> [2008/05/13 09:14:16, 4] smbd/build_options.c:output(45)
>
>
> And loads of other stuff that looks the same as above
> It ends with this
> [2008/05/13 09:14:16, 3] printing/pcap.c:pcap_cache_reload(117)
> reloading printcap cache [2008/05/13 09:14:16, 5]
> printing/print_cups.c:cups_cache_reload(94)
> reloading cups printcap cache [2008/05/13 09:16:46, 0]
> printing/print_cups.c:cups_connect(69)
> Unable to connect to CUPS server localhost:631 - Operation timed out
> [2008/05/13 09:16:46, 3] printing/pcap.c:pcap_cache_reload(223)
> reload status: error [2008/05/13 09:16:46, 3]
> printing/pcap.c:pcap_cache_reload(117)
> reloading printcap cache [2008/05/13 09:16:46, 5]
> printing/print_cups.c:cups_cache_reload(94)
> reloading cups printcap cache
>
>
> Any help please, my whole office is down at the moment :-(
>
>
> Regards
> Reinhold
>
>
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to
> "[EMAIL PROTECTED]"
>
>


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


Re: [samba 3.0.28a,1) PANIC: tdb_reopen_all failed

2008-05-11 Thread Gilles
On Sun, 11 May 2008 00:17:03 +0200, Gilles <[EMAIL PROTECTED]>
wrote:
>No problem there. I did create my own /usr/local/etc/smb.conf, and
>smbpasswd is living under /usr/local/etc/samba/. The n-1 version
>worked fine, and this version was installed about a week ago.

I uninstalled, recompiled the Ports. Hopefully, this error won't occur
again. Thanks.

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


Re: [samba 3.0.28a,1) PANIC: tdb_reopen_all failed

2008-05-10 Thread Gilles
On Sat, 10 May 2008 23:08:45 +0200, Mel
<[EMAIL PROTECTED]> wrote:
>Not sure it's related, but did you read the message you get before you 
>installed this version?
>( cd /usr/ports/net/samba3 && make pre-everything)

# cd /usr/ports/net/samba3 && make pre-everything
===>  NOTICE: This version of port has changed location of Samba
password
===>  NOTICE: (smbpasswd) directory. Files in '/usr/local/private'
===>  NOTICE: have moved to '/usr/local/etc/samba'.

No problem there. I did create my own /usr/local/etc/smb.conf, and
smbpasswd is living under /usr/local/etc/samba/. The n-1 version
worked fine, and this version was installed about a week ago.

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


Re: [samba 3.0.28a,1) PANIC: tdb_reopen_all failed

2008-05-10 Thread Mel
On Saturday 10 May 2008 15:40:02 Gilles wrote:

> [2008/05/10 10:29:59, 0] lib/util_tdb.c:tdb_log(664)
>   tdb(/var/db/samba/locking.tdb): tdb_reopen: open failed (No such
> file or directory)

> FWIW, I downloaded the latest ports and compiled it recently to get
> samba-3.0.28a,1. I didn't get this type of error with the previous
> version. Is it possible to downgrade to a stable version?

Not sure it's related, but did you read the message you get before you 
installed this version?
( cd /usr/ports/net/samba3 && make pre-everything)

-- 
Mel

Problem with today's modular software: they start with the modules
and never get to the software part.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: samba

2008-03-23 Thread Julius Huang


On Mar 23, 2008, at 12:15 , MD Keith wrote:


Thank you,

 That did it for me also,  so what does that change do? change hash  
etc uses for

sending passwords?



I think M$ change LM default Auth setting to make Vista a little more  
Secure,

 but break some old Samba which does not support some Auth Method.

This is quite common problem when Vista connect to old or low end NAS.

J.


Again thanks for the fix

Mark



On Sat, Mar 22, 2008 at 12:52 PM, Julius Huang  
<[EMAIL PROTECTED]> wrote:

Hi,


On Mar 22, 2008, at 02:02 , MD Keith wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Greetings, I have a FreeBSD box i set up long ago as a file server
>
> has worked great till I had to get a better laptop with gfx card to
> keep
> up with my SecondLife Addiction.  and now can't get the installed
> Vista Os to connect to it.
>

Try change LmCompatibilityLevel to '0' or '1' on Vista using regedt32.

It is under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa".

Works for me.

J.

> Help would be appreciated,
>
> running 5.4-RELEASE FreeBSD 5.4-RELEASE #0 on the box
>
> Thanks in advance,
>  Wolf
>
>
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1.4.7 (MingW32)
> Comment: http://firegpg.tuxfamily.org
>
> iD8DBQFH4/grLYy55nbmwbwRAo4gAJ90NYqAIE9Mgxevh9SIlLdFv93BzACeOGQt
> crK8s0gUSNtkI4w6Tbv4dGk=
> =0BQG
> -END PGP SIGNATURE-
> ___
> freebsd-questions@freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> To unsubscribe, send any mail to "freebsd-questions-
> [EMAIL PROTECTED]"




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


Re: samba

2008-03-22 Thread MD Keith
Thank you,

 That did it for me also,  so what does that change do? change hash etc uses
for
sending passwords?

Again thanks for the fix

Mark



On Sat, Mar 22, 2008 at 12:52 PM, Julius Huang <[EMAIL PROTECTED]>
wrote:

> Hi,
>
>
> On Mar 22, 2008, at 02:02 , MD Keith wrote:
> > -BEGIN PGP SIGNED MESSAGE-
> > Hash: SHA1
> >
> > Greetings, I have a FreeBSD box i set up long ago as a file server
> >
> > has worked great till I had to get a better laptop with gfx card to
> > keep
> > up with my SecondLife Addiction.  and now can't get the installed
> > Vista Os to connect to it.
> >
>
> Try change LmCompatibilityLevel to '0' or '1' on Vista using regedt32.
>
> It is under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa".
>
> Works for me.
>
> J.
>
> > Help would be appreciated,
> >
> > running 5.4-RELEASE FreeBSD 5.4-RELEASE #0 on the box
> >
> > Thanks in advance,
> >  Wolf
> >
> >
> > -BEGIN PGP SIGNATURE-
> > Version: GnuPG v1.4.7 (MingW32)
> > Comment: http://firegpg.tuxfamily.org
> >
> > iD8DBQFH4/grLYy55nbmwbwRAo4gAJ90NYqAIE9Mgxevh9SIlLdFv93BzACeOGQt
> > crK8s0gUSNtkI4w6Tbv4dGk=
> > =0BQG
> > -END PGP SIGNATURE-
> > ___
> > freebsd-questions@freebsd.org mailing list
> > http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> > To unsubscribe, send any mail to "freebsd-questions-
> > [EMAIL PROTECTED]"
>
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: samba

2008-03-22 Thread Gerard
On Sun, 23 Mar 2008 00:52:22 +0800
Julius Huang <[EMAIL PROTECTED]> wrote:

> On Mar 22, 2008, at 02:02 , MD Keith wrote:

> > Greetings, I have a FreeBSD box i set up long ago as a file server
> >
> > has worked great till I had to get a better laptop with gfx card
> > to keep up with my SecondLife Addiction.  and now can't get the installed
> > Vista Os to connect to it.

> Try change LmCompatibilityLevel to '0' or '1' on Vista using regedt32.
> 
> It is under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa".
> 
> Works for me.

Check out this URL for further information:

http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/76052.mspx?mfr=true


-- 
Gerard
[EMAIL PROTECTED]

Croll's Query:  If tin whistles are made of tin, what are foghorns made of?


signature.asc
Description: PGP signature


Re: samba

2008-03-22 Thread Julius Huang

Hi,


On Mar 22, 2008, at 02:02 , MD Keith wrote:

-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Greetings, I have a FreeBSD box i set up long ago as a file server

has worked great till I had to get a better laptop with gfx card to  
keep

up with my SecondLife Addiction.  and now can't get the installed
Vista Os to connect to it.



Try change LmCompatibilityLevel to '0' or '1' on Vista using regedt32.

It is under "HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa".

Works for me.

J.


Help would be appreciated,

running 5.4-RELEASE FreeBSD 5.4-RELEASE #0 on the box

Thanks in advance,
 Wolf


-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.7 (MingW32)
Comment: http://firegpg.tuxfamily.org

iD8DBQFH4/grLYy55nbmwbwRAo4gAJ90NYqAIE9Mgxevh9SIlLdFv93BzACeOGQt
crK8s0gUSNtkI4w6Tbv4dGk=
=0BQG
-END PGP SIGNATURE-
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions- 
[EMAIL PROTECTED]"


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


Re: samba

2008-03-21 Thread Werewolf
Thanks for pointing that out
So attaching the smb.conf file from the
/usr/local/etc directory

uname -a
FreeBSD server.ZOO 5.4-RELEASE FreeBSD 5.4-RELEASE #0: Sun May  8
10:21:06 UTC 2005
[EMAIL PROTECTED]:/usr/obj/usr/src/sys/GENERIC  i386

smbstatus
Samba version 2.2.12
Service  uid  gid  pid machine
--
public   nobody   nobody   58932   jennifer (192.168.42.34) Fri Mar
21 18:00:24 2008

No locked files

Later


Werewolf6851 <[EMAIL PROTECTED]>

===
 GPG key 76E6C1BC with following fingerprint
D508 2C9D B3A9 2F0E E472  95A8 2D8C B9E6 76E6 C1BC
===

Mal: "If anyone gets nosy, just...you know... shoot 'em."

Zoe: "Shoot 'em?"

Mal: "Politely."
--Episode #1, "Serenity"


Eduardo Cerejo wrote:
>> Hash: SHA1
>>
>> Greetings, I have a FreeBSD box i set up long ago as a file server
>>
>> has worked great till I had to get a better laptop with gfx card to keep
>> up with my SecondLife Addiction.  and now can't get the installed
>> Vista Os to connect to it.
>>
>> Help would be appreciated,
>>
>> running 5.4-RELEASE FreeBSD 5.4-RELEASE #0 on the box
>>
>> Thanks in advance,
>>  Wolf
> 
> Don't know much about samba but placing your samba configuration file would 
> help many.
> 
# This is the main Samba configuration file. You should read the
# smb.conf(5) manual page in order to understand the options listed
# here. Samba has a huge number of configurable options (perhaps too
# many!) most of which are not shown in this example
#
# Any line which starts with a ; (semi-colon) or a # (hash) 
# is a comment and is ignored. In this example we will use a #
# for commentry and a ; for parts of the config file that you
# may wish to enable
#
# NOTE: Whenever you modify this file you should run the command "testparm"
# to check that you have not many any basic syntactic errors. 
#
#=== Global Settings =
[global]

# workgroup = NT-Domain-Name or Workgroup-Name, eg: REDHAT4
   workgroup = ZOO

# server string is the equivalent of the NT Description field
   server string = %h Samba Server

# This option is important for security. It allows you to restrict
# connections to machines which are on your local network. The

# following example restricts access to two C class networks and
# the "loopback" interface. For more examples of the syntax see
# the smb.conf man page
#hosts allow = 192.168.242. 127.0.0.1
hosts allow = 192.168.42. 127.0.0.1

# If you want to automatically load your printer list rather
# than setting them up individually then you'll need this
;   load printers = yes

# you may wish to override the location of the printcap file
;   printcap name = /etc/printcap

# on SystemV system setting printcap name to lpstat should allow
# you to automatically obtain a printer list from the SystemV spool
# system
;   printcap name = lpstat

# It should not be necessary to specify the print system type unless
# it is non-standard. Currently supported print systems include:
# bsd, sysv, plp, lprng, aix, hpux, qnx
;   printing = bsd

# Uncomment this if you want a guest account, you must add this to /etc/passwd
# otherwise the user "nobody" is used
;  guest account = pcguest

# this tells Samba to use a separate log file for each machine
# that connects
   log file = /var/log/log.%m

# Put a capping on the size of the log files (in Kb).
   max log size = 50

# Security mode. Most people will want user level security. See
# security_level.txt for details.
   security = user

# Use password server option only with security = server
# The argument list may include:
#   password server = My_PDC_Name [My_BDC_Name] [My_Next_BDC_Name]
# or to auto-locate the domain controller/s
#   password server = *
;   password server = 

# Note: Do NOT use the now deprecated option of "domain controller"
# This option is no longer implemented.

# You may wish to use password encryption. Please read
# ENCRYPTION.txt, Win95.txt and WinNT.txt in the Samba documentation.
# Do not enable this option unless you have read those documents
;  encrypt passwords = yes
encrypt passwords = yes

# Using the following line enables you to customise your configuration
# on a per machine basis. The %m gets replaced with the netbios name
# of the machine that is connecting
;   include = /usr/local/etc/smb.conf.%m

# Most people will find that this option gives better performance.
# See speed.txt and the manual pages for details
# You may want to add the following on a Linux system:
# SO_RCVBUF=8192 SO_SNDBUF=8192
   socket options = TCP_NODELAY 

# Configure Samba to use multiple interfaces
# If you have multiple network interfaces then you must list them
# here. See the man page for details.
;   interfaces = 192.168.12.2/24 192.168.13.2/24 

# Browser Control Options:
# set local master to no if you don't want Samba to become a ma

Re: samba

2008-03-21 Thread Eduardo Cerejo

> Hash: SHA1
> 
> Greetings, I have a FreeBSD box i set up long ago as a file server
> 
> has worked great till I had to get a better laptop with gfx card to keep
> up with my SecondLife Addiction.  and now can't get the installed
> Vista Os to connect to it.
> 
> Help would be appreciated,
> 
> running 5.4-RELEASE FreeBSD 5.4-RELEASE #0 on the box
> 
> Thanks in advance,
>  Wolf

Don't know much about samba but placing your samba configuration file would 
help many.
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Samba listing same file twice and omitting others

2008-03-15 Thread Rhomel Chinsio
I added
directory name cache size = 0
to smb.conf under [global] and the problem is gone. Thanks for the
reference. I'll have to watch this bug report.

On Sat, Mar 15, 2008 at 12:22 PM, Elliot Finley <[EMAIL PROTECTED]>
wrote:

> Found in FreeBSD-Current:
>
> >With prompting, I found a suitable pre-existing bug report.
> >
> >bugzilla.samba.org bug 4715
> >
> >They added the option to set "directory name cache size = 0" on a per
> share
> >basis.  This has fixed my problems.
>
>
> On Fri, 14 Mar 2008 18:27:25 -0700, you wrote:
>
> >Hi Everyone,
> >
> >I've got freebsd 7.0 RELEASE AMD64 running with samba and ZFS. Everything
> >seems to work, except samba is incorrectly reporting a small chunk of
> files.
> >
> >
> >For certain files, the file appears twice on a windows machine but
> reading
> >from both files yields the same file. For other files, it does not report
> >the file at all. But if you copy the same file again, it will ask you if
> you
> >want to replace the existing file. Additionally if you go onto the
> freebsd
> >box and do an ls on the files, they will appear correctly (missing ones
> show
> >up and duplicates do not).
> >
> >I tried two different windows boxes (vista and windows xp sp2) and both
> >behave the same way. All permissions are set to 777 on all files.
> >
> >Any idea if this is a samba bug?
> >___
> >freebsd-questions@freebsd.org mailing list
> >http://lists.freebsd.org/mailman/listinfo/freebsd-questions
> >To unsubscribe, send any mail to "
> [EMAIL PROTECTED]"
>
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Samba listing same file twice and omitting others

2008-03-15 Thread Elliot Finley
Found in FreeBSD-Current:

>With prompting, I found a suitable pre-existing bug report.
>
>bugzilla.samba.org bug 4715
>
>They added the option to set "directory name cache size = 0" on a per share 
>basis.  This has fixed my problems.


On Fri, 14 Mar 2008 18:27:25 -0700, you wrote:

>Hi Everyone,
>
>I've got freebsd 7.0 RELEASE AMD64 running with samba and ZFS. Everything
>seems to work, except samba is incorrectly reporting a small chunk of files.
>
>
>For certain files, the file appears twice on a windows machine but reading
>from both files yields the same file. For other files, it does not report
>the file at all. But if you copy the same file again, it will ask you if you
>want to replace the existing file. Additionally if you go onto the freebsd
>box and do an ls on the files, they will appear correctly (missing ones show
>up and duplicates do not).
>
>I tried two different windows boxes (vista and windows xp sp2) and both
>behave the same way. All permissions are set to 777 on all files.
>
>Any idea if this is a samba bug?
>___
>freebsd-questions@freebsd.org mailing list
>http://lists.freebsd.org/mailman/listinfo/freebsd-questions
>To unsubscribe, send any mail to "[EMAIL PROTECTED]"
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: [Samba] Re: Yikes! FreeBSD samba-3.0.26a_2, 1 is forbidden: "Remote Code Execution...

2007-12-14 Thread Charles Marcus

On 12/14/2007, W. D. ([EMAIL PROTECTED]) wrote:

When is it going to be fixed?  Does "soon" mean this century?
This year?  When?


Wow... someone needs to think before they speak.

This is free software. You are in no position to make demands or whine 
about things like this.


Besides - you're complaining to the wrong people - you need to find the 
FreeBSD ports maintainer for samba, and bug HIM (or her)...


--

Best regards,

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


Re: Samba and Swat are not restarting the daemons.

2007-10-11 Thread Lowell Gilbert
Lisandro Grullon <[EMAIL PROTECTED]> writes:

> I have install samba version:3.0.26a from ports, the daemons appear to be 
> working fine by enabling the apropiate parameters in rc.conf, yet I am 
> speriencing the issue where SWAT is showing as the smbd and nmbd are not 
> running nor will they restart. Can someone point me in the right direction of 
> what is going on. Why is swat no allowing the process to be manipulated 
> accordingly? Thanks in advance. Lisandro Grullon

The actual problem is not really clear to me:
Are you able to connect to the SMB shares? 
Are you able to connect to SWAT at all?
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: Samba, windows PDC and BDC

2007-09-10 Thread Andrea Venturoli

Darryl Hoar ha scritto:


I  have installed 6.2-release on a newer server, and would like to install
Samba on the machine.  Set it up as Backup Domain Controller and then
change its roll to Primary Domain Controller.  This is so I can get the
existing
security, accounts, etc from the existing domain to the new machine.


AFAIK samba cannot do BDC to a Windows PDC, so you'll have to find 
another way.


 bye
av.

P.S.
You might get better results if you asking on the samba mailing list.

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


  1   2   3   4   5   6   >