The converstSambaAccount script does not always work. In particular, when the ldif file is generated using: ldapsearch -x -h ldapsrv -D cn=root,dc=company,dc=com -b dc=company,dc=com then at the end it contains the entries: # search result search: 2 result: 0 Success # numResponses: 99 # numEntries: 98 ...at least using the ldapsearch utility that comes from the RedHat package openldap-clients-2.0.27-2.7.3 This yields the error message: First line of LDIF entry does not begin with 'dn:' at ./convertSambaAccount line 133 A better way to generate that LDIF file is: ldapsearch -LL -x -h ldapsrv -D cn=root,dc=company,dc=com -b dc=company,dc=com Note the "-LL" argument so no comments whatsoever are generated. It would be nice if this was clarified in the script's documentation, and also reflected in the document that is currently available at: http://us2.samba.org/samba/docs/man/Samba-HOWTO-Collection.html
Created attachment 204 [details] This patch adds a comment in the convertSambaAccount script that documents the best way to create an LDIF file that the script won't fail to process.
Comment on attachment 204 [details] This patch adds a comment in the convertSambaAccount script that documents the best way to create an LDIF file that the script won't fail to process. Type'o fix
patch committed. Thanks.
sorry for the same, cleaning up the database to prevent unecessary reopens of bugs.