Try running the script from the /usr/share/openldap/migration/ directory. The script may be referencing scripts in its home directory assuming that it is being run there already.
Hi. I am trying to install LDAP on my system using the tutorial here. I'm just at the "Configuring The LDAP Server: Create Your LDAP Database" part of the tutorial. I get the errors below. Can anyone help? Thanks.
[root@localhost example.com]# /usr/share/openldap/migration/migrate_all_offline.sh
Creating naming context entries...
Can't open perl script "migrate_base.pl": No such file or directory
Migrating aliases...
Can't open perl script "migrate_aliases.pl": No such file or directory
Migrating groups...
Can't open perl script "migrate_group.pl": No such file or directory
Migrating hosts...
Can't open perl script "migrate_hosts.pl": No such file or directory
Migrating networks...
Can't open perl script "migrate_networks.pl": No such file or directory
Migrating users...
Can't open perl script "migrate_passwd.pl": No such file or directory
Try running the script from the /usr/share/openldap/migration/ directory. The script may be referencing scripts in its home directory assuming that it is being run there already.
Try ./migrate_all_offline.sh instead.
i think i need to modify the script to tell it where "migrate_passwd.pl" is and not to process or look for those other perl scripts. but how do i go about doing that and whcih script?
oh, that works. thanks!
i get a few errors though, should i be concerned?
[root@localhost migration]# ./migrate_all_offline.sh
Creating naming context entries...
Migrating aliases...
Migrating groups...
Migrating hosts...
Migrating networks...
Migrating users...
Migrating protocols...
Migrating rpcs...
Migrating services...
Migrating netgroups...
Importing into LDAP...
Migrating netgroups (by user)...
sh: /etc/netgroup: No such file or directory
Migrating netgroups (by host)...
sh: /etc/netgroup: No such file or directory
Preparing LDAP database...
str2entry: invalid value for attributeType objectClass #0 (syntax 1.3.6.1.4.1.1466.115.121.1.38)
slapadd: could not parse entry (line=71)
Migration failed: saving failed LDIF to /tmp/nis.3895.ldif
i managed to fix the errors above: i just stopped ldap service, and ran migrate_all_offline.sh again and no errors.
i went ahead and start the service again, then on the client side, i configured ldap.conf and ran authconfig-tui. when tried to assign ownership to ldapuser, i get an error..
[root@localhost ~]# chown -R ldapuser:users /home/ldapuser
chown: 'ldapuser:users': invalid user
does this mean /etc/passwd hasn't migrated properly? any ideas on how i can solve this problem?
thanks.
It probably means that you didn't create the ldap user beforehand
thanks peter. im pretty sure i created the user beforehand on the server. i followed the tutorial to a tee. i tried the chown command on another user on the server that existed before i started this project and it gave me the same error. i even reinstalled linux on both machines and redid the tutorial and still could not get pass this error. i googled around but could not get a solution.
Bookmarks