#2279 shows empty NIS maps when edit

1.120
open
5
2005-10-13
2005-10-13
No

I rely on Webmin to manage my NIS users. It has been
working fine for a few years now and I was adding some
users and then it came back and said the users maps are
empty. I paniced thinking OH NO my maps are hosed. I
went to the box and they are there, changes all took
effect. I then choose edit file manually in Webmin and
they are there but when try to do it in the regular
webmin mode it claims the records are gone. I
restarted the Webmin and the NIS server and so far it
still happens. This is really ruining my day. Anyone
know a fix? I instaled webmin from a Solaris package,
BTW. (several years ago)

Version 1.121 on Sun Solaris 9

Discussion

  • Jamie Cameron

    Jamie Cameron - 2005-10-13

    Logged In: YES
    user_id=129364

    Does this effect all NIS tables, or just some?
    Also, could you post your /var/yp/Makefile file to this bug
    report .. that is what Webmin uses to get the files for each
    table, and it is possible that some change in the Makefile
    could be confusing Webmin.

     
  • Tom Connelly

    Tom Connelly - 2005-10-14

    Logged In: YES
    user_id=748007

    It only seems to be affecting USERS. Sorry if I implied it
    affected all maps.

    I was adding a few new users from Bangalore, and one had a
    really long name, and this happened after I added that user.
    The changes took and the /etc/nispw/passwd file was updated
    but now Webmin thinks it's empty except when I edit the raw
    file. I went in and shortened that user's line but no dice.
    I wonder does Webmin have some hard limit for the length of
    the passwd file?
    =======================

    Makefile is attached.

    Thanks,

    Tom

     
  • Jamie Cameron

    Jamie Cameron - 2005-10-15

    Logged In: YES
    user_id=129364

    Webmin doesn't have any limit on the length of a line..
    Does removing that new user from the passwd and shadow NIS
    files resolve the problem?
    BTW, the Makefile didn't seem to be attached to the bug report..

     
  • Tom Connelly

    Tom Connelly - 2005-10-17

    Logged In: YES
    user_id=748007

    Yeah, I guess I should have tried that, but when it's
    something I consider shouldn't be the problem I don't try
    it. Call it a character flaw. ;-)

    Why would THIS line cause something like that? Because now
    the map is back in the normal view. Is there a number of
    passwd file lines limit in webmin?

    ========

    shridhar:x:5107:101:Shridhar Subash:/home/shridhar:/bin/ksh

    ========

    It can't be the line length anyway (as you stated) since I
    have others that length. When I try re-adding the user
    after it clears up the same thing happens. It vanishes from
    normal view, I have to edit it out manually then save it,
    the map comes back in normal view. Weird. Seems like
    something is causing me a limit to how many entries I can
    have in this file.

    It told me the Makefile was attached. I can just paste it
    in if it doesn't work this time. I'll try attaching it again.

    Thanks for your continued help. I don't know hwo many
    people offer thanks vs just expecting it. Even if it
    doesn't pan out thanks for taking the time. :-)

     
  • Tom Connelly

    Tom Connelly - 2005-10-17

    Makefile

     
    Attachments
  • Jamie Cameron

    Jamie Cameron - 2005-10-18

    Logged In: YES
    user_id=129364

    I can't see anything especially wrong with that line ..
    Does the same problem happen if you add a different user?
    If so, you might want to try increasing the 'Maximum number
    of records to display' setting on the Module Config page.

     

Get latest updates about Open Source Projects, Conferences and News.

Sign up for the SourceForge newsletter:





No, thanks