[Samba] smbldap-populate under debian woody fails

2004-06-03 Thread Marc Remolt
Hi,
I've tried the tgz from idealx, tried unofficial debs, triple checked 
the config, but everytime I get the same error.
The script starts adding the enties but after

cn=Domain Guests,ou=Groups,dc=xyz,dc=com
which is successfull the following line show up
Can't call method dn on an undefined value at 
/usr/sbin/smbldap-populate line 341, GEN1 line 11.

Does anybody have a clue what this is about? If I had something wrong in 
my config, it would have failed earlier, I think?

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


Re: [Samba] smbldap-populate under debian woody fail

2004-06-03 Thread Marc Remolt
I really hate Debian sometimes - no I don't want to start a flame war!
In the smbldap-populate script (0.84) some of the template entries are 
commented out, the first one being the one after cn=Domain Guests. 
Obviously the perl version shipped with woody chokes on the commented 
parts, which causes the script to die. After uncommenting all the 
templates the script runs perfectly.
Why are they commented in the first place, if I may ask?

You tip was quite helpful, the ldif was generated correctly and so I 
first saw the commented entries and could make the connection - thanks.

Marc
Le Thu, Jun 03, 2004 at 12:35:32PM +0200, Marc Remolt a ecrit:
 The script starts adding the enties but after
 cn=Domain Guests,ou=Groups,dc=xyz,dc=com
 which is successfull the following line show up
 Can't call method dn on an undefined value at
 /usr/sbin/smbldap-populate line 341, GEN1 line 11.
Which verison of the script are you using ?
Can you test smbldap-populate -e /tmp/export.ldif and look if the ldif
file looks good near the Domain Guests entry ?
--
Jérôme
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] Samba-ldap-pdc questions

2004-01-06 Thread Marc Remolt
You have more than one suffix in slapd.conf - why? The one you use in smb.conf ist a 
mixture of the two - that doesn't work. Use one of them - the one under which your 
user data is stored. 

Jesore

 [global]
workgroup = mydomain
netbios name = ts010
encrypt passwords = yes
passdb backend = ldapsam:ldap://localhost/
ldap suffix = o=mydomain,dc=mydomain,dc=com
ldap machine suffix = ou=Comupters
ldap user suffix = ou=Users
ldap group suffix = ou=Groups
ldap admin dn = cn=tsadmin,dc=mydomain,dc=com
 #   ldap ssl = start tls
ldap delete dn = no
 %n\n


 databaseldbm
 suffix  o=mydomain
 suffix  dc=mydomain,dc=com
 rootdn  cn=tsadmin,dc=mydomain,dc=com
 # Cleartext passwords, especially for the rootdn, should
 # be avoided.  See slappasswd(8) and slapd.conf(5) for details.
 # Use of strong authentication encouraged.
 # rootpwsecret
 rootpw  {SSHA}nzEMEVTSdQYIy3jLsWn4xmQLQI/Cb0Tn
 # The database directory MUST exist prior to running slapd AND
 # should only be accessible by the slapd and slap tools.
 # Mode 700 recommended.
 directory   /var/lib/ldap/
 
-- 
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba