Re: [CentOS] openldap migration script fails...

2007-07-19 Thread joseph tacuyan

On 7/20/07, Steve Strong <[EMAIL PROTECTED]> wrote:


good advise.  i've got just two questions:

  1. since it's just being used for authentication, could I just
 migrate passwd, shadow and group?



Yes, and the configure your client via authconfig.


 2. would the command be: slapadd < myfile.ldif?


No, the easiest and most not prone to error is run the migrate scripts on
/usr/share/openldap/migrate.
Doc's regarding this is on Centos Ref/Sys Manual w/c is accessible via
centos.org


thanks a lot!

steve




hth,

joseph

Craig White wrote:

> On Thu, 2007-07-19 at 15:26 -0500, Steve Strong wrote:
>
>> OK, now this is getting better.  the openldap server seems to function
OK,
>> but running the migration scripts results in a duplicate entry error
while
>> "migrate_all_offline.sh" is processing /etc/services.  the duplicate
entry
>> is "echo" and when i looked at the file their are two entries, one for
tcp
>> and one for udp.
>>
>> shouldn't these migration scripts be able to hangke this?
>>
>> anyhow, when the script terminates in tells me where there is an .ldif
>> file.  does any one know how to use that file as an input to another
app
>> after i edit out all of the duplicate entries???
>>
>> or is there a better way to get around this?
>>
> 
> I always found it best to run the migrate scripts into files which I can
> edit and then slapadd when I had them all done.
>
>


--
Steve Strong
Math and Computer Science
Washington High School
2205 Forest Dr. SE
Cedar Rapids, IA   52403
http://crwash.org
mailto:[EMAIL PROTECTED]

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] openldap migration script fails...

2007-07-19 Thread Steve Strong

good advise.  i've got just two questions:

  1. since it's just being used for authentication, could I just
 migrate passwd, shadow and group?
  2. would the command be: slapadd < myfile.ldif?

thanks a lot!
steve

Craig White wrote:

On Thu, 2007-07-19 at 15:26 -0500, Steve Strong wrote:
  

OK, now this is getting better.  the openldap server seems to function OK,
but running the migration scripts results in a duplicate entry error while
"migrate_all_offline.sh" is processing /etc/services.  the duplicate entry
is "echo" and when i looked at the file their are two entries, one for tcp
and one for udp.

shouldn't these migration scripts be able to hangke this?

anyhow, when the script terminates in tells me where there is an .ldif
file.  does any one know how to use that file as an input to another app
after i edit out all of the duplicate entries???

or is there a better way to get around this?



I always found it best to run the migrate scripts into files which I can
edit and then slapadd when I had them all done.

  



--
Steve Strong
Math and Computer Science
Washington High School
2205 Forest Dr. SE
Cedar Rapids, IA   52403
http://crwash.org
mailto:[EMAIL PROTECTED]

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] openldap migration script fails...

2007-07-19 Thread Craig White
On Thu, 2007-07-19 at 15:26 -0500, Steve Strong wrote:
> OK, now this is getting better.  the openldap server seems to function OK,
> but running the migration scripts results in a duplicate entry error while
> "migrate_all_offline.sh" is processing /etc/services.  the duplicate entry
> is "echo" and when i looked at the file their are two entries, one for tcp
> and one for udp.
> 
> shouldn't these migration scripts be able to hangke this?
> 
> anyhow, when the script terminates in tells me where there is an .ldif
> file.  does any one know how to use that file as an input to another app
> after i edit out all of the duplicate entries???
> 
> or is there a better way to get around this?

I always found it best to run the migrate scripts into files which I can
edit and then slapadd when I had them all done.

-- 
Craig White <[EMAIL PROTECTED]>

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] openldap migration script fails...

2007-07-19 Thread Steve Strong
OK, now this is getting better.  the openldap server seems to function OK,
but running the migration scripts results in a duplicate entry error while
"migrate_all_offline.sh" is processing /etc/services.  the duplicate entry
is "echo" and when i looked at the file their are two entries, one for tcp
and one for udp.

shouldn't these migration scripts be able to hangke this?

anyhow, when the script terminates in tells me where there is an .ldif
file.  does any one know how to use that file as an input to another app
after i edit out all of the duplicate entries???

or is there a better way to get around this?

thanks!
steve


> nice!  thanks, BUT now migrating the file stuff (passwd, shadow, etc)
> proceeds wonderfully, but when it finishes and tries to restart slapd,
> it says it can't find the server.
> steve
>
> joseph tacuyan wrote:
>>
>>
>> On 7/19/07, *Steve Strong* <[EMAIL PROTECTED]
>> > wrote:
>>
>> ... with this error message:
>>
>> Preparing LDAP database...
>> => bdb_tool_entry_put: id2entry_add failed: DB_KEYEXIST: Key/data
>> pair
>> already exists (-30996)
>> => bdb_tool_entry_put: txn_aborted! DB_KEYEXIST: Key/data pair
>> already
>> exists (-30996)
>> slapadd: could not add entry dn="dc=washcslab,dc=org" (line=5):
>> txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30996)
>> Migration failed: saving failed LDIF to /tmp/nis.ldif.Gi3667
>>
>> ok, so this is the second (or fourth) time i've done this, but is
>> there
>> a way to delete the existing key???
>>
>> any help would be greatly appreciated!
>> steve
>>
>> --
>> Steve Strong
>> Math and Computer Science
>> Washington High School
>> 2205 Forest Dr. SE
>> Cedar Rapids, IA   52403
>> http://crwash.org
>> mailto: [EMAIL PROTECTED] 
>>
>> ___
>> CentOS mailing list
>> CentOS@centos.org 
>> http://lists.centos.org/mailman/listinfo/centos
>>
>>
>> Yes, via ldapdelete.
>> 
>>
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> http://lists.centos.org/mailman/listinfo/centos
>>
>
>
> --
> Steve Strong
> Math and Computer Science
> Washington High School
> 2205 Forest Dr. SE
> Cedar Rapids, IA   52403
> http://crwash.org
> mailto:[EMAIL PROTECTED]
>
> ___
> CentOS mailing list
> CentOS@centos.org
> http://lists.centos.org/mailman/listinfo/centos
>


-- 
Steve Strong
Math an Computer Science
Washington High School
2205 Forest Dr. SE
Cedar Rapids, IA   52402
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] openldap migration script fails...

2007-07-18 Thread Steve Strong
nice!  thanks, BUT now migrating the file stuff (passwd, shadow, etc) 
proceeds wonderfully, but when it finishes and tries to restart slapd, 
it says it can't find the server.

steve

joseph tacuyan wrote:



On 7/19/07, *Steve Strong* <[EMAIL PROTECTED] 
> wrote:


... with this error message:

Preparing LDAP database...
=> bdb_tool_entry_put: id2entry_add failed: DB_KEYEXIST: Key/data
pair
already exists (-30996)
=> bdb_tool_entry_put: txn_aborted! DB_KEYEXIST: Key/data pair already
exists (-30996)
slapadd: could not add entry dn="dc=washcslab,dc=org" (line=5):
txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30996)
Migration failed: saving failed LDIF to /tmp/nis.ldif.Gi3667

ok, so this is the second (or fourth) time i've done this, but is
there
a way to delete the existing key???

any help would be greatly appreciated!
steve

--
Steve Strong
Math and Computer Science
Washington High School
2205 Forest Dr. SE
Cedar Rapids, IA   52403
http://crwash.org
mailto: [EMAIL PROTECTED] 

___
CentOS mailing list
CentOS@centos.org 
http://lists.centos.org/mailman/listinfo/centos


Yes, via ldapdelete.


___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos
  



--
Steve Strong
Math and Computer Science
Washington High School
2205 Forest Dr. SE
Cedar Rapids, IA   52403
http://crwash.org
mailto:[EMAIL PROTECTED]

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] openldap migration script fails...

2007-07-18 Thread joseph tacuyan

On 7/19/07, Steve Strong <[EMAIL PROTECTED]> wrote:


... with this error message:

Preparing LDAP database...
=> bdb_tool_entry_put: id2entry_add failed: DB_KEYEXIST: Key/data pair
already exists (-30996)
=> bdb_tool_entry_put: txn_aborted! DB_KEYEXIST: Key/data pair already
exists (-30996)
slapadd: could not add entry dn="dc=washcslab,dc=org" (line=5):
txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30996)
Migration failed: saving failed LDIF to /tmp/nis.ldif.Gi3667

ok, so this is the second (or fourth) time i've done this, but is there
a way to delete the existing key???

any help would be greatly appreciated!
steve

--
Steve Strong
Math and Computer Science
Washington High School
2205 Forest Dr. SE
Cedar Rapids, IA   52403
http://crwash.org
mailto:[EMAIL PROTECTED]

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos



Yes, via ldapdelete.
___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos


[CentOS] openldap migration script fails...

2007-07-18 Thread Steve Strong

... with this error message:

Preparing LDAP database...
=> bdb_tool_entry_put: id2entry_add failed: DB_KEYEXIST: Key/data pair 
already exists (-30996)
=> bdb_tool_entry_put: txn_aborted! DB_KEYEXIST: Key/data pair already 
exists (-30996)
slapadd: could not add entry dn="dc=washcslab,dc=org" (line=5): 
txn_aborted! DB_KEYEXIST: Key/data pair already exists (-30996)

Migration failed: saving failed LDIF to /tmp/nis.ldif.Gi3667

ok, so this is the second (or fourth) time i've done this, but is there 
a way to delete the existing key???


any help would be greatly appreciated!
steve

--
Steve Strong
Math and Computer Science
Washington High School
2205 Forest Dr. SE
Cedar Rapids, IA   52403
http://crwash.org
mailto:[EMAIL PROTECTED]

___
CentOS mailing list
CentOS@centos.org
http://lists.centos.org/mailman/listinfo/centos