Connect. Communicate. Collaborate. Securely.

Home » Kerio User Forums » Kerio Connect » Can't install OD Extension (Open Directory Extension gives error on installation)
  •  
Yohann94

Messages: 49

Karma: 1
Send a private message to this user
Hello,
As my 10.5 Open Directory died and can't be restored from the replica (everything is corrupted), I'm configuring a new Open Directory on a 10.6.4 server and can't install the OD extension (7.1.2). Here is the log :
07/01/11 21:20:20	[0x0-0x16016].com.MindVision.VISEX	Bareword found where operator expected at /Users/admini/Library/Application Support/5134 line 17, near "/usr/sbin"
07/01/11 21:20:20	[0x0-0x16016].com.MindVision.VISEX		(Missing operator before bin?)
07/01/11 21:20:20	[0x0-0x16016].com.MindVision.VISEX	Bareword found where operator expected at /Users/admini/Library/Application Support/5134 line 22, near "/usr/sbin"
07/01/11 21:20:20	[0x0-0x16016].com.MindVision.VISEX		(Missing operator before bin?)
07/01/11 21:20:20	[0x0-0x16016].com.MindVision.VISEX	syntax error at /Users/admini/Library/Application Support/5134 line 17, near "/usr/sbin"
07/01/11 21:20:20	[0x0-0x16016].com.MindVision.VISEX	syntax error at /Users/admini/Library/Application Support/5134 line 22, near "/usr/sbin"
07/01/11 21:20:20	[0x0-0x16016].com.MindVision.VISEX	Execution of /Users/admini/Library/Application Support/5134 aborted due to compilation errors.
07/01/11 21:20:21	com.apple.launchd[1]	(com.apple.suhelperd[229]) Exited with exit code: 2

I remember always having issues with this installation even on 10.5, but I can't remember how I managed to make it work.

Of course, it's in a hurry as I need to make everything working of Monday or I'm a dead man...

Any idea or any tips for installing this by hand ?

[Updated on: Fri, 07 January 2011 21:53]

  •  
uptimjeff

Messages: 61
Karma: 1
Send a private message to this user
Try installing while logged-in as a different user.

I'm just learning kerio/OD integration also and setup a couple servers this week without issue. If you are in a jam and could use a hand, contact me jdj/at/mac.com. I'll be working 10:00am-12:30pm EST Saturday morning..
  •  
Yohann94

Messages: 49

Karma: 1
Send a private message to this user
I tried login with the root user, and the console is more chatty :
08/01/11 08:51:21	[0x0-0x40040].com.MindVision.VISEX[12159]	/private/var/root/Library/Application Support/2492781: line 2: /var/root/Documents/JavaVers.txt: No such file or directory
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]	Updating /etc/openldap/slapd.d/cn=config/cn=schema/cn={9}customSchema.ldif
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]	Read original file to memory array (/etc/openldap/slapd.d/cn=config/olcDatabase={1}bdb.ldif).
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]	Modifing /etc/openldap/slapd.d/cn=config/olcDatabase={1}bdb.ldif.
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]	Final step of file modifications.
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]	Finished.
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]	Read original file to memory array (/etc/openldap/slapd.d/cn=config/olcDatabase={1}bdb.ldif).
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]	Add new indexed attributes to memory array.
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]	Write modified array to persistent storage file.
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]	Moving a new file instead of the old one.
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]	Finishing /etc/openldap/slapd.d/cn=config/olcDatabase={1}bdb.ldif modification.
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]	Bareword found where operator expected at /private/var/root/Library/Application Support/2493201 line 17, near "/usr/sbin"
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]		(Missing operator before bin?)
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]	Bareword found where operator expected at /private/var/root/Library/Application Support/2493201 line 22, near "/usr/sbin"
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]		(Missing operator before bin?)
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]	syntax error at /private/var/root/Library/Application Support/2493201 line 17, near "/usr/sbin"
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]	syntax error at /private/var/root/Library/Application Support/2493201 line 22, near "/usr/sbin"
08/01/11 08:51:28	[0x0-0x40040].com.MindVision.VISEX[12159]	Execution of /private/var/root/Library/Application Support/2493201 aborted due to compilation errors.

but it doesn't change anything, I can't see the kerio attributes in Workgroup Manager.

I remember that the installer used to ask for the diradmin password, isn't the case anymore ? How can the ldap dabase be updated without credentials ?

Thank you uptimjeff for your help.
  •  
uptimjeff

Messages: 61
Karma: 1
Send a private message to this user
run this from terminal:

sudo changeip -checkhostname

send results back here or I'm on ichat/aim at jdj-at-mac.com

[Updated on: Sat, 08 January 2011 16:07]

  •  
Yohann94

Messages: 49

Karma: 1
Send a private message to this user
I already checked this command and everything is ok. I know Open Directory need so much a good DNS that this is the first thing I check when I have troubles.
foxmulder:~ admini$ sudo changeip -checkhostname
Password:

Primary address     = 192.168.131.223

Current HostName    = foxmulder.michelet.bai
DNS HostName        = foxmulder.michelet.bai

The names match. There is nothing to change.
dirserv:success = "success"
foxmulder:~ admini$
  •  
marook

Messages: 520

Karma: 3
Send a private message to this user
Did you manage to get it working?
I have never had problems with this installer - it's just adding a schema file to the slapd settings, so why it does this is very strange!

Regards,

Jakob Peterhänsel
Consultant - Humac A/S

Apple Certified Support Professional (ACSP)
Apple Certified Technical Coordinator (ACTC)
AppleSeed/CQF member since 1998
Kerio Messaging Partner
  •  
Yohann94

Messages: 49

Karma: 1
Send a private message to this user
No I didn't. I sent a ticket to the support 24 hours ago and no reply !
But I managed to put my Replica back on, it's better than nothing. Now I really need to make my 10.6 master work before something happens to the replica !

(yes I tried to promote the replica to master, but there are some errors and it's then impossible to create a new replica linked to that master).

[Updated on: Tue, 11 January 2011 12:58]

  •  
Yohann94

Messages: 49

Karma: 1
Send a private message to this user
I've found the origin of the errors in the console log. In the resources of the installer, there is a perl script and in the lines 17 and 22 we find "/usr/sbin/slapindex":

if (-e "/System/Library/LaunchDaemons/org.openldap.slapd.xml") {
  system "launchctl stop org.openldap.slapd";
  /usr/sbin/slapindex
  system "launchctl start org.openldap.slapd";
}
elsif (-e "/System/Library/LaunchDaemons/org.openldap.slapd.plist") {
  system "launchctl stop org.openldap.slapd";
  /usr/sbin/slapindex
  system "launchctl start org.openldap.slapd";


All I could do using an hex editor is to add a comment "#" in front of each lines to make the error disappear.
But, I still don't have my kerio filed in my ldap database so something else is wrong.

I even tried to install unsuccessfully the KODE on a fresh newly installed 10.6 Server with only Open Directory activated.

Are you sure you guys don't have any issue with Mac OS X Snow Leopard ???
  •  
My IT Indy

Messages: 1262
Karma: 40
Send a private message to this user
We've set up dozens of OD integrated installs with no issues outside of DNS changing for some reason (internal DNS changes at the client)

-
My IT Indy
Kerio Certified Reseller and Hosted Provider
http://www.myitindy.com
  •  
Yohann94

Messages: 49

Karma: 1
Send a private message to this user
Ok, I've understand what happened.
On 10.6, the installation has nothing to do with 10.5. The only modified file is /etc/openldap/slapd.d/cn=config/olcDatabase={1}bdb.ldif. And the installer does it well.
All other tasks (modifying netinfo.schema and create a kerio schema) are not related to 10.6. That's why I first thought that it didn't work, and certainly because my first try was on a corrupted OD. The only thing I had to do with my freshly installed 10.6 server was restarting the server as the installer is bugged on restarting slapd (the errors in the console log are from this bugged script).

I'm very sorry for all this mess.

Next step for me : add the 456 passwords manually on my new directory and add again those users in kerio after it's being connected to the new server. (export-import of the users and groups of an OD doesn't export the kerio flags).

[Updated on: Fri, 14 January 2011 18:04]

  •  
Pavel Dobry (Kerio)

Messages: 5245
Karma: 251
Send a private message to this user
Yohann94 wrote on Fri, 14 January 2011 17:52
Ok, I've understand what happened.
On 10.6, the installation has nothing to do with 10.5. The only modified file is /etc/openldap/slapd.d/cn=config/olcDatabase={1}bdb.ldif. And the installer does it well.

It also creates/modifies /etc/openldap/slapd.d/cn\=config/cn\=schema/cn\=\{9\}customS chema.ldif file.


Previous Topic: SSL Wildcard certificate
Next Topic: BlackBerry issues
Goto Forum:
  


Disclaimer:
Kerio discussion forums are intended for open communication between forum members and may contain information and material posted by members which may be useful in learning about Kerio products. The discussion forums are not intended to provide technical support for any specific product. Any information implied or expressed in the discussion forums is that of the posting member. Kerio is in no way responsible for the information posted in the forums, or its accuracy. Kerio employees may participate in the discussions, but their postings do not represent an offical position of the company on any issues raised or discussed. Kerio reserves the right to monitor and maintain the forums to promote free and accurate exchange of information.

Current Time: Sat Nov 18 09:39:55 CET 2017

Total time taken to generate the page: 0.00567 seconds
.:: Contact :: Home ::.
Powered by: FUDforum 3.0.4.