Ubuntu Server Guide
Download 1.23 Mb. Pdf ko'rish
|
ubuntu-server-guide (1)
- Bu sahifa navigatsiya:
- Samba indices
Samba schema
In order for OpenLDAP to be used as a backend for Samba, the DIT will need to use attributes that can properly describe Samba data. Such attributes can be obtained by introducing a Samba LDAP schema. Let’s do this now. The schema is found in the now-installed samba package and is already in the ldif format. We can import it with one simple command: sudo ldapadd −Q −Y EXTERNAL −H l d a p i : / / / −f / u s r / s h a r e / doc /samba/ examples /LDAP /samba . l d i f To query and view this new schema: sudo l d a p s e a r c h −Q −LLL −Y EXTERNAL −H l d a p i : / / / −b cn=schema , cn=c o n f i g ’ cn=* samba * ’ Samba indices Now that slapd knows about the Samba attributes, we can set up some indices based on them. Indexing entries is a way to improve performance when a client performs a filtered search on the DIT. Create the file samba_indices.ldif with the following contents: dn : o l c D a t a b a s e ={1}mdb , cn=c o n f i g changetype : modify r e p l a c e : olcDbIndex olcDbIndex : o b j e c t C l a s s eq olcDbIndex : uidNumber , gidNumber eq olcDbIndex : l o g i n S h e l l eq olcDbIndex : uid , cn eq , sub olcDbIndex : memberUid eq , sub olcDbIndex : member , uniqueMember eq olcDbIndex : sambaSID eq olcDbIndex : sambaPrimaryGroupSID eq olcDbIndex : sambaGroupType eq olcDbIndex : sambaSIDList eq olcDbIndex : sambaDomainName eq olcDbIndex : d e f a u l t sub , eq Using the ldapmodify utility load the new indices: sudo l d a pm o d i fy −Q −Y EXTERNAL −H l d a p i : / / / −f samba_indices . l d i f If all went well you should see the new indices using ldapsearch: 149 sudo l d a p s e a r c h −Q −LLL −Y EXTERNAL −H \ l d a p i : / / / −b cn=c o n f i g o l c D a t a b a s e ={1}mdb olcDbIndex Download 1.23 Mb. Do'stlaringiz bilan baham: |
Ma'lumotlar bazasi mualliflik huquqi bilan himoyalangan ©fayllar.org 2024
ma'muriyatiga murojaat qiling
ma'muriyatiga murojaat qiling