I am trying to do some file migrations and I am following the instructions in the recommended steps:

1. mls -s -v USERS > mls.yaml
2. maptrustees -s -D cn=DVOESSRV1,ou=servers,ou=chi,ou=il,o=hcsc mls.yaml > maptrustees.yaml
3. migfiles -s -v USERS:I269616 -x /media/nss/VOL1/USERS/I269616 -n -i

I get the following error when trying the second step:

ldap_bind: Can't contact LDAP server (-1)
maptrustees:ldapsearch failure:

During step one, two and three it asks you to login with userid and password which I do successfully. I have run steps one and three successfully. Step three copied all of the data and trustee rights without issue. So what is with the ldap error on step two?

Any suggestions?