Re: Importing schema file



AD doesn't have an native utilities for dealing with files in that format
and I don't think many of us here are familiar with it. I'd suggest looking
for a utility that can convert that file to LDIF (perhaps OpenLDAP has such
a thing if that's where you got that file?) or finding a standard LDIF
version of the schema file already converted.

Otherwise, you'll likely have to do this by hand.

Joe K.

--
Joe Kaplan-MS MVP Directory Services Programming
Co-author of "The .NET Developer's Guide to Directory Services Programming"
http://www.directoryprogramming.net
--
"Juan" <okelet@xxxxxxxxx> wrote in message
news:1154195276.839301.264970@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
I know. That is a schema file. The only i want is to create all
attributes and classes defined in that file into Active directory,
without having to do it by hand. What should be the format of yhe ldif
file to import in case of possible?

Joe Richards [MVP] ha escrito:

Again, that file isn't an LDIF file. LDIFDE only uses LDIF files.

--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm


Juan wrote:
The start of teh input file is:

-------------------------------------------------------
## Attributetypes and ObjectClasses needed for Asterisk

attributetype ( 1.3.6.1.4.1.23935.5.2.1.1.1 NAME 'astUsername'
DESC ''
SUP name )

attributetype ( 1.3.6.1.4.1.23935.5.2.1.1.2 NAME 'astSecret'
DESC ''
SUP name )

attributetype ( 1.3.6.1.4.1.23935.5.2.1.1.3 NAME 'astMailbox'
DESC ''
SUP name )

attributetype ( 1.3.6.1.4.1.23935.5.2.1.1.4 NAME 'astTemplate'
DESC ''
SUP name )

[........]
-------------------------------------------------------

Thats the result of the command:

C:\Documents and Settings\Administrador\Escritorio>ldifde -i -v -f
asterisk.schema
Conectándose a "servired.ifactorial.local"
Iniciando sesión como usuario actual utilizando SSPI
Importando directorio desde el archivo "asterisk.schema"
Cargando entradas
Hay un error de sintaxis en el archivo de entrada


... or translated:

Connecting to "servired.ifactorial.local"
Starting session as present user using SSPI
Importing directory from file "asterisk.schema"
Loading entries
There is a syntax error in input file



Joe Richards [MVP] ha escrito:

What does the ldif file look like and what is the error when ldifde
processes it.

--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm


Juan wrote:
That's right. Theorically that is in a format to include in openldap
configuration file through an include directive. I suppose that it is
an standard file format. Ldifde too gives an error.

I include an extract of the file, if someone knows if this can be
converted into a ldif file:

-----------------------------------------------------------------

attributetype ( 1.3.6.1.4.1.23935.5.2.1.1.1 NAME 'astUsername'
DESC ''
SUP name )

attributetype ( 1.3.6.1.4.1.23935.5.2.1.1.2 NAME 'astSecret'
DESC ''
SUP name )

attributetype ( 1.3.6.1.4.1.23935.5.2.1.1.3 NAME 'astMailbox'
DESC ''
SUP name )


objectclass ( 1.3.6.1.4.1.23935.5.2.1.2.1 NAME 'astSipGeneric'
DESC ''
SUP top ABSTRACT
MUST ( astContext )
MAY ( astSecret $ astPermit $ astDeny $ astMd5Secret $ astDtmfmode $
astCanreinvite $ astNat $ astCallgroup $ astPickupgroup $ astAllow $
astDisallow $ astInsecure $ astTrustrpid $ astProgressinband $
astPromiscredir $ astRegseconds $ astname $ astLanguage ) )


objectclass ( 1.3.6.1.4.1.23935.5.2.1.2.2 NAME 'astSipPeer'
DESC ''
SUP astSipGeneric AUXILIARY
MUST astUsername
MAY ( astMailbox $ astTemplate $ astFromdomain $ astRegexten $
astFromuser $ astHost $ astMask $ astPort $ astQualify $ astDefaultip
$
astRtptimeout $ astRtpholdtimeout ) )

-----------------------------------------------------------------


Joe Richards [MVP] ha escrito:

How are you trying to import that... Usually you use ldifde to load
schema mods but that isn't LDIF format below...


--
Joe Richards Microsoft MVP Windows Server Directory Services
Author of O'Reilly Active Directory Third Edition
www.joeware.net


---O'Reilly Active Directory Third Edition now available---

http://www.joeware.net/win/ad3e.htm


Juan wrote:
I am trying to import an file containing definitions of attributes
and
classes. I have installed ADAM to import it, but when I load it i
get
an error:

[In spanish]
Error (Exception) al cargar el esquema desde "Archivo LDIF": Error
al
cargar esquema: astUsername: La referencia SUP del atributo (name)
no
está apuntando a ningún atributo existente. No es posible continuar.

[In english]
Error (Exception) loading schema from "LDIF File": Error loading
schema: astUsername: Reference SUP of attribute (name) is not
referencing any existent attribute. Can not continue.

Thios is an extract of the file:

-----------------------------------------------------

attributetype ( 1.3.6.1.4.1.23935.5.2.1.1.1 NAME 'astUsername'
DESC ''
SUP name )


----------------------------------------------------

Any idea of the error? Is there any other way to load an schema file
into AD?

Thanks in advance from Spain.




.



Relevant Pages

  • Re: Importing schema file
    ... that file isn't an LDIF file. ... Joe Richards Microsoft MVP Windows Server Directory Services ... SUP name) ...
    (microsoft.public.windows.server.active_directory)
  • Re: Importing schema file
    ... That is a schema file. ... Joe Richards Microsoft MVP Windows Server Directory Services ... Author of O'Reilly Active Directory Third Edition ... SUP name) ...
    (microsoft.public.windows.server.active_directory)
  • Re: Importing schema file
    ... SUP name) ... Joe Richards Microsoft MVP Windows Server Directory Services ... Error loading schema from "LDIF File": ...
    (microsoft.public.windows.server.active_directory)
  • Re: Importing schema file
    ... Coukld you explain how to export it from an OpenLDAP server? ... ## Attributetypes and ObjectClasses needed for Asterisk ... SUP name) ... It's not a big deal converting this to LDIF manually. ...
    (microsoft.public.windows.server.active_directory)
  • Re: Importing schema file
    ... ## Attributetypes and ObjectClasses needed for Asterisk ... SUP name) ... It's not a big deal converting this to LDIF manually. ...
    (microsoft.public.windows.server.active_directory)

Loading