Re: [Samba] Samba-LDAP PDC not calling 'add user script'

2003-03-05 Thread Jim C
I'm on 2.2.7a
It turned out to be an ACL problem.  Dang, those things are touchy.
;-)
Jim C.

Andrew Furey wrote:
add user script = /usr/share/samba/scripts/smbldap-useradd.pl
 -w -d /dev/null -g Machines -s /bin/false %u interval
 
For some reason I cannot fathom, Samba isn't calling the script.  Can 
anyone tell me what kinds of things  might cause Samba to behave this 
way?  Anyone know a way around it?


I asked about this a few months ago, from memory. One of the developers 
got back to me and said the code seemed to have disappeared for some 
bizarre reason. I think he was going to reimplement it in a better way 
or something...

(I ended up using winbind+nss instead, but I wasn't a PDC (or LDAP) so 
that probably doesn't help you...)



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


[Samba] Samba-LDAP PDC not calling 'add user script'# Global parameters

2003-03-02 Thread Jim
read
 only = No
browseable = No

[netlogon]
comment = Network
 Logon Service
path = /var/lib/samba/netlogon
guest ok
 = Yes

[printers]
comment = All Printers
path = /var/spool/samba

 create mask = 0700
guest ok = Yes
printable =
 Yes
print command = lpr-cups -P %p -o raw %s -r   # using client
 side printer drivers.
browseable = No

[print$]
path
 = /var/lib/samba/printers
write list = @adm root

[pdf-generator]

 comment = PDF Generator (only valid users)
path = /var/tmp

 printable = Yes
print command = /usr/share/samba/scripts/print-pdf
 %s ~%u %L%u %m %I 

[public]
path = /home/storeage

 read only = No
guest only = Yes
guest ok = Yes

 Samba-LDAP PDC not calling 'add user script'

Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit

For some reason I cannot fathom, Samba isn't calling the script.  Can 
anyone tell me what kinds of things  might cause Samba to behave this 
way?  Anyone know a way around it?

Jim C.

Here is a testparm dump:

 [EMAIL PROTECTED] root]# testparm 
 Load smb config files from /etc/samba/smb.conf
 Processing section [homes]
 Processing section [netlogon]
 Processing section [printers]
 Processing section [print$]
 Processing section [pdf-generator]
 Processing section [public]
 Loaded services file OK.
 WARNING: You have some share names that are longer than 8 chars
 These may give errors while browsing or may not be accessible
 to some older clients
 Press enter to see a dump of your service definitions
 
 # Global parameters
 [global]
 coding system = 
 client code page = 850
 code page directory = /var/lib/samba/codepages
 workgroup = MICROVERSE
 netbios name = 
 netbios aliases = 
 netbios scope = 
 server string = Samba Server %v
 interfaces = 
 bind interfaces only = No
 security = USER
 encrypt passwords = Yes
 update encrypted = No
 allow trusted domains = Yes
 hosts equiv = 
 min passwd length = 5
 map to guest = Never
 null passwords = No
 obey pam restrictions = No
 password server = 
 smb passwd file = /etc/samba/smbpasswd
 root directory = 
 pam password change = No
 passwd program = /usr/bin/passwd
 passwd chat = *new*password* %n\n *new*password* %n\n *changed*
 passwd chat debug = No
 username map = 
 password level = 0
 username level = 0
 unix password sync = No
 restrict anonymous = No
 lanman auth = Yes
 use rhosts = No
 admin log = No
 log level = 6
 syslog = 1
 syslog only = No
 log file = /var/log/samba/log.%m
 max log size = 50
 timestamp logs = Yes
 debug hires timestamp = No
 debug pid = No
 debug uid = No
 protocol = NT1
 large readwrite = Yes
 max protocol = NT1
 min protocol = CORE
 read bmpx = No
 read raw = Yes
 write raw = Yes
 nt smb support = Yes
 nt pipe support = Yes
 nt status support = Yes
 announce version = 4.9
 announce as = NT
 max mux = 50
 max xmit = 16644
 name resolve order = lmhosts host wins bcast
 max ttl = 259200
 max wins ttl = 518400
 min wins ttl = 21600
 time server = No
 unix extensions = No
 change notify timeout = 60
 deadtime = 0
 getwd cache = Yes
 keepalive = 300
 lpq cache time = 10
 max smbd processes = 0
 max disk size = 0
 max open files = 1
 name cache timeout = 660
 read size = 16384
 socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
 stat cache size = 50
 use mmap = Yes
 total print jobs = 0
 load printers = Yes
 printcap name = lpstat
 disable spoolss = No
 enumports command = 
 addprinter command = 
 deleteprinter command = 
 show add printer wizard = Yes
 os2 driver map = 
 strip dot = No
 mangling method = hash
 character set = 
 mangled stack = 50
 stat cache = Yes
 domain admin group = Administrator @adm @Administrators @wheel root
 domain guest group = 
 machine password timeout = 604800
 add user script = /usr/share/samba/scripts/smbldap-useradd.pl -w -d 
 /dev/null -g Machines -s /bin/false %u
 delete user

Re: [Samba] Samba-LDAP PDC not calling 'add user script'

2003-03-02 Thread Andrew Furey
add user script = /usr/share/samba/scripts/smbldap-useradd.pl
-w -d /dev/null -g Machines -s /bin/false %u interval

For some reason I cannot fathom, Samba isn't calling the script.  Can 
anyone tell me what kinds of things  might cause Samba to behave this 
way?  Anyone know a way around it?
I asked about this a few months ago, from memory. One of the developers 
got back to me and said the code seemed to have disappeared for some 
bizarre reason. I think he was going to reimplement it in a better way 
or something...

(I ended up using winbind+nss instead, but I wasn't a PDC (or LDAP) so 
that probably doesn't help you...)

--
ANDREW FUREY [EMAIL PROTECTED] - Sysadmin/developer for Terminus.
Providing online networks of Australian lawyers (http://www.ilaw.com.au)
and Linux experts (http://www.linuxconsultants.com.au) for instant help!
Disclaimer: http://www.terminus.net.au/disclaimer.html. GCS L+++ P++ t++
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba