[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: adduser problem



John Schmidt wrote:
> On Sunday 10 October 2004 09:45 pm, Jim Hall wrote:
>
>>Greetings,
>>
snip
 >>
>>About a year ago, my local LUG set up a small weekly newspaper with
>>Linux. The workstations are dual boot W98/RedHat 7.3 (don't ask, long
>>story), the server is Debian (named debbie). Buddy set it up. He is
>>very, very good, but had to do some customization (maybe a lot). After
>>doing updates, upgrades, and dist-upgrades on the lab test system with
>>no apparent ill effects, I thought it was time to do the same to the
>>newspapers server. In the process I broke 'adduser'. So far, the
>>solution appears to involve LDAP. None of us seems to have much
>>experience with that. Buddy has since moved and isn't responding to emails.
>>
>>The newspaper has been working on a series of articles about the
>>switchover from Windoze to Linux. Right now they're not very happy with
>>Debian. Is there anyone who offers paid, secure support for Debian?
>>Donation to the Debian project is also acceptable. Remote access can be
>>provided.
 >>
snip
>>
>>Thanks,
>>Jim
>
>
>
> Jim,
>
> There is a Debian package call cpu which can do adduser type of operations
> using a LDAP backend.
>
> Check out apt-cache show cpu.
>
> For example to add a user to a LDAP system, you can do something like this as
> superuser (root):
>
>  #> cpu-useradd testuser
>
>
> John
>
>


Thank you all for the suggestions. I will chack them out ASAP, although
I'd be leery of trying the cpu command because I don't know how this
system's various services are interrelated. I know there is a way to list all the installed pkgs on the system. I'll look that up and try it as soon as I can get there. In the meantime, one of our LUG members tried 'adduser' and came up with the following.


Script started on Mon Sep 27 18:42:08 2004
debbie:/usr/local/sbin# adduser danjs
Password for cn=admin,dc=rcreader,dc=com:
Traceback (most recent call last):
  File "/usr/local/sbin/adduser", line 219, in ?
    l.simple_bind_s (login_dn, login_pw)
File "/usr/lib/python2.3/site-packages/ldap/ldapobject.py", line 176, in simple_bind_s
    self.result(msgid,all=1,timeout=self.timeout)
File "/usr/lib/python2.3/site-packages/ldap/ldapobject.py", line 392, in result
    res_type,res_data,res_msgid = self.result2(msgid,all,timeout)
File "/usr/lib/python2.3/site-packages/ldap/ldapobject.py", line 398, in result2
    return self._ldap_call(self._l.result2,msgid,all,timeout)
File "/usr/lib/python2.3/site-packages/ldap/ldapobject.py", line 94, in _ldap_call
    result = func(*args,**kwargs)
ldap.INVALID_CREDENTIALS: {'info': '', 'desc': 'Invalid credentials'}
debbie:/usr/local/sbin# exit
Script done on Mon Sep 27 18:42:18 2004


Jim



Reply to: