Re: [Samba] samba 3.0.1 and 3.0.2rc2 - ldap backend problem - still not solved :(

2004-02-06 Thread boka
paul k wrote:

looks good, does getent passwd show up your ldap users?
yes, fxp.:

[EMAIL PROTECTED] root]# getent passwd|grep boka
...
boka:x:1257:1001:Daniel Chojecki:/home/users/boka:/bin/bash
...
[EMAIL PROTECTED] root]# getent group|grep boka
...
mirror_grp:x:1023:boka
...
greetz
boka
--
To unsubscribe from this list go to the following URL and read the
instructions:  http://lists.samba.org/mailman/listinfo/samba


Re: [Samba] samba 3.0.1 and 3.0.2rc2 - ldap backend problem - still not solved :(

2004-02-06 Thread boka
paul k wrote:

you need to create a posixAccount user/machine entry in ldap before 
adding samba user/machine with smbpasswd. 
You are right:

smbldap-useradd -w test2
pdbedit -a -m test2
right now i am able to add machines to the domain :)

thx !

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


Re: [Samba] samba 3.0.1 and 3.0.2rc2 - ldap backend problem - still not solved :(

2004-02-05 Thread Beast
* boka [EMAIL PROTECTED] nulis:

 
 i'm broke ... i dont want to store machine accounts in people container ...

You must tell nss_ldap where to find this account. see /etc/ldap.conf


--beast

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


Re: [Samba] samba 3.0.1 and 3.0.2rc2 - ldap backend problem - still not solved :(

2004-02-05 Thread paul k
boka wrote:

Trying _Get_Pwnam(), username as lowercase is boka2
Trying _Get_Pwnam(), username as uppercase is BOKA2
Checking combinations of 0 uppercase letters in boka2
Get_Pwnam_internals didn't find user [boka2]!
could not create account to add new user boka2
i'm broke ... i dont want to store machine accounts in people container ...
Not sure about the sambaSID problem, but for the user not found...: Did 
you changed the scope in /etc/ldap.conf (for the nss_ldap stuff)? If you 
have computers and users under different OU's, your 'base' should be one 
level higher and the scope 'sub', not 'one'. Testing with getent() is easy.

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


Re: [Samba] samba 3.0.1 and 3.0.2rc2 - ldap backend problem - still not solved :(

2004-02-05 Thread boka
paul k wrote:

Not sure about the sambaSID problem, but for the user not found...: Did 
you changed the scope in /etc/ldap.conf (for the nss_ldap stuff)? If you 
have computers and users under different OU's, your 'base' should be one 
level higher and the scope 'sub', not 'one'. Testing with getent() is easy.
from /etc/ldap.conf:

nss_base_passwd dc=ITSTUFF,dc=PL?sub
nss_base_shadow dc=ITSTUFF,dc=PL?sub
nss_base_group  ou=Groups,dc=ITSTUFF,dc=PL?one
am i right ?

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


Re: [Samba] samba 3.0.1 and 3.0.2rc2 - ldap backend problem - still not solved :(

2004-02-05 Thread boka
Hi !

well, i told You that i solved my problem with ldap backend and samba - 
unfortunately problem still exists :(

Right now I can not add new users and machine accounts (adding and 
modifing of groups works), fxp:

[EMAIL PROTECTED] i386]# pdbedit -d 10 -a -m boka2

...
set_server_role: role = ROLE_DOMAIN_PDC
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Trying to load: ldapsam:ldap://localhost
Attempting to register passdb backend ldapsam
Successfully added passdb backend 'ldapsam'
Attempting to register passdb backend ldapsam_compat
Successfully added passdb backend 'ldapsam_compat'
Attempting to register passdb backend smbpasswd
Successfully added passdb backend 'smbpasswd'
Attempting to register passdb backend tdbsam
Successfully added passdb backend 'tdbsam'
Attempting to register passdb backend guest
Successfully added passdb backend 'guest'
Attempting to find an passdb backend to match ldapsam:ldap://localhost 
(ldapsam)
Found pdb backend ldapsam
Searching for:[((objectClass=sambaDomain)(sambaDomainName=DOMAIN))]
smbldap_search_suffix: searching 
for:[((objectClass=sambaDomain)(sambaDomainName=DOMAIN))]
smbldap_open_connection: ldap://localhost
smbldap_open_connection: connection opened
tdb(unnamed): tdb_brlock failed (fd=3) at offset 4 rw_type=1 
lck_type=13: Zasoby chwilowo niedoste;pne
ldap_connect_system: Binding to ldap server ldap://localhost as 
cn=Manager,dc=EUROZET,dc=PL
ldap_connect_system: succesful connection to the LDAP server
The LDAP server is succesful connected
pdb backend ldapsam:ldap://localhost has a valid init
Attempting to find an passdb backend to match guest (guest)
Found pdb backend guest
pdb backend guest has a valid init
Netbios name list:-
my_netbios_names[0]=CODO
Trying to load: ldapsam:ldap://localhost
Attempting to find an passdb backend to match ldapsam:ldap://localhost 
(ldapsam)
Found pdb backend ldapsam
Searching for:[((objectClass=sambaDomain)(sambaDomainName=DOMAIN))]
smbldap_search_suffix: searching 
for:[((objectClass=sambaDomain)(sambaDomainName=DOMAIN))]
smbldap_open_connection: ldap://localhost
smbldap_open_connection: connection opened
ldap_connect_system: Binding to ldap server ldap://localhost as 
cn=Manager,dc=EUROZET,dc=PL
ldap_connect_system: succesful connection to the LDAP server
The LDAP server is succesful connected
pdb backend ldapsam:ldap://localhost has a valid init
Attempting to find an passdb backend to match guest (guest)
Found pdb backend guest
pdb backend guest has a valid init
tdb(unnamed): tdb_brlock failed (fd=6) at offset 4 rw_type=1 
lck_type=13: Zasoby chwilowo niedoste;pne
account_policy_get: maximum password age:-1
account_policy_get: minimum password age:0
pdb_set_username: setting username boka2$, was
pdb_set_group_sid: setting group sid 
S-1-5-21-133419789-486977345-1400590255-515
pdb_set_group_sid_from_rid:
setting group sid S-1-5-21-133419789-486977345-1400590255-515 
from rid 515
smbldap_search_suffix: searching 
for:[(((uid=boka2$)(objectclass=sambaSamAccount))(objectclass=sambaSamAccount))]
smbldap_search_suffix: searching 
for:[((uid=boka2$)(objectclass=sambaSamAccount))]
smbldap_search_suffix: searching 
for:[((sambaSID=S-0-0)(|(objectClass=sambaIdmapEntry)(objectClass=sambaSidEntry)))]
ldapsam_add_sam_account: Adding new user
init_ldap_from_sam: Setting entry for user: boka2$
ldapsam_modify_entry: Failed to add user dn= 
uid=boka2$,ou=Computers,dc=EUROZET,dc=PL with: Object class violation
object class 'sambaSamAccount' requires attribute 'sambaSID'
ldapsam_add_sam_account: failed to modify/add user with uid = boka2$ (dn 
= uid=boka2$,ou=Computers,dc=EUROZET,dc=PL)
Unable to add machine! (does it already exist?)

[EMAIL PROTECTED] i386]# pdbedit -d 10 -a -u boka

lp_servicenumber: couldn't find homes
set_server_role: role = ROLE_DOMAIN_PDC
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Substituting charset 'ISO-8859-2' for LOCALE
Trying to load: ldapsam:ldap://localhost
Attempting to register passdb backend ldapsam
Successfully added passdb backend 'ldapsam'
Attempting to register passdb backend ldapsam_compat
Successfully added passdb backend 'ldapsam_compat'
Attempting to register passdb backend smbpasswd
Successfully added passdb backend 'smbpasswd'