We have run into the following problem when trying to run vampire against our PDC. I am not sure how to interprete the error messages here. Why are there 2 line numbers given? I have run into other problems with smbldap-tools and am not sure how to interprete those errors either.
#
# Since I initially wrote this : I have done some work on it and found that it has something to do with the group gid numbers
# and the smbldap-tools trying to read or find this while populating the database.
# this is on suse running 3.0.2a and openldap 2.1.22-73
# also tried smbtools version 0.8.4 different error messages but seems to be the same cause.
# we have also tried samba 3.0.2-2 on suse (lost the results)
#we have also tried this on Fedora running samba3.0.2-7.FC1 and openldap 2.1.22-8
# we ran into roughly the same problem when we start running vampire there
#
-------------------------
these are some which were returned when running smbldap-populate.pl


Use of uninitialized value in concatenation (.) or string at ./smbldap-populate.pl line 104, <DATA> line 225.
failed to add entry: modifications require authentication at ./smbldap-populate.pl line 325, <GEN1> line 2.
adding new entry: ou=People,dc=newdomain,dc=com


---------------------------------------------------
this is what was returned when running
net rpc vampire -S oldnt4pdc -U Administrator%not24get

###below all this are my configuration file smb.conf slapd.conf ldap.conf and the preload.ldif used for the database

Creating unix group: 'Domain Admins'
Creating unix group: 'Domain Users'
Creating unix group: 'Domain Guests'
Creating unix group: 'MTS Trusted Impersonators'
Creating unix group: 'TopTools'
Creating unix group: 'TopTools Admins'
Creating unix group: 'TopTools Operators'
Creating unix group: 'comm'
Creating account: Administrator
Can't call method "get_value" on an undefined value at
/var/lib/samba/sbin/smbldap-useradd.pl line 152, <DATA> line 283.
Could not create posix account info for 'Administrator'
...
...
...
Can't call method "get_value" on an undefined value at
/var/lib/samba/sbin/smbldap-useradd.pl line 152, <DATA> line 283.
Could not create posix account info for 'Administrator'
Creating account: Guest
Can't call method "get_value" on an undefined value at
/var/lib/samba/sbin/smbldap-useradd.pl line 152, <DATA> line 283.
Could not create posix account info for 'Guest'
Creating account: user1
Can't call method "get_value" on an undefined value at
/var/lib/samba/sbin/smbldap-useradd.pl line 152, <DATA> line 283.
Could not create posix account info for 'user1'
Creating account: user2
Can't call method "get_value" on an undefined value at
/var/lib/samba/sbin/smbldap-useradd.pl line 152, <DATA> line 283.
Could not create posix account info for 'user2'
Creating account: IUSR_EXCHANGE
Can't call method "get_value" on an undefined value at
/var/lib/samba/sbin/smbldap-useradd.pl line 152, <DATA> line 283.
Could not create posix account info for 'IUSR_EXCHANGE'
Creating account: user3
Can't call method "get_value" on an undefined value at
/var/lib/samba/sbin/smbldap-useradd.pl line 152, <DATA> line 283.
Could not create posix account info for 'user3'
Creating account: user4
Can't call method "get_value" on an undefined value at
/var/lib/samba/sbin/smbldap-useradd.pl line 152, <DATA> line 283.
Could not create posix account info for 'user4'
Creating account: Admin
Can't call method "get_value" on an undefined value at
/var/lib/samba/sbin/smbldap-useradd.pl line 152, <DATA> line 283.
Could not create posix account info for 'Admin'
Creating account: SQLService7
Can't call method "get_value" on an undefined value at
/var/lib/samba/sbin/smbldap-useradd.pl line 152, <DATA> line 283.
Could not create posix account info for 'SQLService7'
Creating account: BLUE-1$
Creating account: RED-1$


##########Start ldap.conf #################################
# $OpenLDAP: pkg/ldap/libraries/libldap/ldap.conf,v 1.9 2000/09/04 19:57:01 kurt Exp $
#
# LDAP Defaults
#


# See ldap.conf(5) for details
# This file should be world readable but not world writable.

#BASE   dc=example, dc=com
#URI    ldap://ldap.example.com ldap://ldap-master.example.com:666

SIZELIMIT       12
TIMELIMIT       15
DEREF           never

host 127.0.0.1
base dc=mydomain,dc=com
binddn cn=Manager,dc=mydomain,dc=com
bindpw not24get

pam_password exop

nss_base_passwd ou=People,dc=mydomain,dc=com?one
nss_base_shadow ou=People,dc=mydomain,dc=com?one
nss_base_group ou=Groups,dc=mydomain,dc=com?one
######Start slapd.conf####
# $OpenLDAP: pkg/ldap/servers/slapd/slapd.conf,v 1.23.2.8 2003/05/24 23:19:14 kurt Exp $
#
# See slapd.conf(5) for details on configuration options.
# This file should NOT be world readable.
#
include /etc/openldap/schema/core.schema
include /etc/openldap/schema/cosine.schema
include /etc/openldap/schema/inetorgperson.schema
include /etc/openldap/schema/nis.schema
include /etc/openldap/schema/samba.schema



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



#######################################################################
# ldbm database definitions
#######################################################################

database ldbm
suffix "dc=mydomain,dc=com"
rootdn "cn=Manager,dc=mydomain,dc=com"
# Cleartext passwords, especially for the rootdn, should
# be avoid. See slappasswd(8) and slapd.conf(5) for details.
# Use of strong authentication encouraged.
rootpw not24get
# 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
# 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 sambaSID eq
index sambaPrimaryGroupSID eq
index sambaDomainName eq
index default sub
######Start smb.conf####
# Global parameters
[global]
unix charset = LOCALE
workgroup = mydomain
netbios name = SAMBAPDC
# interfaces = eth0, lo
# bind interfaces only = Yes
passdb backend = ldapsam:ldap://127.0.0.1
username map = /etc/samba/smbusers
log level = 1
syslog = 0
log file = /var/log/samba/%m
max log size = 50
smb ports = 139 445
name resolve order = wins bcast hosts
# time server = Yes
printcap name = CUPS
show add printer wizard = No
add user script = /var/lib/samba/sbin/smbldap-useradd -a -m '%u'
delete user script = /var/lib/samba/sbin/smbldap-userdel '%u'
add group script = /var/lib/samba/sbin/smbldap-groupadd -p '%g'
delete group script = /var/lib/samba/sbin/smbldap-groupdel '%g'
add user to group script = /var/lib/samba/sbin/smbldap-groupmod -m '%u' '%g'
delete user from group script = /var/lib/samba/sbin/smbldap-groupmod -x '%u' '%g'
set primary group script = /var/lib/samba/sbin/smbldap-usermod -g '%g' '%u'
add machine script = /var/lib/samba/sbin/smbldap-useradd -w '%u'
# shutdown script = /var/lib/samba/scripts/shutdown.sh
# abort shutdown script = /sbin/shutdown -c
# logon script = scripts\logon.bat
# logon path = \\%L\profiles\%U
# logon drive = X:
domain logons = Yes
domain master = No
# preferred master = Yes
wins support = Yes
ldap suffix = dc=mydomain,dc=com
ldap machine suffix = ou=People
ldap user suffix = ou=People
ldap group suffix = ou=Groups
ldap idmap suffix = ou=Idmap
ldap admin dn = cn=Manager,dc=mydomain,dc=com
idmap backend = ldap://127.0.0.1
idmap uid = 10000-20000
idmap gid = 10000-20000
map acl inherit = Yes
printing = cups
printer admin = Administrator, testadmin


[IPC$]
      path = /tmp
      hosts allow = 10.10.2, 127.
      hosts deny = 0.0.0.0/0


[homes] comment = Home Directories valid users = %S read only = No browseable = No

[printers]
      comment = SMB Print Spool
      path = /var/spool/samba
      guest ok = Yes
      printable = Yes
      browseable = No
[netlogon]
      comment = Network Logon Service
      path = /var/lib/samba/netlogon
      guest ok = Yes
      locking = No

[profiles]
      comment = Profile Share
      path = /var/lib/samba/profiles
      read only = No
      profile acls = Yes

[profdata]
      comment = Profile Data Share
      path = /var/lib/samba/profdata
      read only = No
      profile acls = Yes

[print$]
     comment = Printer Drivers
      path = /var/lib/samba/drivers
     browseable = yes
      guest ok = no
      read only = yes
      write list = root
########## preload.ldif #################################################

dn: dc=mydomain,dc=com
objectClass: dcObject
objectClass: organization
dc: mydomain
o: Intelliepi
description: POSIX and Samba LDAP Identity Database
structuralObjectClass: organization

dn: cn=Manager,dc=mydomain,dc=com
objectClass: organizationalRole
cn: Manager
description: Directory Manager
structuralObjectClass: organizationalRole

dn: ou=People,dc=mydomain,dc=com
objectClass: top
objectClass: organizationalUnit
ou: People
structuralObjectClass: organizationalUnit

dn: ou=Groups,dc=mydomain,dc=com
objectClass: top
objectClass: organizationalUnit
ou: Groups
structuralObjectClass: organizationalUnit

dn: ou=Idmap,dc=mydomain,dc=com
objectClass: top
objectClass: organizationalUnit
ou: Idmap
structuralObjectClass: organizationalUnit

dn: ou=Users,dc=mydomain,dc=com
objectClass: top
objectClass: organizationalUnit
ou: Users
structuralObjectClass: organizationalUnit

dn: ou=Domains,dc=mydomain,dc=com
objectClass: organizationalUnit
ou: Domains
structuralObjectClass: organizationalUnit


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

Reply via email to