[Samba] filename mapping

2004-10-07 Thread Philip Chambers
Using samba.2.2.5 I have a problem with Windows-Unix filename mapping.

On Unix the file is named: ?,???.HTM
On Windows it is displayed as ~N#.HTM

However, when I try to delete the file I get a file not found failure.  It appears 
that the mapping may not be symetric.

I will be moving the service to 3.0.7 in a couple of months so I am not too worried 
if this problem is not also in 3.0.7.

Phil.
---
Phil Chambers ([EMAIL PROTECTED])
University of Exeter

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


[Samba] limits on quota sizes

2004-09-23 Thread Philip Chambers
Can anyone confirm the maximum quota that is allowed?

The individual quota files record the current usage in bytes and the quota in 
kilobytes.  I am hoping that quota and usage calculations use 64 bit integers so 
that there is no practical limit.  However, if 32 bit integers are used then I guess 
there would be a limit of 2 or 4 gigabytes.

Phil.
---
Phil Chambers ([EMAIL PROTECTED])
University of Exeter

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


[Samba] PANIC in pdb_ldap.c

2004-09-17 Thread Philip Chambers
I have just installed 3.0.7 so that I can use write list and force user together 
and it panics!

I have diagnosed the problem to the line at which it fails, but not yet back to the 
root cause.

The first call to append_attr() in ldapsam_getsampwnam() is being made with new_attr 
having a value of NULL.  This causes strdup(new_attr) to fail.

The NULL is being generated by get_auserattr_key2string() which is being called with 
schema_ver = 1 and key = 41 (LDAP_ATTR_MOD_TIMESTAMP).

Before spending time tracking this further I would appreciate it if someone who is 
familiar with this code could quickly identify the root cause.

I am running on Solaris 9.

Phil.
---
Phil Chambers ([EMAIL PROTECTED])
University of Exeter

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


Re: [Samba] PANIC in pdb_ldap.c

2004-09-17 Thread Philip Chambers

I have now identified the cause and it appears that mods applied pdb_ldap.c did not 
take ldapsam_compat mode into account.  ldapsam_getsampwnam() is trying to get the 
LDAP_ATTR_MOD_TIMESTAMP attribute from attrib_map_v22 when it is only present in 
attrib_map_v30.

Is ther a quick fix to this bug?

Phil.
---
Phil Chambers ([EMAIL PROTECTED])
University of Exeter

On Fri, 17 Sep 2004 10:25:11 +0100 (GMT Daylight Time) Philip Chambers 
[EMAIL PROTECTED] wrote:

 I have just installed 3.0.7 so that I can use write list and force user together 
 and it panics!
 
 I have diagnosed the problem to the line at which it fails, but not yet back to the 
 root cause.
 
 The first call to append_attr() in ldapsam_getsampwnam() is being made with new_attr 
 having a value of NULL.  This causes strdup(new_attr) to fail.
 
 The NULL is being generated by get_auserattr_key2string() which is being called with 
 schema_ver = 1 and key = 41 (LDAP_ATTR_MOD_TIMESTAMP).
 
 Before spending time tracking this further I would appreciate it if someone who is 
 familiar with this code could quickly identify the root cause.
 
 I am running on Solaris 9.
 
 Phil.


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


Re: [Samba] PANIC in pdb_ldap.c

2004-09-17 Thread Philip Chambers
I have applied a patch which seems to fix this problem, but I do not know the code 
well enough to know if other areas need dealing with too.

The patch is very simple, I put the following line at the start of append_attr():

  if(new_attr == NULL) return;

Phil.
---
Phil Chambers ([EMAIL PROTECTED])
University of Exeter

On Fri, 17 Sep 2004 12:20:06 +0100 (GMT Daylight Time) Philip Chambers 
[EMAIL PROTECTED] wrote:

 
 I have now identified the cause and it appears that mods applied pdb_ldap.c did not 
 take ldapsam_compat mode into account.  ldapsam_getsampwnam() is trying to get the 
 LDAP_ATTR_MOD_TIMESTAMP attribute from attrib_map_v22 when it is only present in 
 attrib_map_v30.
 
 Is ther a quick fix to this bug?
 
 Phil.
 
 On Fri, 17 Sep 2004 10:25:11 +0100 (GMT Daylight Time) Philip Chambers 
 [EMAIL PROTECTED] wrote:
 
  I have just installed 3.0.7 so that I can use write list and force user 
  together 
  and it panics!
  
  I have diagnosed the problem to the line at which it fails, but not yet back to 
  the 
  root cause.
  
  The first call to append_attr() in ldapsam_getsampwnam() is being made with 
  new_attr 
  having a value of NULL.  This causes strdup(new_attr) to fail.
  
  The NULL is being generated by get_auserattr_key2string() which is being called 
  with 
  schema_ver = 1 and key = 41 (LDAP_ATTR_MOD_TIMESTAMP).
  
  Before spending time tracking this further I would appreciate it if someone who is 
  familiar with this code could quickly identify the root cause.
  
  I am running on Solaris 9.
  
  Phil.
 
 
 -- 
 To unsubscribe from this list go to the following URL and read the
 instructions:  http://lists.samba.org/mailman/listinfo/samba


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


[Samba] force user problem

2004-09-15 Thread Philip Chambers
I have samba 3.0.4 set up as a PDC and have a problem with using force user with 
thie following share:

[shared]
  path = /usr/local/samba/shared
  write list = usera, userb, userc
  force user = usera
  guest ok = true

If I try to write a file from an XP system as usera I get an Access is denied 
failure.  If I take out the force user line there is no problem!

Note that if I change the UNIX ownership of the shared directory to preven access 
then the failure changes to Network access is denied with or without the force 
user line in there.

Any ideas?

Phil.
---
Phil Chambers ([EMAIL PROTECTED])
University of Exeter

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


[Samba] setsockopt returning Invalid argument

2004-09-03 Thread Philip Chambers
I have built samba 3.0.4 on Solaris 9 and it appeared to compile and build OK.  It 
starts up and runs with a PDC smb.conf.  It becomes the brows master for the domain 
and generally seems to look OK.

However, when I try to join a PC into the domain I get Invalid argument logged by 
set_socket_options() in lib/util_sock.c when trying to set TCP_NODELAY and 
SO_KEEPALIVE.

This is followed by get_peer_addr() failing with Transport endpoint not connected.

The attempt to join the domain fails.  Any ideas please?

Phil.
---
Phil Chambers ([EMAIL PROTECTED])
University of Exeter

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


[Samba] samba 3.0.4 and -with-ldapsam

2004-09-02 Thread Philip Chambers
I am trying to get samba 3.0.4 to work as a PDC using LDAP with my old samba 2 
schema.  I used -with-ldapsam when building in the hope that that would be OK.

I had a problem when it came to net groupmap ... because samba was trying to use 
the samba 3 schema attribute sambaSID.  I got round this by setting

  passdb backend = smbpasswd ldapsam:ldap://myldap

so it appears to be creating the new entries in smbpasswd, not the LDAP.

Now I have a problem I can't see a solution for.  When I try to get a PC to join the 
domain the log shows samba trying to access the DN:
 
  sambaDomainName=MYDOM,dc=ex,dc=ac,dc=uk

(first in smbldap_search_domain_info(), then in add_new_domain_info().)

which is also from the samba 3 schema.

How do I get samba to store this outside of my LDAP?

Any help will be much appreciated.

Phil.
---
Phil Chambers ([EMAIL PROTECTED])
University of Exeter

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


[Samba] configure not detecting IRIX6

2004-06-15 Thread Philip Chambers
A couple of days ago I sent a message about trying to build 3.0.4 under IRIX6 and 
having make fail because smbd/quota.h could not find devnm.h.  I got no 
suggestions as to how to work out what the problem was.  I have now identified why 
the problem arose and that moves me to the next problem!

configure is failing to detect that the OS is IRIX6.  include/config.h does not have 
a #define for any OS.

Can someone suggest why configure is not setting up the OS on IRIX6?

Failing that, can someone point me to the part of configure where it should be 
detecting IRIX6 as the OS?

Phil.
---
Phil Chambers ([EMAIL PROTECTED])
University of Exeter

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


[Samba] devnm.h problem with 3.0.4

2004-06-14 Thread Philip Chambers
I have been using 2.2.5 since soon after its release and all has been well.  I 
decided it was time to go to version 3 if possible, so downloaded 3.0.4.

This is on IRIX 6.5.

I have tried to build with the same options as before, except I now have to use 
--without-ads and --without-ldap.  However, when I try 'make' it fails on 
smbd/quotas.c because devnm.h does not exist. 'configure' tested for devnm.h and 
discovered it was not present, so ther is some inconsistency somewhere.

Can someone please suggest how I can get smbd/quotas.c to compile?

Phil.
---
Phil Chambers ([EMAIL PROTECTED])
University of Exeter

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