Увидели сообщение с непонятной ссылкой, спам, непристойность или оскорбление?Воспользуйтесь ссылкой «Сообщить модератору» рядом с сообщением!
0 Пользователей и 1 Гость просматривают эту тему.
ldapadd -Y EXTERNAL -H ldapi:/// -f backend.example.com.ldif
adding new entry "olcDatabase=hdb,cn=config"ldap_add: Other (e.g., implementation specific) error (80) additional info: <olcRootPW> can only be set when rootdn is under suffix
> olcRootPW: value #0: <olcRootPW> can only be set when rootdn is under> suffix> slapd stopped.The problem occurs because DNs that contain spaces are parsed as differenttokens unless they are enclosed within quotes; if you editslapd.d/cn\=config/olcDatabase\=\{1\}bdb.ldif and put quotes around thevalue of olcRootDN it will work. This is a bug that affects alloccurrences of DN-valued attributes in back-config.There might be different solutions, which should be dicussed on -devel:- EMIT DN-valued attributes wrapped in double quotes (") e.g. by defininga value_add_one_quoted() helper that wraps the calls to value_add_one();- parse DN-valued attributes differently from other values, e.g. byglueing together tokens 1 to argc-1 (this sounds like a hack, and maycause trouble with slapd.conf parsing);- other...
put quotes around thevalue of olcRootDN it will work
olcRootDN: "cn=admin,dc=example,dc=com,cn=config"
adding new entry "olcDatabase=hdb,cn=config"ldap_add: Invalid syntax (21) additional info: olcRootDN: value #0 invalid per syntax
Страница сгенерирована за 0.017 секунд. Запросов: 20.