Hello!
FreeBSD 10.0-RELEASE, nss_ldap-1.265_9
/etc/nsswitch.conf
/usr/local/etc/ldap.conf
/usr/local/etc/nss_ldap.conf
/usr/local/etc/openldap/slapd.conf
but
I've found http://lists.freebsd.org/pipermail/freebsd-stable/2010-February/055424.html but uncommenting line #nss_map_attribute
uniqueMember member' does not help me. On FreeBSD 9.1-RELEASE with the same LDAP databse (master replica)
Any suggestions?
FreeBSD 10.0-RELEASE, nss_ldap-1.265_9
/etc/nsswitch.conf
Code:
group: files ldap
hosts: files dns
networks: files
passwd: files ldap
shells: files
services: compat
services_compat: nis
protocols: files
rpc: files
/usr/local/etc/ldap.conf
/usr/local/etc/nss_ldap.conf
Code:
base dc=helmi,dc=ru
uri ldapi://%2fvar%2frun%2fopenldap%2fldapi/ ldap://127.0.0.1/
ldap_version 3
nss_base_group ou=Groups,dc=helmi,dc=ru?one
nss_base_passwd ou=People,dc=helmi,dc=ru?one
nss_base_passwd ou=Computers,dc=helmi,dc=ru?one
nss_base_shadow ou=People,dc=helmi,dc=ru?one
port 389
scope one
timelimit 30
bind_policy soft
nss_connect_policy persist
idle_timelimit 3600
/usr/local/etc/openldap/slapd.conf
Code:
include /usr/local/etc/openldap/schema/core.schema
include /usr/local/etc/openldap/schema/cosine.schema
include /usr/local/etc/openldap/schema/inetorgperson.schema
include /usr/local/etc/openldap/schema/misc.schema
include /usr/local/etc/openldap/schema/nis.schema
include /usr/local/etc/openldap/schema/openldap.schema
include /usr/local/etc/openldap/schema/samba.schema
pidfile /var/run/openldap/slapd.pid
argsfile /var/run/openldap/slapd.args
modulepath /usr/local/libexec/openldap
moduleload back_bdb
database bdb
suffix "dc=helmi,dc=ru"
rootdn "cn=Manager,dc=helmi,dc=ru"
rootpw secret
directory /var/db/openldap-data
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
syncrepl rid=000
provider=ldap://192.168.1.210
type=refreshAndPersist
retry="5 5 300 +"
searchbase="dc=helmi,dc=ru"
attrs="*,+"
bindmethod=simple
binddn="uid=replicator,ou=People,dc=helmi,dc=ru"
credentials=secret
getent group works ok:
Code:
root@orkgw:/usr/local/etc # getent group bit
bit:*:1007:bit5,bit7,evil,bbs,org3,bit3,bit9,bit11,bit2,bit4,org2,bit8,bit2a,bit1,bit6,bit40,smiler,kta,bit12,alex,bit20,bit10,van,bitdirek
but
id only shows primary group:
Code:
root@orkgw:/usr/local/etc # id bit5
uid=1006(bit5) gid=1002(helmi) groups=1002(helmi)
I've found http://lists.freebsd.org/pipermail/freebsd-stable/2010-February/055424.html but uncommenting line #nss_map_attribute
uniqueMember member' does not help me. On FreeBSD 9.1-RELEASE with the same LDAP databse (master replica)
id works OK.Any suggestions?