[Samba] roaming profiles multilanguage problem

2006-04-04 Thread Schoenfeld
Hallo,
i use a samba pdc (3.020) and OpenLdap on a SUSE 9.3 Server.
Everything works fine but the User have different PC's with French
Language Environment and some with German Environment.
My Problem is when a User logon at a German PC all German Folder would
be created/modified in his roaming Directory. When he logon on a French
PC he create/modify the french Folder. 
The Effect is that some Icons ( Taskbar) are often twice there. Once in
french and once in german. ( And in English, when he logon at a English
Workstation)
Has Anybody same Problems or an solution ??
Can't i define that the Roaming Profiles are always english ???

With regards
ingo  

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] remote BDC

2006-04-04 Thread Dmitry Melekhov

Hello!

I want to have BDC in another subnet.
I.e.

PDC--router--4Mbit linkrouterBDC---users

I want users workstations logins into PDC if link is up and into BDC.

If I setup BDC as
/|domain master = no|//|
domain logons = yes

then users logins into BDC although #1c records in wins are for BDC too.

Is it possible to implement PDC-BDC as I want? :-)

Thank you!

|/

--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Slow performance to samba server with OSX client

2006-04-04 Thread Poep Stamper
Dear List,

I'm hoping there is someone that might give me some pointers to
solving the following problem. I run Mac OSX Tiger and perform a
filecopy using Finder to a samba share on a Gentoo Linux machine
running samba version 3.0.14a. Copying a 1GB file to the fileserver
takes roughly 2 hours (33,9 MB in 4 min). This means 142 kb/s over a
Gigabit network.

Now here is the strange thing:
When I log into the Gentoo box using SSH, during the filetransfer and
run tcpdump (dumping output through the terminal) the transfer speed
shoots up and the copying takes less than one minute. 700MB in 30
seconds, or 23 MB/s. I included a small piece of the tcpdump in the
hope it helps.
When I stop the tcpdump or route it to /dev/null the speed drops.
Whenever there is a process that constantly pushes information to the
ssh terminal the speed picks up again.

The Gentoo machine uses a realtek Gigabit nic (dmesg: r8169 Gigabit
Ethernet driver 1.2 loaded). The switch is also Gigabit as well as the
iMac (intel). The cable is correctly and completely wired.

1. the fileserver samba version is 3.0.14a
2. the samba configuration is vanilla (with one share added)
3. the realtek nic is in full duplex mode (see ethtool dump)
4. the imac samba version is 3.0.10
5. performance using scp is acceptable (11.5 MB/s)
6. setting the delayed_ack on the iMac to 0 makes hardly any
difference (still 2 hours)

Tweaking the samba config helps a little, but nowhere near the 23MB/s
I get when running tcpdump. I also thought it might have something to
do with lookups dns or lmhost or something, but that doesn't explain
this.

I'm lost.

Cheers,

Pim



- delayed ack -
sudo sysctl -w net.inet.tcp.delayed_ack=0


--- SCP COPY 
VTS_01_2.VOB  
   20%  206MB  11.5MB/s   01:11 ETA


- SMB CONF ---
Vanilla (from smb.conf.example)
+
[music]
   comment = Music
   path = /mnt/music
   public = yes
   writable = yes
   browseable = yes
   guest ok = yes



- ETHTOOL -
fileserver everything # ethtool eth1
Settings for eth1:
Supported ports: [ TP ]
Supported link modes:   10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Supports auto-negotiation: Yes
Advertised link modes:  10baseT/Half 10baseT/Full
100baseT/Half 100baseT/Full
1000baseT/Full
Advertised auto-negotiation: Yes
Speed: 1000Mb/s
Duplex: Full
Port: Twisted Pair
PHYAD: 0
Transceiver: internal
Auto-negotiation: on
Link detected: yes






 TCP DUMP 

22:49:55.710260 IP 192.168.10.15.49392 > 192.168.10.12.139: .
86804678:86806126(1448) ack 76433 win 65535  NBT Packet
22:49:55.711544 IP 192.168.10.12.139 > 192.168.10.15.49392: . ack
86866186 win 17965 
22:49:55.712439 IP 192.168.10.12.22 > 192.168.10.15.49296: P
12769520:12769712(192) ack 14593 win 2056 
22:49:55.712567 IP 192.168.10.15.49392 > 192.168.10.12.139: .
86866186:86867634(1448) ack 76484 win 65535  NBT Packet
22:49:55.714724 IP 192.168.10.12.22 > 192.168.10.15.49296: P
12769904:12770096(192) ack 14593 win 2056 
22:49:55.714787 IP 192.168.10.15.49392 > 192.168.10.12.139: .
86927694:86929142(1448) ack 76535 win 65535  NBT Packet
22:49:55.716477 IP 192.168.10.12.22 > 192.168.10.15.49296: P
12770448:12770640(192) ack 14593 win 2056 
22:49:55.716605 IP 192.168.10.12.22 > 192.168.10.15.49296: P
12770640:12770832(192) ack 14593 win 2056 
22:49:55.716820 IP 192.168.10.12.22 > 192.168.10.15.49296: P
12770992:12771184(192) ack 14593 win 2056 
22:49:55.716936 IP 192.168.10.12.22 > 192.168.10.15.49296: P
12771184:12771376(192) ack 14593 win 2056 
22:49:55.717046 IP 192.168.10.12.22 > 192.168.10.15.49296: P
12771376:12771568(192) ack 14593 win 2056 
22:49:55.717161 IP 192.168.10.12.22 > 192.168.10.15.49296: P
12771568:12771760(192) ack 14593 win 2056 
22:49:55.717271 IP 192.168.10.12.22 > 192.168.10.15.49296: P
12771760:12771952(192) ack 14593 win 2056 
22:49:55.717382 IP 192.168.10.12.22 > 192.168.10.15.49296: P
12771952:12772144(192) ack 14593 win 2056 
22:49:55.717492 IP 192.168.10.12.22 > 192.168.10.15.49296: P
12772144:12772336(192) ack 14593 win 2056 
22:49:55.717619 IP 192.168.10.12.22 > 192.168.10.15.49296: P
12772336:12772528(192) ack 14593 win 2056 
22:49:55.717730 IP 192.168.10.12.22 > 192.168.10.15.49296: P
12772528:12772720(192) ack 14593 win 2056 
22:49:55.717844 IP 192.168.10.12.22 > 192.168.10.15.49296: P
12772720:12772912(192) ack 14593 win 2056 
22:49:55.717955 IP 192.168.10.12.22 > 192.168.10.15.49296: P
12772912:12773104(192) ack 14593 win 2056 
22:49:55.718056 IP 192.168.10.15.49392 > 192.168.10.12.139: P
86988510:86989202(692) ack 76535 win 65535  NBT Packet
22:49:55.718058 IP 192.168.10.15.

[Samba] Facing problem while configuring samba

2006-04-04 Thread prasad
Would request any help to resolve this problem:
Operating System: HPUX 11.23
Itanium Server
Installed the latest version of samba 3.021

Installed all the necessary libraries
Please tell me which library should i copy and where?
Am totally confused and would request anyone to help me out here.

/usr/lib/hpux32/dld.so: Unable to find library 'liblber-2.2.so'. 

Regards,

Prasad S Shetty
Sr Manager - IT
CIBIL

This document is classified as :  (-) Public  (-) Internal (X) 
Departmental  (-) Confidential   (-) Highly Confidential 

"This  e-mail message  may  contain  confidential, proprietary or legally
privileged  information.It should not  be used by anyone who is not
the original intended recipient. If you have erroneously received this
message, please delete it immediately  and  notify  the  sender.  The
recipient acknowledges that Credit Information Bureau (India) Limited, is unable
to exercise  control or ensure or guarantee the integrity of/over the
contents of the information   contained  in  e-mail  transmissions and
further acknowledges  that  any  views  expressed  in this message are those of
the individual sender and no binding nature of the message shall be implied
or assumed unless  the sender does so expressly with due authority of
Credit Information Bureau (India) Limited. Before opening any attachments
please check them for viruses and defects."

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re[2]: [Samba] Russian CHARS

2006-04-04 Thread Vladimir Parkhomenko
Hello Arkadiy,

thank you for reply, but

I see russian from the command 'smbclient' :

# smbclient //srv2/dvd$ password -U user -c 'ls'
Domain=[NKMZ] OS=[Windows Server 2003 3790 Service Pack 1] Server=[Windows 
Server 2003 5.2]
  .   D0  Sat Apr  1 13:32:28 2006
  ..  D0  Sat Apr  1 13:32:28 2006
  Mr. & Mrs. SmithD0  Fri Aug 12 14:02:43 2005
  What Women Want D0  Wed Aug 17 09:27:11 2005
  Русские буквы   D0  Sat Apr  1 14:10:08 2006

40960 blocks of size 131072. 40959 blocks available

I have env. :
 LANG=en_US
and in smb.conf :
   display charset = KOI8-R
   dos charset = 866
   unix charset = KOI8-R


Sunday, April 2, 2006, 3:50:03 AM, you wrote:

ACA>   Vladimir, here's what I use in my /etc/fstab

ACA> //moshe/Admin   /stmoshecifs   
ACA> noauto,Username=Admin,iocharset=cp1251,codepage=866 0 0

ACA>   of course, my FC4 is rusified, but I decided to use
ACA> cp1251. In your case I think you should try to experiment with
ACA> iocharset=KOI8-R but codepage is the server-side, where (on Win2k3) it is 
866.

>>Hello samba,
>>
>>  How can mount (smbmount) MSWIN2003 resource from Linux client
>>  (RHEL4U2) to see russian.
>>
>>  I am using following command:
>>  # smbmount //srv2/v$ /mnt/backup/srv2 -o
>> 'credentials=userpass,iocharset=KOI8-R,codepage=koi8r'
>>
>>  What I should use env. variables  or additional parameters from this
>>  command (smbmount) ?
>>
>>  I see only that (but need russian and eng):
>>What Women Want
>>-=БЮ¬Ф=
>>-=БЮ¬Ф=_¦гЮг¬=ёЮЦ¬L=
>>-=Ю=-Б¬--
>>



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Automatically create profile directory

2006-04-04 Thread Steve Feehan
On 4/4/06, Mont Rothstein <[EMAIL PROTECTED]> wrote:
> I have my Samba PDC setup to use roaming profiles.  If the user's profile
> directory exists (ex: /var/lib/samba/profiles/someuser) with the correct
> permissions and ownership then it works fine.
>
> However, I expect (incorrectly?) that Samba would auto-create the user's
> profile directory the first time the user logged in.  Am I wrong or have I
> missed something?
>
> Thanks,
> -Mont
> --
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba
>

The parent directory has to be writable by the user since the profile
directory is created with the privilege of that user. So something
like:

  chmod 1777 /var/lib/samba/profiles

Should be sufficient. Not pretty, but sufficient.

--
Steve Feehan
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Question regarding samba and smbldap-tools

2006-04-04 Thread Mario Enrico Ragucci
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi everyone,

I suceeded in setting up a samba server with ldap authentication using
smbldap-tools. Everything is fine except one thing:
If a user is changing his password inside windows client the password is
encrypted and saved in ldap tree. I need this password as cleartext
'cause a webmail application only matches with cleartext passwords.

I tried to set
hash_encrypt="CLEARTEXT" in smbldap.conf and
password program="smbldap-passwd -u %u" in smb.conf
but this has no effect, the password is still encrypted.

I also tried to set
encrypt passwords = true inside smb.conf,
but then no one is able to log on anymore.

When I set the userpassword with smbldap-passwd it is saved as cleartext.

Could anyone tell me which mistake I made?

Thank you in advance,

Mario
-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEMrcDr6MOIsXBrjARAqi9AJ9vh0EIyiPNt9mAq3ALw1pvujK6iwCgjIA0
Fb8sKNuXetl16/r7tbJft3M=
=PZL4
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Can't connect XP to Samba domain: (user name could not be found)

2006-04-04 Thread Andrew Galdes
On Apr 05, 2006 08:47 AM, Steve A <[EMAIL PROTECTED]> wrote:

> I have done all I can think of to make Samba be a PDC, but I can't get
> my
> Windows XP-SP2 client to join the domain. I've already edited the
> Group
> Policy for the roaming profile thingumyjig. I am asked for the
> user/pass (I
> use root) to add the machine to the domain, and the error is:

What do you get if you do:
# grep "root" /etc/samba/smbpasswd

If you don't get anything then try this:
#smbpasswd -a root
-and set a password

and then use that username "root" and the password you set to join the
domain.

-Andrew

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Automatically create profile directory

2006-04-04 Thread Mont Rothstein
I have my Samba PDC setup to use roaming profiles.  If the user's profile
directory exists (ex: /var/lib/samba/profiles/someuser) with the correct
permissions and ownership then it works fine.

However, I expect (incorrectly?) that Samba would auto-create the user's
profile directory the first time the user logged in.  Am I wrong or have I
missed something?

Thanks,
-Mont
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Can't connect XP to Samba domain: (user name could not be found)

2006-04-04 Thread Chris Anders
Have you created a machine trust account ? thats the username its not  
happy about..


if you man smbpasswd (if your using tdbsam or smbpasswd as your  
backend) you will see the option -m
thus smbpasswd -a -m testmachine$ (dont forget the $) will add the  
machine account testmachine for you to join the domain


hope that helps

Kind Regards,


Chris Anders
Network Engineer

Anders Networks
Mobile - 0421 580 017
Email   - [EMAIL PROTECTED]
Web - http://www.anders.net.au

---
This message contains confidential information and is intended only f  
or the individual named. If you are not the named addressee you s  
hould not disseminate, distribute or copy this e-mail. Please notify  
t he sender immediately by e-mail if you have received this e-mail by  
mistake and delete this e-mail from your system. E-mail transmission  
ca n not be guaranteed to be secure or error-free as information  
could be intercepted, corrupted, lost, destroyed, arrive late or  
incomplete, or contain viruses. The sender therefore does not accept  
liability for any errors or omissions in the contents of this  
message, which arise as a result of e-mail transmission. If  
verification is required please request a hard-copy version.



On 05/04/2006, at 8:47 AM, Steve A wrote:

I have done all I can think of to make Samba be a PDC, but I can't  
get my
Windows XP-SP2 client to join the domain.  I've already edited the  
Group
Policy for the roaming profile thingumyjig.  I am asked for the  
user/pass (I

use root) to add the machine to the domain, and the error is:

"The user name could not be found".

Here's my smb.conf, and group information.

=
[global]
workgroup = SAMBA-DOMAIN
netbios name = SAMBA
server string = KJN Server
smb ports = 139
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = No
show add printer wizard = No
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
ldap ssl = no

[netlogon]
path = /export/netlogon
browseable = No

[profiles]
path = /export/profiles
read only = No
=
Domain Admins (S-1-5-21-1171369666-3077905698-890339982-512) -> wheel
Domain Guests (S-1-5-21-1171369666-3077905698-890339982-514) -> nobody
Domain Users (S-1-5-21-82349369-3985415093-3734604251-513) -> users
=

Obviously root is a member of wheel, so I would have thought this  
would

allow me to join XP to the domain. root is also defined in
/etc/samba/smbpasswd, with the same password as the system root user.

There seems to be a lot of info on Samba 2.x and PDC, but not Samba  
3.  Does

anyone have any ideas?

Many thanks,
Steve :)



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Can't connect XP to Samba domain: (user name could not be found)

2006-04-04 Thread Steve A
I have done all I can think of to make Samba be a PDC, but I can't get my 
Windows XP-SP2 client to join the domain.  I've already edited the Group 
Policy for the roaming profile thingumyjig.  I am asked for the user/pass (I 
use root) to add the machine to the domain, and the error is:

"The user name could not be found".

Here's my smb.conf, and group information.

=
[global]
workgroup = SAMBA-DOMAIN
netbios name = SAMBA
server string = KJN Server
smb ports = 139
socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
load printers = No
show add printer wizard = No
domain logons = Yes
os level = 65
preferred master = Yes
domain master = Yes
ldap ssl = no

[netlogon]
path = /export/netlogon
browseable = No

[profiles]
path = /export/profiles
read only = No
=
Domain Admins (S-1-5-21-1171369666-3077905698-890339982-512) -> wheel
Domain Guests (S-1-5-21-1171369666-3077905698-890339982-514) -> nobody
Domain Users (S-1-5-21-82349369-3985415093-3734604251-513) -> users
=

Obviously root is a member of wheel, so I would have thought this would 
allow me to join XP to the domain. root is also defined in 
/etc/samba/smbpasswd, with the same password as the system root user.

There seems to be a lot of info on Samba 2.x and PDC, but not Samba 3.  Does 
anyone have any ideas?

Many thanks,
Steve :) 



-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Question regarding samba and smbldap-tools

2006-04-04 Thread Mario Enrico Ragucci
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1

Hi everyone,

I suceeded in setting up a samba server with ldap authentication using
smbldap-tools. Everything is fine except one thing:
If a user is changing his password inside windows client the password is
encrypted and saved in ldap tree. I need this password as cleartext
'cause a webmail application only matches with cleartext passwords.

I tried to set
hash_encrypt="CLEARTEXT" in smbldap.conf and
password program="smbldap-passwd -u %u" in smb.conf
but this has no effect, the password is still encrypted.

I also tried to set
encrypt passwords = true inside smb.conf,
but then no one is able to log on anymore.

When I set the userpassword with smbldap-passwd it is saved as cleartext.

Could anyone tell me which mistake I made?

Thank you in advance,

Mario

-BEGIN PGP SIGNATURE-
Version: GnuPG v1.4.2.2 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEMrpyr6MOIsXBrjARAoJQAJ9UCXOZ4oQtr3vN6nhOLASPaTBpfwCfQOzY
Hn7sg33B7owJK65Zix9kCLY=
=um0G
-END PGP SIGNATURE-
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] degraded performance under domain login load

2006-04-04 Thread Chris
On Tuesday 04 April 2006 08:50, Chris Anders wrote:
> Any ideas ?

Wondering if there's some difference in certain default parameter 
settings between the two versions; parameters whose values are not 
being set in smb.conf and therefore the defaults are in place.
Try looking at a diff of the output of "testparm -sv" between the two 
versions.

Chris
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


RE: [Samba] degraded performance under domain login load

2006-04-04 Thread Mark Sarria
I had a similar problem to this, but as an add bonus my client stations will
also drop connection. We found the problem to be hardware related and not
Software. We test the software and found it to perform just fine in normal
conditions, so we started to test hardware, hardware being switch, network
cards etc... We started with network cards. It preformed the same then we
started to replace our networked switch with smaller 4 port switch just to
test the performance and AHAA that was the problem. The switch was failing.
Of course it was an unmanaged switch so we just replaced. 

Hope this helps
Mark

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
Chris Anders
Sent: Tuesday, April 04, 2006 6:11 AM
To: samba@lists.samba.org
Subject: Re: [Samba] degraded performance under domain login load

Sorry guys i failed to mention that under a normal load where only a  
few people would login at the one time, there was no sign of degraded  
performance however when everyone tried to login at once thats when  
these results occurred.. so for now people will login 3 machines at a  
time which is obviously not acceptable.

Kind Regards,


Chris Anders
Network Engineer

Anders Networks
Mobile - 0421 580 017
Email   - [EMAIL PROTECTED]
Web - http://www.anders.net.au

---
This message contains confidential information and is intended only f  
or the individual named. If you are not the named addressee you s  
hould not disseminate, distribute or copy this e-mail. Please notify  
t he sender immediately by e-mail if you have received this e-mail by  
mistake and delete this e-mail from your system. E-mail transmission  
ca n not be guaranteed to be secure or error-free as information  
could be intercepted, corrupted, lost, destroyed, arrive late or  
incomplete, or contain viruses. The sender therefore does not accept  
liability for any errors or omissions in the contents of this  
message, which arise as a result of e-mail transmission. If  
verification is required please request a hard-copy version.


On 04/04/2006, at 10:20 PM, Chris Anders wrote:

> Hi guys,
>
> Not sure how to diagnose this problem however i have recently  
> upgraded one of my schools sites from gentoo to freebsd which moved  
> us from samba 3.0.14 to 3.0.21b and the first thing I noticed was  
> when the students came to login if they all logged in at once the  
> performance of login was crippled to a near standstill!
>
> As a test i swapped in the gentoo box and forced the upgrade to  
> samba 3.0.21b (incase it was distro related) and to my surprise the  
> same problem occurred, a class will come into the computer lab all  
> try to login, kixtart will start do its login procedures and  
> everything would login at a snail pace, to the point kixtart will  
> lockup and generate errors!!!
>
> As the next test, i swaped the fresh installed freebsd system back  
> in removed the latest samba from ports and manually installed samba  
> 3.0.14 and the problem was resolved. This leads me to believe that  
> this is not distro specific at all, however a serious problem in  
> high load systems of login.
>
> Is there is a way to tune the latest versions of samba to combat  
> this problem as i even noticed loading some apps off the network,  
> if everyone is trying to access the same app at the same time that  
> it too will loads at a snail pace...
>
> I have monitored server load and smbd usage and nothing looks out  
> of the ordinary, i have watched logs with nothing standing out as a  
> problem...
>
> This computer lab only consists of 25 computers and the server is a  
> dual xeon with a 3ware card running raid5 using raptors, so it has  
> plenty of IO!
> The workstation OS is win2k w/sp4
>
> Any ideas ?
>
>
>
> Kind Regards,
>
>
> Chris Anders
> Network Engineer
>
> Anders Networks
> Mobile - 0421 580 017
> Email   - [EMAIL PROTECTED]
> Web - http://www.anders.net.au
>
> ---
> This message contains confidential information and is intended only  
> f or the individual named. If you are not the named addressee you s  
> hould not disseminate, distribute or copy this e-mail. Please  
> notify t he sender immediately by e-mail if you have received this  
> e-mail by mistake and delete this e-mail from your system. E-mail  
> transmission ca n not be guaranteed to be secure or error-free as  
> information could be intercepted, corrupted, lost, destroyed,  
> arrive late or incomplete, or contain viruses. The sender therefore  
> does not accept liability for any errors or omissions in the  
> contents of this message, which arise as a result of e-mail  
> transmission. If verification is required please request a hard- 
> copy version.
>
>
> -- 
> To unsubscribe from this list go to the following URL and read the
> instructions:  https://lists.samba.org/mailman/listinfo/samba

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lis

[Samba] How do I override the (apparently) default printer admin

2006-04-04 Thread Rob Tanner

Hi,

I am running v3.0.14a-2 (comes bundled with FC4) and have set it up as a 
print server.  I have pretty much set it up identically to the soon to 
be retired v2.2.7 server. 

From an XP, when I click on the Security tab in the printer properties 
on a printer being hosted on the server, and rather then seeing the list 
of admins configured in Samba, I see the builtin domain admin account 
which is actually disabled on the primary domain controller.  I don't 
specify that account anywhere, so Samba is obviously reading that from 
the PDC.  How do I override that so that Samba will pay attention to the 
admin list in smb.conf?


Thanks,
Rob

--

Rob Tanner
UNIX Services Manager
Linfield College, McMinnville OR
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Running a PDC and BDC with different revs of Samba

2006-04-04 Thread Glasier, Timothy A.
Anyone run with a PDC at 3.0.20 and a BDC at 3.0.11 or any other
combination?

Thanks,

Tim


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] OS X - Free space reporting issues.

2006-04-04 Thread Eric Warnke
We are putting into production a new samba server(s) with a combined
storage pool of several TB's of space.

One of the problems we encountered was that OS X ( 10.4.5 ) reported
free space incorrectly on very large values ( 650gb in our case ).  It
would report the free space as doubled for no apparent reason (
probably because it presumes values over a specific amount are 2k
blocks rather than 1k ).  We were able to overcome the problem by
stating a block size for the share larger than 1024.  In our case we
used "block size = 8192" and the problems went away(tm).

I wanted to post this information so that others with this problem, or
similar problems would have a place to start looking.

Cheers,
Eric Warnke
Systems Administrator - Research IT
State University of New York at Albany
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] get quota command - Example

2006-04-04 Thread Eric Warnke
I know when I went looking for a complete example of how to interface
with samba's quota system there was no good ones, so here it is.  I
developed this yesterday with a lot of trial and error.  Feel free to
use this in any way people feel fit.  With this script I can now get
correct used/free reporting based on the output of quota for both
users and groups.

I developed this because samba could not recognize a combination of
NFS and LVM's ext3 quota's through automount.  It was developed on
CentOS4.3 on a poweredge 2800 with shared SCSI storage.

It should work on many more systems than the default because it uses
the mount and quota commands directly, although this may cause some
problems in very large systems due to constant use of perl in the
background.  If nothing else this will serve as a starting point for
those attempting to make heads or tails of the documentation.

Cheers,
Eric Warnke
Systems Administrator - Research IT
State University of New York at Albany



#!/usr/bin/perl
#
# Copyright 2006 Eric Warnke <[EMAIL PROTECTED]>
# This application may be used for any purpose as long
# as credit is givin to Eric Warnke and to SUNY Albany
#
# This application interfaced SAMBA 3.X series cifs server with
# quota information available through the command line
# application /usr/bin/quota on Centos 4.3
#
# THIS APPLICATION WORKS FOR ME, BUT YOU MAY NEED TO MAKE
# CHANGES FOR IT TO WORK PROPERLY IN YOUR ENVIRONMENT!
#
# USE AT YOUR OWN RISK
#

# Setup safe env so that perl doesn't complain
$ENV{PATH} = ( '/bin', '/usr/bin' );

# Capture environment variables

# Directory for whom quota is to be checked
$directory = $ARGV[0];

# Type of query 2 = user 4 = group 1,3 not quite sure how they work in reality
$type = $ARGV[1];
if ( $type =~ /([1-4])/ ) {
$type = $1; # untaint
} else {
die("Incorrect type flag");
}

# UID or GID to be checked
$id = $ARGV[2];
if ( $id =~ /(\d+)/ ) {
$id = $1; # untaint
} else {
die("Is that really a uid or gid?");
}

# For some reason, despite what documentation states, samba always
# appears to pass the directory as "." ( quotes part of string )
# this maps to pwd of the script.
#
# This should be changed in samba to always be the full string or be dropped
# as an unnecessary argument
#
if ( $directory eq '"."' ) {
$directory = `/bin/pwd`;
chomp($directory);
}

# Debugging, useful for capturing arguments passed to script
#open(LOG,">>/tmp/log.txt");
#print LOG "$directory,$type,$id\n";
#close(LOG);

# Don't know what to do with these since they are never called
if ( $type == 1 || $type == 3 ) {
print "0 0 0 0 0 0 0\n";
exit;
}

# Capture the mount point mappings in the system
# this could have also been done through /proc
open(MOUNT, "/bin/mount|");
while ($line =  ) {
($def, $temp1, $mp, $temp2) = split(/ /, $line);
#print "$def,$mp\n";
$mount_point{$mp} = $def;
}
close(MOUNT);


# Find the mapping for the directory, we may have to loop here
# since with LVM we have to find the DEVICE that it's mapped to
#
# !! THIS MAY NEED TO BE CHANGED FOR YOUR SYSTEM !!
#
do {
@dirsplit = split(/\//,$directory);
for([EMAIL PROTECTED]; $i!=0; $i--) {
$test_dir = join("/",@dirsplit[0 .. $i]);
#print "t $test_dir\n";
last if ( $mount_point{$test_dir} ne "" );
}
$directory = $mount_point{$test_dir};
} until ( ($directory =~ /^\/dev\//)||($directory=~/^\S+:/) );

# Build the quota command necessary
#
if ( $type == 4 ) {
$typearg = "-g";
} else {
$typearg = "";
}

$cmd = "/usr/bin/quota $typearg $id";

# Open the output from quota, scan for the mountpoint device
# and then regurgitate the line with some small changes so that
# samba can understand it.
#
open(QUOTA,"$cmd|");
while ( $line =  ) {
if ( $line =~ /$directory/ ) {
$line = ;
print "2";
print join(" ",split(/\s+/,$line));
print "\n";
exit;
}
}
print "0 0 0 0 0 0 0\n";
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] wbinfo -t fails - 3.0.20b-3.4-SUSE

2006-04-04 Thread bdehn
All -

After running for months successfully one of our production Samba servers 
began giving an error yesterday: "The format of the specified computer 
name is invalid". I turned up the logging and wbinfo -t produces the 
following:

wbinfo -t
checking the trust secret via RPC calls failed
error code was NT_STATUS_INVALID_COMPUTER_NAME (0xc122)
Could not check secret

I have rejoined the domain (deleted the computer account), deleted tdb 
files, rebooted system and a few other smb.conf changes. None of them will 
correct the issue. What am I missing? The other Samba servers are fine.

Any help would be GREATLY appreciated!

Bob Dehn
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] authentication with Active Directory domain failure

2006-04-04 Thread Petrica Gasca
Hello,

I am trying to set up Samba 2.2.8a.2 on a IRIX 6.5 box
to authenticate with a Active Directory domain, and to
connect users via their windows password to their UNIX
folder.
I have set up all the options described in the
documentation but i keep getting this error when I try
to log in with the command "smbclient
//UNIXBOX_NAME/tmp -Ujohndoe%secret " : 
session setup failed: NT_STATUS_LOGON_FAILURE.
With the guest account or without a password for the
user it connects to the tmp share as in the TEST 7 of
the samba documentation.

The output for the log.nmbd file is this :

[2006/04/04 14:35:56, 0] nmbd/nmbd.c:(502)
  Got SIGHUP dumping debug info.
[2006/04/04 14:35:56, 0] nmbd/nmbd_workgroupdb.c:(289)
  dump_workgroups()
   dump workgroup on subnet   192.168.0.1: netmask= 
255.255.255.0:
DOMAIN(1) current master browser = UNKNOWN
UNIXBOX_NAME 40009b03 (Samba 2.2.8a.2)
[2006/04/04 14:35:56, 0] nmbd/nmbd_workgroupdb.c:(289)
  dump_workgroups()
   dump workgroup on subnet  UNICAST_SUBNET: netmask= 
192.168.0.1:
DOMAIN(1) current master browser = UNKNOWN
UNIXBOX_NAME 40009b03 (Samba 2.2.8a.2)


The output of the log.smbd file is the following:

2006/04/04 14:36:12, 0] smbd/server.c:(791)
  smbd version 2.2.8a.2 started.
  Copyright Andrew Tridgell and the Samba Team
1992-2002
[2006/04/04 14:36:15, 0] smbd/password.c:(1601)
  domain_client_validate: Domain password server not
available.


The smb.conf file looks like this :

; Configuration file for smbd.
;

; For the format of this file and comprehensive
descriptions of all the
; configuration option, please refer to the man page
for smb.conf(5).

; This is a sample configuration for IRIX 6.x systems
;
; The following configuration should suit most systems
for basic usage and
; initial testing. It gives all clients access to
their home directories and
; /usr/tmp and allows access to all printers returned
by lpstat.
;
[global]
   comment = Samba %v
   workgroup = "WORKGROUP"
   encrypt passwords = Yes
   security = domain
   password server = *
   wins proxy = yes

; this tells Samba to use a separate log file for each
machine
; that connects - default is single file named
/usr/samba/var/log.smb
;   log file = /usr/samba/var/log.%m

;  Set a max size for log files in Kb
   max log size = 50

;  You will need a world readable lock directory
;  if you want to support the file sharing modes for
multiple users
;  of the same files
   locking = yes
   lock directory = /usr/samba/var/locks

;  You need to test to see if this makes a difference
on your system
;   socket options = TCP_NODELAY SO_BROADCAST

;  Set the os level to > 32 if there is no NT server
for your workgroup
   os level = 0
   preferred master = no
   domain master = no
   local master = no
   wins support = no
   wins server = WINS_SRV_NAME

   preserve case = yes
   short preserve case = yes

;  These are the settings required for IRIX password
sync
   passwd program = /usr/bin/passwd %u
   passwd chat = *ew*password:* %n\n
*e-enter*new*password:* %n\n

;  Uncomment the following if you wish to use
encrypted passwords.
;   encrypt passwords = yes

;  Uncomment the following if you wish to sync unix
and smbpasswd
   unix password sync = yes

;  Sample winbindd configuration parameters -
uncomment and
;  change if necessary for your desired configuration
;   winbind uid = 5-6
;   winbind gid = 5-6
;   winbind separator = +
;   winbind cache time = 10
;   password server = *

;  Sample add user command for automatically adding
machine accounts
;   add user script = /usr/sbin/passmgmt -a
-h/dev/null -g20 -s/usr/bin/false %u
[homes]
   comment = Home Directories
   path=/home/%U
   browseable = no
   writeable = yes

[tmp]
  comment = Temporary file space
  path = /usr/tmp
  writeable = yes
  guest ok = yes

Any suggestion will be greatly appreciated.

Petrica

__
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] problems mounting Win2003 Server Share - smbclient is working smbmount is not

2006-04-04 Thread Andi Voss
Am Dienstag, 4. April 2006 13:08 schrieb Tomasz Chmielewski:
> Andi Voss wrote:
> > Hi,
> >
> > this is my first post to this list.
> > I have to mount an Win2003 SmallBusinessServer share to my linux box.
> > So far so good.
> > The user "user" exists with the same pass on the linux-box like in the
> > ActiveDirectory at the Win2003-Server.
> > I added the user with smbpasswd -a user .
> > I joined the domain with:
> > net rpc join -S domain -U user
> >
> > mount -t smbfs -o username=user,workgroup=domain,rw //server/dir
> > /linux/dir
> >
> > The first error I got was:
> > [EMAIL PROTECTED]:/etc/rc.d# mount -t smbfs -o
> > username=user,workgroup=domain,rw //server/dir /linux/dir
> > cli_negprot: SMB signing is mandatory and we have disabled it.
> > 1220: protocol negotiation failed
> > SMB connection failed
>
> use mount.cifs instead of deprecated smbmount (mount -t smbfs).

Hi Tomaz,

thanks for the hint, now it works.

Here is what I've done:
Compiled cifs as module in a 2.6.16.1 kernel (in filesystems)

Downloaded mount.cifs.c from the following page:
http://us1.samba.org/samba/cifs/cifs_download.html

gcc mount.cifs.c -o mount.cifs
cp mount.cifs /sbin/

mount -t cifs -o user=user,password=pass,domain=domain //sever/dir /linux/dir

the syntax changed a little bit to the "normal" mount.

Thanks for help.
greets Andi
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Migrating an existing NT domain to samba

2006-04-04 Thread Craig White
On Tue, 2006-04-04 at 08:32 -0500, Chris Garrigues wrote:
> What is the best path to follow to migrate an existing NT domain to a Samba 
> server.
> 
> I've got several other Samba domains elsewhere, but none of them started as 
> NT 
> domains so I didn't have to do a migration.
> 
> The existing network has several servers, all of which I intend to retire
> from fileservice once this migration is finished.  At the moment I have my 
> samba 
> server on the network in a bogus domain and of course there's no useful
> communication.
> 
> The samba server is set up to use LDAP and is running 3.0.13 under Mandriva.

I believe that the entire vampire operation is described in 'Samba by
Example'

http://www.samba.org/samba/docs

Craig

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Migrating an existing NT domain to samba

2006-04-04 Thread Chris Garrigues
What is the best path to follow to migrate an existing NT domain to a Samba 
server.

I've got several other Samba domains elsewhere, but none of them started as NT 
domains so I didn't have to do a migration.

The existing network has several servers, all of which I intend to retire
from fileservice once this migration is finished.  At the moment I have my 
samba 
server on the network in a bogus domain and of course there's no useful
communication.

The samba server is set up to use LDAP and is running 3.0.13 under Mandriva.

Chris

-- 
Chris Garrigues Trinsic Solutions
President   1611-B West 6th Street
Austin, TX  78703-5074

512-322-0180http://www.trinsics.com

 Would you rather proactively pay for
uptime or reactively pay for downtime?

  Trinsic Solutions
 Your Proactive IT Management Partner



pgphoMaqmyrd9.pgp
Description: PGP signature
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba

Re: [Samba] degraded performance under domain login load

2006-04-04 Thread Chris Anders
Sorry guys i failed to mention that under a normal load where only a  
few people would login at the one time, there was no sign of degraded  
performance however when everyone tried to login at once thats when  
these results occurred.. so for now people will login 3 machines at a  
time which is obviously not acceptable.


Kind Regards,


Chris Anders
Network Engineer

Anders Networks
Mobile - 0421 580 017
Email   - [EMAIL PROTECTED]
Web - http://www.anders.net.au

---
This message contains confidential information and is intended only f  
or the individual named. If you are not the named addressee you s  
hould not disseminate, distribute or copy this e-mail. Please notify  
t he sender immediately by e-mail if you have received this e-mail by  
mistake and delete this e-mail from your system. E-mail transmission  
ca n not be guaranteed to be secure or error-free as information  
could be intercepted, corrupted, lost, destroyed, arrive late or  
incomplete, or contain viruses. The sender therefore does not accept  
liability for any errors or omissions in the contents of this  
message, which arise as a result of e-mail transmission. If  
verification is required please request a hard-copy version.



On 04/04/2006, at 10:20 PM, Chris Anders wrote:


Hi guys,

Not sure how to diagnose this problem however i have recently  
upgraded one of my schools sites from gentoo to freebsd which moved  
us from samba 3.0.14 to 3.0.21b and the first thing I noticed was  
when the students came to login if they all logged in at once the  
performance of login was crippled to a near standstill!


As a test i swapped in the gentoo box and forced the upgrade to  
samba 3.0.21b (incase it was distro related) and to my surprise the  
same problem occurred, a class will come into the computer lab all  
try to login, kixtart will start do its login procedures and  
everything would login at a snail pace, to the point kixtart will  
lockup and generate errors!!!


As the next test, i swaped the fresh installed freebsd system back  
in removed the latest samba from ports and manually installed samba  
3.0.14 and the problem was resolved. This leads me to believe that  
this is not distro specific at all, however a serious problem in  
high load systems of login.


Is there is a way to tune the latest versions of samba to combat  
this problem as i even noticed loading some apps off the network,  
if everyone is trying to access the same app at the same time that  
it too will loads at a snail pace...


I have monitored server load and smbd usage and nothing looks out  
of the ordinary, i have watched logs with nothing standing out as a  
problem...


This computer lab only consists of 25 computers and the server is a  
dual xeon with a 3ware card running raid5 using raptors, so it has  
plenty of IO!

The workstation OS is win2k w/sp4

Any ideas ?



Kind Regards,


Chris Anders
Network Engineer

Anders Networks
Mobile - 0421 580 017
Email   - [EMAIL PROTECTED]
Web - http://www.anders.net.au

---
This message contains confidential information and is intended only  
f or the individual named. If you are not the named addressee you s  
hould not disseminate, distribute or copy this e-mail. Please  
notify t he sender immediately by e-mail if you have received this  
e-mail by mistake and delete this e-mail from your system. E-mail  
transmission ca n not be guaranteed to be secure or error-free as  
information could be intercepted, corrupted, lost, destroyed,  
arrive late or incomplete, or contain viruses. The sender therefore  
does not accept liability for any errors or omissions in the  
contents of this message, which arise as a result of e-mail  
transmission. If verification is required please request a hard- 
copy version.



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] degraded performance under domain login load

2006-04-04 Thread Chris Anders

Hi guys,

Not sure how to diagnose this problem however i have recently  
upgraded one of my schools sites from gentoo to freebsd which moved  
us from samba 3.0.14 to 3.0.21b and the first thing I noticed was  
when the students came to login if they all logged in at once the  
performance of login was crippled to a near standstill!


As a test i swapped in the gentoo box and forced the upgrade to samba  
3.0.21b (incase it was distro related) and to my surprise the same  
problem occurred, a class will come into the computer lab all try to  
login, kixtart will start do its login procedures and everything  
would login at a snail pace, to the point kixtart will lockup and  
generate errors!!!


As the next test, i swaped the fresh installed freebsd system back in  
removed the latest samba from ports and manually installed samba  
3.0.14 and the problem was resolved. This leads me to believe that  
this is not distro specific at all, however a serious problem in high  
load systems of login.


Is there is a way to tune the latest versions of samba to combat this  
problem as i even noticed loading some apps off the network, if  
everyone is trying to access the same app at the same time that it  
too will loads at a snail pace...


I have monitored server load and smbd usage and nothing looks out of  
the ordinary, i have watched logs with nothing standing out as a  
problem...


This computer lab only consists of 25 computers and the server is a  
dual xeon with a 3ware card running raid5 using raptors, so it has  
plenty of IO!

The workstation OS is win2k w/sp4

Any ideas ?



Kind Regards,


Chris Anders
Network Engineer

Anders Networks
Mobile - 0421 580 017
Email   - [EMAIL PROTECTED]
Web - http://www.anders.net.au

---
This message contains confidential information and is intended only f  
or the individual named. If you are not the named addressee you s  
hould not disseminate, distribute or copy this e-mail. Please notify  
t he sender immediately by e-mail if you have received this e-mail by  
mistake and delete this e-mail from your system. E-mail transmission  
ca n not be guaranteed to be secure or error-free as information  
could be intercepted, corrupted, lost, destroyed, arrive late or  
incomplete, or contain viruses. The sender therefore does not accept  
liability for any errors or omissions in the contents of this  
message, which arise as a result of e-mail transmission. If  
verification is required please request a hard-copy version.



--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


Re: [Samba] problems mounting Win2003 Server Share - smbclient is working smbmount is not

2006-04-04 Thread Tomasz Chmielewski

Andi Voss wrote:

Hi,

this is my first post to this list.
I have to mount an Win2003 SmallBusinessServer share to my linux box.
So far so good.
The user "user" exists with the same pass on the linux-box like in the 
ActiveDirectory at the Win2003-Server.

I added the user with smbpasswd -a user .
I joined the domain with:
net rpc join -S domain -U user

mount -t smbfs -o username=user,workgroup=domain,rw //server/dir /linux/dir

The first error I got was:
[EMAIL PROTECTED]:/etc/rc.d# mount -t smbfs -o 
username=user,workgroup=domain,rw //server/dir /linux/dir

cli_negprot: SMB signing is mandatory and we have disabled it.
1220: protocol negotiation failed
SMB connection failed


use mount.cifs instead of deprecated smbmount (mount -t smbfs).


--
Tomasz Chmielewski

Software deployment with Samba
http://wpkg.org
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] problems mounting Win2003 Server Share - smbclient is working smbmount is not

2006-04-04 Thread Andi Voss
Hi,

this is my first post to this list.
I have to mount an Win2003 SmallBusinessServer share to my linux box.
So far so good.
The user "user" exists with the same pass on the linux-box like in the 
ActiveDirectory at the Win2003-Server.
I added the user with smbpasswd -a user .
I joined the domain with:
net rpc join -S domain -U user

mount -t smbfs -o username=user,workgroup=domain,rw //server/dir /linux/dir

The first error I got was:
[EMAIL PROTECTED]:/etc/rc.d# mount -t smbfs -o 
username=user,workgroup=domain,rw //server/dir /linux/dir
cli_negprot: SMB signing is mandatory and we have disabled it.
1220: protocol negotiation failed
SMB connection failed

I tried
client use spnego = yes
client signing = yes
in the smb.conf, but this was not working.

So I created a new GPO at the Win2003 and disabled the smb-signing.
Now mounting is possible. But when I enter the directory and want to list the 
content I got:
ls .: Stale NFS handle

???
I updated the whole system.
Now Slackware current with samba 3.0.22 and Kernel 2.6.16.1 (cifvs suport 
compiled in) and nfs-utils 1.0.7 is working.

When I now mount the share and ls inside I get:
ls .: Access denied

The rights of the shares are correct because other WindowsClients are able to 
connect to.

The crazy thing:
If I'm using smbclient, its possible to get into the directory and see the 
content:
smbclient //server/dir -U user

At this point I have no more ideas where to search for or how to fix the 
problem.

Here is the global section of samba (testparm is OK):

[global]
   workgroup = domain
   server string = Samba Server
   log file = /var/log/samba
   max log size = 50
   security = user
   encrypt passwords = yes
   socket options = TCP_NODELAY
   local master = no
   domain master = no
   preferred master = no
   domain logons = no
   dns proxy = no


It would be glad if someone could help me! 
If you need more infos, please ask.

Greets Andi

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] Need help debugging (long)

2006-04-04 Thread F. Heitkamp


Thanks!

This is in regards to bug 3084, I am trying to find out why samba is
crashing.  I am using glibc-2.4 with nptl threads.  It seems to be a memory
or threading issue.   Thanks for any help.

Running smbd through gdb:

Breakpoint 6, charset_name (ch=CH_DISPLAY) at lib/charcnv.c:57
57  const char *ret = NULL;
(gdb)
Continuing.
Substituting charset 'ANSI_X3.4-1968' for LOCALE

Breakpoint 2, smb_iconv_close (cd=0x8412a28) at lib/iconv.c:315
315 if (cd->cd_direct) iconv_close((iconv_t)cd->cd_direct);
(gdb)
Continuing.

Breakpoint 3, iconv_close (cd=0x8412a50) at iconv_close.c:30
30if (__builtin_expect (cd == (iconv_t *) -1L, 0))
(gdb)
Continuing.
smbd: gconv_db.c:232: __gconv_release_step: Assertion `step->__end_fct ==
((void *)0)' failed.

Program received signal SIGABRT, Aborted.
0xe410 in __kernel_vsyscall ()
(gdb) where
#0  0xe410 in __kernel_vsyscall ()
#1  0xb7ce576a in *__GI_raise (sig=6)
   at ../nptl/sysdeps/unix/sysv/linux/raise.c:67
#2  0xb7ce7060 in *__GI_abort () at abort.c:88
#3  0xb7cdee2d in *__GI___assert_fail (
   assertion=0xb7dcbf44 "step->__end_fct == ((void *)0)",
   file=0xb7dc7f11 "gconv_db.c", line=232,
   function=0xb7dc7f36 "__gconv_release_step") at assert.c:78
#4  0xb7cd4054 in __gconv_release_step (step=)
   at gconv_db.c:232
#5  0xb7cd40eb in __gconv_close_transform (steps=0x8401f30, nsteps=2)
   at gconv_db.c:791
#6  0xb7cd3dbe in __gconv_close (cd=0x8412a50) at gconv_close.c:64
#7  0xb7cd338c in iconv_close (cd=0x0) at iconv_close.c:36
#8  0x0829106d in smb_iconv_close (cd=0x8412a28) at lib/iconv.c:315
#9  0x08265ca0 in charset_name (ch=CH_DISPLAY) at lib/charcnv.c:82
#10 0x08265d80 in init_iconv () at lib/charcnv.c:127
#11 0x080895f7 in handle_charset (snum=-2, pszParmValue=0x83e98f4 "CP932",
   ptr=0x83d2064) at param/loadparm.c:3078
#12 0x0808a4b0 in lp_do_parameter (snum=-2,
   pszParmName=0x83e98e8 "dos charset", pszParmValue=0x83e98f4 "CP932")
   at param/loadparm.c:3483
#13 0x0808a76b in do_parameter (pszParmName=0x83e98e8 "dos charset",
   pszParmValue=0x83e98f4 "CP932") at param/loadparm.c:3557
#14 0x0808f459 in Parameter (InFile=0x83e8028,
   pfunc=0x808a6da , c=0) at param/params.c:450
#15 0x0808f523 in Parse (InFile=0x83e8028, sfunc=0x808ab6c ,
   pfunc=0x808a6da ) at param/params.c:504
#16 0x0808f7f7 in pm_process (FileName=0xbfa8baec "/etc/samba/smb.conf",
   sfunc=0x808ab6c , pfunc=0x808a6da )
   at param/params.c:588
#17 0x0808dce3 in lp_load (pszFname=0x83c9900 "/etc/samba/smb.conf",
   global_only=0, save_defaults=0, add_ipc=1, initialize_globals=1)
   at param/loadparm.c:4896
#18 0x0833ad8a in reload_services (test=0) at smbd/server.c:545
#19 0x0833b712 in main (argc=4, argv=0xbfa8c544) at smbd/server.c:842
(gdb) list
25
26
27  int
28  iconv_close (iconv_t cd)
29  {
30if (__builtin_expect (cd == (iconv_t *) -1L, 0))
31  {
32__set_errno (EBADF);
33return -1;
34  }
(gdb)

Single stepping:


Breakpoint 2, smb_iconv_close (cd=0x8412a28) at lib/iconv.c:315
315 if (cd->cd_direct) iconv_close((iconv_t)cd->cd_direct);
(gdb) step

Breakpoint 3, iconv_close (cd=0x8412a50) at iconv_close.c:30
30if (__builtin_expect (cd == (iconv_t *) -1L, 0))
(gdb) 36return __gconv_close ((__gconv_t) cd) ? -1 : 0;
(gdb) __gconv_close (cd=0x8412a50) at gconv_close.c:29
29  {
(gdb) 36srunp = cd->__steps;
(gdb) 37nsteps = cd->__nsteps;
(gdb) 36srunp = cd->__steps;
(gdb) 38drunp = cd->__data;
(gdb) 37nsteps = cd->__nsteps;
(gdb) 38drunp = cd->__data;
(gdb) 37nsteps = cd->__nsteps;
(gdb) 38drunp = cd->__data;
(gdb) 43transp = drunp->__trans;
(gdb) 44while (transp != NULL)
(gdb) 55if (!(drunp->__flags & __GCONV_IS_LAST) &&
drunp->__outbuf != NULL)
(gdb) 56  free (drunp->__outbuf);
(gdb) *__GI___libc_free (mem=0x8412aa8) at malloc.c:3413
3413{
(gdb) 3417  void (*hook) (__malloc_ptr_t, __const __malloc_ptr_t) =
__free_hook;
(gdb) 3418  if (hook != NULL) {
(gdb) 3423  if (mem == 0)  /* free(0) has no
effect */
(gdb) 3426  p = mem2chunk(mem);
(gdb) 3429  if (chunk_is_mmapped(p))   /* release
mmapped memory. */
(gdb) 3436  ar_ptr = arena_for_chunk(p);
(gdb) 3445  (void)mutex_lock(&ar_ptr->mutex);
(gdb) 3447  _int_free(ar_ptr, mem);
(gdb) Couldn't get registers: No such process.
(gdb) [Switching to Thread -1216079680 (LWP 4132)]
4291  p = mem2chunk(mem);
(gdb) 4278{
(gdb) 4292  size = chunksize(p);
(gdb) 4298  if (__builtin_expect ((uintptr_t) p > (uintptr_t) -size, 0)
(gdb) 4307  if (__builtin_expect (size < MINSIZE, 0))
(gdb) 4320  if ((unsigned long)(size) <= (unsigned long)(get_max_fast
())
(gdb) 4360  else if (!chunk_is_mmapped(p)) {
(gdb) 4365if (__builtin_expect (

Re: [Samba] FreeBSD amd64 w. LDAP: smbd hangs

2006-04-04 Thread Andrea Venturoli

Jeremy Allison wrote:


Can you attach to the process in this state and get gdb backtrace.
If the problem wasn't address with the report several months ago
it didn't give enough information to track the problem down. Maybe
you can do better ! :-). Log it as a bug at bugzilla please.


Right now I'll have to recompile with -g, samba and possibly openldap or 
some part of the underlying OS, but I will surely do.





If it's a logic error in Samba we *will* fix it asap, sometimes
these can be hard to see. Also, sometimes it's an error in the
underlying system, not Samba.


Exactly! I too suspect it might be something wrong with openldap, if not 
the OS itself; however I thought starting from the top was the only way 
to know.



After an upgrade of nss_ldap I haven't experienced this problem anymore, 
but a few days are definitely too short a period to say it's over.

I'll keep an eye on it.

 bye & Thanks
av.
--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] smbstatus doesn't show client names

2006-04-04 Thread Kristaps Rāts
Almost a week has passed without a reply so I'm reposting this, if any
configuration snippets are required to get a clearer picture I will post
them. Thanks in advance.

Original post:

Hi,
not really a problem, but it's annoying: when I run smbstatus on my PDC
it shows the ip addresses, not the netbios names of clients. The PDC is
3.0.21a,
acting as a wins server (name resolution from the clients works fine),
the clients are 3.0.14a samba and Windows XP. Has anyone seen this
before and/or knows how to fix it?

-- 
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba


[Samba] changing date and time of files

2006-04-04 Thread Toni Casueps
When I try to change the time of a file (for example with touch or gthumb) 
which lies on a Samba share the time doesn't get changed (those programs 
don't report any error though).


Do I have to change something in smb.conf?


--
To unsubscribe from this list go to the following URL and read the
instructions:  https://lists.samba.org/mailman/listinfo/samba