Koozali.org: home of the SME Server

Importazione rubrica Ldap

Offline Pier

  • *
  • 35
  • +0/-0
    • UILDM Genova
Re: Importazione rubrica Ldap
« Reply #30 on: February 09, 2010, 01:33:32 AM »
dato che, ovviamente, togliendo quelle righe non funzionava una fava... a parte l'importazione... sono ripartito da zero...

ho ripulito ldap, ho creato il file mozillaAbPersonAlpha.schema secondo la guida di thunderbird, togliendo la riga suggerita da Incognito, ho creato un frammento per editare slapd.conf ed aggiungere la objectclass mozillaAbPersonAlpha... ma quando riavvio slapd mi torna questo bell'errore
Code: [Select]
/etc/openldap/schema/mozillaAbPersonAlpha.schema: line 151: AttributeType not found: "mozillaCustom2"
C'è un anima pia che ha voglia di aiutarmi a sistemare sto casino???
Mi butto sui computer dell'associazione dopo le giornate al lavoro ed alla fine sono troppo fuso per combianare qualcosa di buono... ma la rubrica condivisa ci servirebbe proprio!!!




Offline Incognito

  • ****
  • 195
  • +0/-0
  • Linux User
Re: Importazione rubrica Ldap
« Reply #31 on: February 09, 2010, 03:25:37 PM »
Devi aggiungere lo schema di mozilla a ldap o rimuovere l'attributo "mozillaCustom2" dai dati che importi.
#Linux User
:0:
* ^X-Spam: YES
/dev/null

Offline Pier

  • *
  • 35
  • +0/-0
    • UILDM Genova
Re: Importazione rubrica Ldap
« Reply #32 on: February 09, 2010, 10:23:55 PM »
Devi aggiungere lo schema di mozilla a ldap o rimuovere l'attributo "mozillaCustom2" dai dati che importi.
Quote from: Pier
ho creato il file mozillaAbPersonAlpha.schema secondo la guida di thunderbird, togliendo la riga suggerita da Incognito, ho creato un frammento per editare slapd.conf ed aggiungere la objectclass mozillaAbPersonAlpha

la procedura che ho eseguito non è corretta???

ho creato il file mozillaAbPersonAlpha.schema nella cartella schema e con il frammento lo ho aggiunto a slapd.conf...
i dati che importo sono in questo formato:
Code: [Select]
dn: cn=accoglienza porto antico,ou=Users,dc=uildmge,dc=lan
objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
objectclass: mozillaAbPersonAlpha
givenName: Porto antico
cn: accoglienza porto antico
mail: accoglienza@portoantico.it
modifytimestamp: 0Z

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Importazione rubrica Ldap
« Reply #33 on: February 10, 2010, 12:13:11 AM »
il file mozillaAbPersonAlpha.schema alla riga 151 ha qualcosa che non va.. esiste l'attributo?

Offline Pier

  • *
  • 35
  • +0/-0
    • UILDM Genova
Re: Importazione rubrica Ldap
« Reply #34 on: February 10, 2010, 12:30:56 AM »
il file mozillaAbPersonAlpha.schema alla riga 151 ha qualcosa che non va.. esiste l'attributo?

ho fatto un brutalissimo copia&incolla dello schema dal link postato da incognito...
tolta la riga che a lui dava errori, ho 152 righe, quindi l'errore è alla penultima
Code: [Select]
# Mozilla: @VERSION@
 #
 # mozillaAbPersonAlpha
 #
 # Created initial version --[[User:Standard8|Standard8]] 12:21, 5 Dec
2005 (PST)
 # Change fax to facsimileTelephoneNumber to reflect core.schema
 # ({{bug|327872}} --[[User:Standard8|Standard8]] 12:45, 11 Dec 2008 (PST)
 #
 # This file contains LDAPv3 schema for use with the Mozilla Address Book
 # and is intended to ...

 # Depends upon
 #   Definition of an X.500 Attribute Type and an Object Class to Hold
 #   Uniform Resource Identifiers (URIs) [RFC2079], and A Summary of
 #   the X.500(96) User Schema for use with LDAPv3 [RFC2256] (core.schema)
 #
 #   The COSINE and Internet X.500 Schema [RFC1274] (cosine.schema)
 #
 #   The InetOrgPerson Schema [RFC2798] (inetorgperson.schema)

 # 1.3.6.1.4.1.13769.4.x - Mozilla AB 'Other' tab

 attributetype ( 1.3.6.1.4.1.13769.4.1 NAME 'mozillaCustom1'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )
 
 attributetype ( 1.3.6.1.4.1.13769.4.2 NAME 'mozillaCustom2'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.4.3 NAME 'mozillaCustom3'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )
 
 attributetype ( 1.3.6.1.4.1.13769.4.4 NAME 'mozillaCustom4'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )
 
 # 1.3.6.1.4.1.13769.3.x - Mozilla AB 'Address' tab

 attributetype ( 1.3.6.1.4.1.13769.3.1 NAME 'mozillaHomeStreet'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.2 NAME 'mozillaHomeStreet2'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.3 NAME 'mozillaHomeLocalityName'
         SUP name SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.4 NAME 'mozillaHomeState'
         SUP name SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.5 NAME 'mozillaHomePostalCode'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{40} SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.6 NAME 'mozillaHomeCountryName'
         SUP name SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.7 NAME 'mozillaHomeUrl'
         EQUALITY caseIgnoreMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.8 NAME 'mozillaWorkStreet2'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.9 NAME 'mozillaWorkUrl'
         EQUALITY caseIgnoreMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )
 
 # 1.3.6.1.4.1.13769.2.x - Mozilla AB 'Contact' tab

 attributetype ( 1.3.6.1.4.1.13769.2.1
         NAME ( 'mozillaNickname' 'xmozillanickname' )
         SUP name )

 attributetype ( 1.3.6.1.4.1.13769.2.2
         NAME ( 'mozillaSecondEmail' 'xmozillasecondemail' )
         EQUALITY caseIgnoreIA5Match
         SUBSTR caseIgnoreIA5SubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.2.3
         NAME ( 'mozillaUseHtmlMail' 'xmozillausehtmlmail' )
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )

 # AOL Instant Messenger (AIM) Identity
 attributetype ( 1.3.6.1.4.1.13769.2.4
         NAME ( 'nsAIMid' 'nscpaimscreenname' )
         EQUALITY telephoneNumberMatch
         SUBSTR telephoneNumberSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )

 # 1.3.6.1.4.1.13769.9 - Mozilla AB objectclasses
 
 # The mozillaAddressBookEntry object class is used to define entries
 # representing Cards in the Mozilla Address Book.  The commonName
attribute
 # is used for naming entries of this object class, but may not be unique.
 #             department $

 objectclass ( 1.3.6.1.4.1.13769.9.1 NAME 'mozillaAbPersonAlpha'
         SUP top AUXILIARY
         MUST ( cn )
         MAY( c $
              description $
              displayName $
              facsimileTelephoneNumber $
              givenName $
              homePhone $
              l $
              mail $
              mobile $
              mozillaCustom1 $
              mozillaCustom2 $
              mozillaCustom3 $
              mozillaCustom4 $
              mozillaHomeCountryName $
              mozillaHomeLocalityName $
              mozillaHomePostalCode $
              mozillaHomeState $
              mozillaHomeStreet $
              mozillaHomeStreet2 $
              mozillaHomeUrl $
              mozillaNickname $
              mozillaSecondEmail $
              mozillaUseHtmlMail $
              mozillaWorkStreet2 $
              mozillaWorkUrl $
              o $
              ou $
              pager $
              postalCode $
              postOfficeBox $
              sn $
              st $
              street $
              telephoneNumber $
              title ) )
ma non ha senso!!!

Offline Incognito

  • ****
  • 195
  • +0/-0
  • Linux User
Re: Importazione rubrica Ldap
« Reply #35 on: February 11, 2010, 03:45:12 PM »
ho fatto un brutalissimo copia&incolla dello schema dal link postato da incognito...
tolta la riga che a lui dava errori, ho 152 righe, quindi l'errore è alla penultima
Code: [Select]
# Mozilla: @VERSION@
 #
 # mozillaAbPersonAlpha
 #
 # Created initial version --[[User:Standard8|Standard8]] 12:21, 5 Dec
2005 (PST)
 # Change fax to facsimileTelephoneNumber to reflect core.schema
 # ({{bug|327872}} --[[User:Standard8|Standard8]] 12:45, 11 Dec 2008 (PST)
 #
 # This file contains LDAPv3 schema for use with the Mozilla Address Book
 # and is intended to ...

 # Depends upon
 #   Definition of an X.500 Attribute Type and an Object Class to Hold
 #   Uniform Resource Identifiers (URIs) [RFC2079], and A Summary of
 #   the X.500(96) User Schema for use with LDAPv3 [RFC2256] (core.schema)
 #
 #   The COSINE and Internet X.500 Schema [RFC1274] (cosine.schema)
 #
 #   The InetOrgPerson Schema [RFC2798] (inetorgperson.schema)

 # 1.3.6.1.4.1.13769.4.x - Mozilla AB 'Other' tab

 attributetype ( 1.3.6.1.4.1.13769.4.1 NAME 'mozillaCustom1'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )
 
 attributetype ( 1.3.6.1.4.1.13769.4.2 NAME 'mozillaCustom2'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.4.3 NAME 'mozillaCustom3'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )
 
 attributetype ( 1.3.6.1.4.1.13769.4.4 NAME 'mozillaCustom4'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )
 
 # 1.3.6.1.4.1.13769.3.x - Mozilla AB 'Address' tab

 attributetype ( 1.3.6.1.4.1.13769.3.1 NAME 'mozillaHomeStreet'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.2 NAME 'mozillaHomeStreet2'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.3 NAME 'mozillaHomeLocalityName'
         SUP name SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.4 NAME 'mozillaHomeState'
         SUP name SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.5 NAME 'mozillaHomePostalCode'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{40} SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.6 NAME 'mozillaHomeCountryName'
         SUP name SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.7 NAME 'mozillaHomeUrl'
         EQUALITY caseIgnoreMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.8 NAME 'mozillaWorkStreet2'
         EQUALITY caseIgnoreMatch
         SUBSTR caseIgnoreSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.3.9 NAME 'mozillaWorkUrl'
         EQUALITY caseIgnoreMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.15{128} SINGLE-VALUE )
 
 # 1.3.6.1.4.1.13769.2.x - Mozilla AB 'Contact' tab

 attributetype ( 1.3.6.1.4.1.13769.2.1
         NAME ( 'mozillaNickname' 'xmozillanickname' )
         SUP name )

 attributetype ( 1.3.6.1.4.1.13769.2.2
         NAME ( 'mozillaSecondEmail' 'xmozillasecondemail' )
         EQUALITY caseIgnoreIA5Match
         SUBSTR caseIgnoreIA5SubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.26{256} SINGLE-VALUE )

 attributetype ( 1.3.6.1.4.1.13769.2.3
         NAME ( 'mozillaUseHtmlMail' 'xmozillausehtmlmail' )
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.7 SINGLE-VALUE )

 # AOL Instant Messenger (AIM) Identity
 attributetype ( 1.3.6.1.4.1.13769.2.4
         NAME ( 'nsAIMid' 'nscpaimscreenname' )
         EQUALITY telephoneNumberMatch
         SUBSTR telephoneNumberSubstringsMatch
         SYNTAX 1.3.6.1.4.1.1466.115.121.1.50 )

 # 1.3.6.1.4.1.13769.9 - Mozilla AB objectclasses
 
 # The mozillaAddressBookEntry object class is used to define entries
 # representing Cards in the Mozilla Address Book.  The commonName
attribute
 # is used for naming entries of this object class, but may not be unique.
 #             department $

 objectclass ( 1.3.6.1.4.1.13769.9.1 NAME 'mozillaAbPersonAlpha'
         SUP top AUXILIARY
         MUST ( cn )
         MAY( c $
              description $
              displayName $
              facsimileTelephoneNumber $
              givenName $
              homePhone $
              l $
              mail $
              mobile $
              mozillaCustom1 $
              mozillaCustom2 $
              mozillaCustom3 $
              mozillaCustom4 $
              mozillaHomeCountryName $
              mozillaHomeLocalityName $
              mozillaHomePostalCode $
              mozillaHomeState $
              mozillaHomeStreet $
              mozillaHomeStreet2 $
              mozillaHomeUrl $
              mozillaNickname $
              mozillaSecondEmail $
              mozillaUseHtmlMail $
              mozillaWorkStreet2 $
              mozillaWorkUrl $
              o $
              ou $
              pager $
              postalCode $
              postOfficeBox $
              sn $
              st $
              street $
              telephoneNumber $
              title ) )
ma non ha senso!!!

non mi sembra di aver mai postato il link dello schema, comunque lo schema di mozzilla è qua:
https://wiki.mozilla.org/MailNews:Mozilla_LDAP_Address_Book_Schema
facendo copia/incolla la riga 151 è la riga bianca dopo tutte, mozilla nell'inserimento dei dati è molto libero, ldap è più schizzinoso.
#Linux User
:0:
* ^X-Spam: YES
/dev/null

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Importazione rubrica Ldap
« Reply #36 on: February 11, 2010, 03:52:09 PM »
aggiungo anche che se la riga che da errore è l'ultima, potrebbe esserci qualche carattere non gradito in giro.. perchè da errore sulla chiusura del file... potrebbe essere un discorso anche di sintassi

Offline Pier

  • *
  • 35
  • +0/-0
    • UILDM Genova
Re: Importazione rubrica Ldap
« Reply #37 on: February 11, 2010, 04:08:40 PM »
aggiungo anche che se la riga che da errore è l'ultima, potrebbe esserci qualche carattere non gradito in giro.. perchè da errore sulla chiusura del file... potrebbe essere un discorso anche di sintassi

Ho fatto un brutalissimo copia e incolla... :-? provo a riscriverlo a mano... per ora grazie...

Sto facendo una interfaccia web per la gestione dei contatti che si appoggia a un db mysql, alla creazione di ogni nuovo contatto crea una stringa ldif che vorrei poi far importare con un batch in ldap... può interessare???

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Importazione rubrica Ldap
« Reply #38 on: February 11, 2010, 04:20:58 PM »
Sto facendo una interfaccia web per la gestione dei contatti che si appoggia a un db mysql, alla creazione di ogni nuovo contatto crea una stringa ldif che vorrei poi far importare con un batch in ldap... può interessare???

intanto vai avanti.. poi al limite la pubblichi da qualche parte e qualcuno di noi la testa.. potrebbe essere relamente interessante

buon lavoro

Offline tancrazio

  • 7
  • +0/-0
Re: Importazione rubrica Ldap
« Reply #39 on: April 21, 2010, 12:15:08 PM »
Ciao... Scrivo in questo topic perchè mi pare sia attinente al mio problema....
Ho un server LDAP su ubuntu (openldap)... Ho esportato ldif, importato su openldap e tutto ok. Outlook si collega senza problemi....
... ma qui arriva il mio problema.... Ho 1300 (circa) contatti con delle note caricate che se guardo il file ldif mi ha codificato come description;
Se cerco il contatto su outlook le note non ci sono non me le trova... Come sono codificate affinchè outlook le veda??
Ho provato in tutti i modi... Ho cercato e ricercato... Ora sono disperato... Ho paura non ci sia soluzione....

Grazie a tutti per l'aiuto!

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Importazione rubrica Ldap
« Reply #40 on: April 23, 2010, 11:43:30 PM »
Ciao... Scrivo in questo topic perchè mi pare sia attinente al mio problema....

ciao e benvenuto

Quote
Ho un server LDAP su ubuntu (openldap)... Ho esportato ldif, importato su openldap e tutto ok. Outlook si collega senza problemi....

esportato da dove ed importato dove? e come hai importato?

Quote
... ma qui arriva il mio problema.... Ho 1300 (circa) contatti con delle note caricate che se guardo il file ldif mi ha codificato come description;
Se cerco il contatto su outlook le note non ci sono non me le trova... Come sono codificate affinchè outlook le veda??

prima outlook te le vedeva?

Quote
Ho provato in tutti i modi... Ho cercato e ricercato... Ora sono disperato... Ho paura non ci sia soluzione....

hai avuto errori/messaggi nell'importazione?
hai cercato in ldap da linea di comando per vedere se tale attributo c'è?
hai verificato che la conf. dei due server ldap sia uguale per quanto riguarda gli schema?

su SME, in /etc/openldap/slapd.conf hai:
Code: [Select]
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/redhat/rfc822-MailMember.schema
include         /etc/openldap/schema/redhat/autofs.schema
include         /etc/openldap/schema/rfc2739.schema

S.

Offline tancrazio

  • 7
  • +0/-0
Re: Importazione rubrica Ldap
« Reply #41 on: April 26, 2010, 09:42:37 AM »
Ciao Stefano.. Grazie per il benvenuto e per la risposta.
Allora io ho Outlook con all'interno una rubrica, un file .pst per capirci.
Non potendo esportare direttamente da outlook in LDIF, ho importato la rubrica su Thunderbird e vedo il contatto in maniera corretta.
Esporto il file LDIF da Thunderbird e se lo edito ottengo una cosa di questo tipo:
dn: cn=Pippo Franco dc:miodominio,ou:mia rubrica

objectclass: top
objectclass: person
objectclass: organizationalPerson
objectclass: inetOrgPerson
givenName: Pippo
sn: Franco
cn: Pippo Franco
mail: pippofranco@miodominio.it
modifytimestamp: 0
mobile: 3333333333
street: VIA S.Topolino 24
mozillaWorkStreet2: S.Topolino Topolinia
l: Topolinia
st: TP
postalCode: 33214
title: Qualcosa
description:: IL CONTENUTO DELLE NOTE CHE VEDO SU OUTLOOK..

Importando il tutto su Evolution vedo tutto perfettamente. A parte qualche sottigliezza relativa all-indirizzo che va be credo di riuscire a sistemare ....
importando tutto su Openldap vedo tutto nei vari campi come nel file LDIF compreso description....

Collegandomi con Outlook al server LDAP cercando Pippo mi trova il contatto, ma il campo note è vuoto...

Stessa cosa se cerco il contatto con LDAP Administration Tool. Vedo il campo note ma non è editabile.

Ti posto il file slapd.conf perchè io non ho tutti gli schemi che mi hai indicato...


# This is the main slapd configuration file. See slapd.conf(5) for more
# info on the configuration options.

#######################################################################
# Global Directives:

# Features to permit
#allow bind_v2

# Schema and objectClass definitions
include         /etc/ldap/schema/core.schema
include         /etc/ldap/schema/cosine.schema
include         /etc/ldap/schema/nis.schema
include         /etc/ldap/schema/inetorgperson.schema
include         /etc/ldap/schema/extension.schema

# Where the pid file is put. The init.d script
# will not stop the server if you change this.
pidfile         /var/run/slapd/slapd.pid

# List of arguments that were passed to the server
argsfile        /var/run/slapd/slapd.args

# Read slapd.conf(5) for possible values
loglevel        256

# Where the dynamically loaded modules are stored
modulepath   /usr/lib/ldap
moduleload   back_hdb

# The maximum number of entries that is returned for a search operation
sizelimit 500

# The tool-threads parameter sets the actual amount of cpu's that is used
# for indexing.
tool-threads 1

#######################################################################
# Specific Backend Directives for hdb:
# Backend specific directives apply to this backend until another
# 'backend' directive occurs
backend      hdb

#######################################################################
# Specific Backend Directives for 'other':
# Backend specific directives apply to this backend until another
# 'backend' directive occurs
#backend      <other>

#######################################################################
# Specific Directives for database #1, of type hdb:
# Database specific directives apply to this databasse until another
# 'database' directive occurs
database        hdb

# The base of your directory in database #1
suffix          "dc=MIODOMINIO"

# rootdn directive for specifying a superuser on the database. This is needed
# for syncrepl.
#rootdn          "cn=admin,dc=MIODOMINIO"
#rootpw         
 
# Where the database file are physically stored for database #1
directory       "/var/lib/ldap"

# The dbconfig settings are used to generate a DB_CONFIG file the first
# time slapd starts.  They do NOT override existing an existing DB_CONFIG
# file.  You should therefore change these settings in DB_CONFIG directly
# or remove DB_CONFIG and restart slapd for changes to take effect.

# For the Debian package we use 2MB as default but be sure to update this
# value if you have plenty of RAM
dbconfig set_cachesize 0 2097152 0

# Sven Hartge reported that he had to set this value incredibly high
# to get slapd running at all. See http://bugs.debian.org/303057 for more
# information.

# Number of objects that can be locked at the same time.
dbconfig set_lk_max_objects 1500
# Number of locks (both requested and granted)
dbconfig set_lk_max_locks 1500
# Number of lockers
dbconfig set_lk_max_lockers 1500

# Indexing options for database #1
index           objectClass eq

# Save the time that the entry gets modified, for database #1
lastmod         on

# Checkpoint the BerkeleyDB database periodically in case of system
# failure and to speed slapd shutdown.
checkpoint      512 30

# Where to store the replica logs for database #1
# replogfile   /var/lib/ldap/replog

# The userPassword by default can be changed
# by the entry owning it if they are authenticated.
# Others should not be able to see it, except the
# admin entry below
# These access lines apply to database #1 only
access to attrs=userPassword,shadowLastChange
        by dn="cn=admin,dc=MIODOMINIO" write
        by anonymous auth
        by self write
        by * none

# Ensure read access to the base for things like
# supportedSASLMechanisms.  Without this you may
# have problems with SASL not knowing what
# mechanisms are available and the like.
# Note that this is covered by the 'access to *'
# ACL below too but if you change that as people
# are wont to do you'll still need this if you
# want SASL (and possible other things) to work
# happily.
access to dn.base="" by * read

# The admin dn has full write access, everyone else
# can read everything.
access to *
        by dn="cn=admin,dc=MIODOMINIO" write
        by * read

# For Netscape Roaming support, each user gets a roaming
# profile for which they have write access to
#access to dn=".*,ou=Roaming,o=morsnet"
#        by dn="cn=admin,dc=MIODOMINO" write
#        by dnattr=owner write

#######################################################################

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Importazione rubrica Ldap
« Reply #42 on: April 26, 2010, 10:03:51 AM »
Ciao

ergo tu hai importato su debian/ubuntu? o su SME?

per cortesia, rispondi alle domande che ti ho posto nell'altro messaggio, anche perchè, al momento, non si capisce cosa ci azzecchi SME in tutto questo

Offline tancrazio

  • 7
  • +0/-0
Re: Importazione rubrica Ldap
« Reply #43 on: April 26, 2010, 10:13:42 AM »
Grazie ancora per la risposta...
No SME non centra. Credevo che trattandosi di LDAP qualcuno mi avrebbe potuto aiutare. Ma se non è così chiedo scusa e cancellate pure i miei post.

hai avuto errori/messaggi nell'importazione? No;
hai cercato in ldap da linea di comando per vedere se tale attributo c'è? No;
hai verificato che la conf. dei due server ldap sia uguale per quanto riguarda gli schema? Ho solo un server con UBUNTU/OPENLDAP;

prima outlook te le vedeva? SI, ma non da LDAP, in locale sul file.pst;

esportato da dove ed importato dove? e come hai importato? qua ho risposto nell'altro post.

Non volevo fare perdere tempo a nessuno, quindi se non si può fare nulla perchè io ho UBUNTU e non SME scusate il disturbo e ripeto cancellate i post.

Ciao e grazie.

Offline Stefano

  • *
  • 10,839
  • +2/-0
Re: Importazione rubrica Ldap
« Reply #44 on: April 26, 2010, 10:46:59 AM »
ciao :-)

prima di tutto, nessun problema anche se il messaggio è OT, ma era giusto per chiarire

il fatto che nel file ldif tu abbia un campo che ldap non ti mostra significa che quel campo manca negli schema di ldap

ergo, per esserti utile, ti consiglio di:
- rivolgere la domanda su un forum più attinente la tua distribuzione, se non altro per avere informazioni più puntuali
- cercare su google con chiavi ad hoc, come "thunderbird inport ldap description field debian".. per esempio, partirei da qui

in ogni caso, anche se non sei un utente SME, potresti sempre provarlo ;-)
in bocca al lupo