Upgrade & Samba problem

Discuss your pilot or production implementation with other Zimbra admins or our engineers.
NoDoze
Outstanding Member
Outstanding Member
Posts: 360
Joined: Fri Sep 12, 2014 11:22 pm

Upgrade & Samba problem

Postby NoDoze » Thu Sep 17, 2009 4:29 am

what I don't understand is how zimbra staff can't just say this is the problem, this is how you fix it. Instead they refer you to these tutorials that are inaccurate. I've followed them to the dot and it still isn't working. I get the feeling zimbra staff themselves don't know the problem. NONE of the user accounts AND admin are able to login. Why did zimbra staff decide to change the location and how schemas were handled? It's been working just fine for all of 5.x, right? I'm willing to troubleshoot it with a staff member for the better good for everyone who needs help with this issue, but I have no idea where to start...cause according to their tutorials it should work now....?


User avatar
quanah
Zimbra Alumni
Zimbra Alumni
Posts: 1668
Joined: Fri Sep 12, 2014 10:33 pm
Contact:

Upgrade & Samba problem

Postby quanah » Thu Sep 17, 2009 11:13 am

[quote user="NoDoze"]I've followed both:

Installing custom ldap schema 6.0 - Zimbra :: Wiki

and

Optimizing 50 to 60 LDAP upgrade - Zimbra :: Wiki
Still no user accounts....
I have no idea what the end result is supposed to look like and how is it any different from the previous version....?

[/QUOTE]
The first wiki is part of the process of the second wiki. Note that things have to be done before running the 6.0 zmsetup.pl or else importing the users into OpenLDAP 2.4 will fail, which could well explain why you don't see any users. If you make any errors with the schema conversion process, the import will also fail. Without seeing your system, I can't really say further as to why your users aren't showing up. And remember that if you are using the domain disclaimer extension, there is currently no upgrade path other than stripping those pieces out prior to upgrade.
--
Quanah Gibson-Mount
Product Architect, Symas http://www.symas.com/
OpenLDAP Core team http://www.openldap.org/project/
catnipper
Advanced member
Advanced member
Posts: 71
Joined: Fri Sep 12, 2014 11:45 pm

Upgrade & Samba problem

Postby catnipper » Fri Sep 18, 2009 5:16 am

FOLLOWING THIS ARTICLE MAKES ME SHIVERING: I ACTUALLY RUN ON ZCS 5 NE AND HAVE SAMBA AND POSIX INSTALLED!
UNFORTUNATELY THE UNINSTALL PROCESS OF THE ADMIN ZIMLETS "POSIX" AND "SAMBA" DOES NOT SEEM TO WORK FOR ME.
I TRIED DOING BY:



  • STOP THE SAMBA SERVER

  • ZMZIMLETCTL UNDEPLOY...

  • REMOVE NIS AND SAMBA3 SCHEMA FROM SLAPD.CONF.IN

  • RESTARTED ZIMBRA


THE ADMIN AREA SEEMS TO WORK NORMALLY UNTIL I TRY TO CREATE OR MODIFY USERS NOT YET HAVING BEEN UPGRADED WITH THE OBJECTCLASSES:

ZMPROV MA MYNAME@DOMAIN.COM -OBJECTCLASS SAMBASAMACCOUNT -ATTRIBUTE SAMBADOMAINNAME

ERROR MESSAGE IN THE ADMIN UI:

MESSAGE: INVALID REQUEST: LDAP SCHEMA VIOLATION: [LDAP: ERROR CODE 65 - ATTRIBUTE 'LOGINSHELL' NOT ALLOWED] ERROR CODE: SERVICE.INVALID_REQUEST METHOD: MODIFYACCOUNTREQUEST DETAILS:SOAP:SENDER 

MY PROBLEM IS:

- IF I HAVE SAMBA AND POSIX INSTALLED I CAN CREATE NEW USERS BUT AM NOT ABLE TO CHANGE ANY EXISTING ONES. ALSO ALL USERS CREATED WILL HAVE THE OBJECTCLASSES INCLUDED AND NEED TO BE DOWNGRADED MANUALLY LATER ON.

- UNINSTALLING SAMBA & POSIX WILL REMOVE THE ABILITY TO CREATE ANY NEW USERS AS THE ADMINUI STILL LOOKS FOR THE VALUES GIDNUMBER, HOMEDIRECTORY, ETC. BUT NO INTERFACE IS AVAILABLE.
ALONG THE SUPPORT I TRIED THE STEPS ABOVE - BUT STILL THERE SEEMS TO BE LEFTOVERS EITHER IN THE ADMINUI OR SOME USER TEMPLATING STUFF (CODE THAT WILL NOT BE REMOVED USING THE UNDEPLOY PROCEDURE)...
ANY OF YOU HAS EXPERIENCE DOING A PROPER UNDEPLOY???

:CONFUSED:
ArcaneMagus
Elite member
Elite member
Posts: 1138
Joined: Fri Sep 12, 2014 10:25 pm

Upgrade & Samba problem

Postby ArcaneMagus » Fri Sep 18, 2009 12:06 pm

As stated in UNIX and Windows Accounts in Zimbra LDAP and Zimbra Admin UI - Zimbra :: Wiki if you have existing users that were created before the Samba/POSIX account information was added to the LDAP schema then you need to run the following commands, modified appropriatly of course, on each of the users so that they get the new attributes that the admin console is now expecting:
zmprov ma admin@gregzimbra2.zimbra.com +objectClass posixAccount uidNumber 10003 gidNumber 10001 homeDirectory /home/admin loginShell /bin/bash

zmprov ma admin@gregzimbra2.zimbra.com +objectClass sambaSamAccount sambaDomainName GREGZIMBRA1 sambaSID S-1-5-21-3745602466-621825477-2613676135-21006 sambaAcctFlags [UX]
This will make your existing user accounts editable when you have the Samba/POSIX schema installed and listed as a required attribute for an account.
If you still want to undeploy you will need to remove all attributes associated with the Samba/POSIX schema files, remove the objectClasses, and then remove the schema. I could be wrong about needing to remove the attributes added from Samba/POSIX, but that error you were getting leads me to think it is not liking the attributes that are not allowed for the users when they don't have the needed objectClass for those attributes.
NoDoze
Outstanding Member
Outstanding Member
Posts: 360
Joined: Fri Sep 12, 2014 11:22 pm

Upgrade & Samba problem

Postby NoDoze » Fri Sep 18, 2009 12:29 pm

So if I'm reading this right, I have to uninstall the admin extensions first...?
Then remove the NIS and Samba3 schema from slapd.conf.in before the upgrade...?
Then after the upgrade...
Via the admin ui re-install the admin extentions, and run this command:

[QUOTE]

zmprov ma admin@gregzimbra2.zimbra.com +objectClass posixAccount uidNumber 10003 gidNumber 10001 homeDirectory /home/admin loginShell /bin/bash

zmprov ma admin@gregzimbra2.zimbra.com +objectClass sambaSamAccount sambaDomainName GREGZIMBRA1 sambaSID S-1-5-21-3745602466-621825477-2613676135-21006 sambaAcctFlags [UX]

[/QUOTE]

...to enable access to the old accounts via the admin ui...?
Is that the correct process???
catnipper - you have ZCS 6.0.1 NE and Samba and POSIX successfully working...??? You'd be the first successfull setup I've heard...! LOL You give me hope!
ArcaneMagus
Elite member
Elite member
Posts: 1138
Joined: Fri Sep 12, 2014 10:25 pm

Upgrade & Samba problem

Postby ArcaneMagus » Fri Sep 18, 2009 12:33 pm

If all you are doing is upgrading no you don't need to uninstall the extensions at all. If it helps here are the steps that I used to upgrade and my setup is working perfectly (except for the statistics bug that a lot of other people are having issues with)

http://www.zimbra.com/forums/administrators/32812-5-0-x-6-0-upgrade-samba-posix-extensions.html#post152267
NoDoze
Outstanding Member
Outstanding Member
Posts: 360
Joined: Fri Sep 12, 2014 11:22 pm

Upgrade & Samba problem

Postby NoDoze » Fri Sep 18, 2009 4:34 pm

sigh...well, I did that...and it didn't work...
is it possible to run multiple instances of zimbra on one server? So I could run the 5.0.16 production server, and have the 6.0.1 server to test with? Or would they have to be on separate servers...?
The complicated thing about it is the DNS, I don't even know where to start with getting that to work for both instances...?
Any ideas?
Thanks.
catnipper
Advanced member
Advanced member
Posts: 71
Joined: Fri Sep 12, 2014 11:45 pm

Upgrade & Samba problem

Postby catnipper » Sat Sep 19, 2009 6:15 am

The undeploy issue is solved for me ;)
After an undeploy simply do:

zimbra@mail1:~> zmprov gacf |grep Extra

zimbraAccountExtraObjectClass: amavisAccount

zimbraAccountExtraObjectClass: posixAccount

zimbraAccountExtraObjectClass: sambaSamAccount

zimbra@mail1:~> zmprov mcf -zimbraAccountExtraObjectClass posixAccount

...to avoid AdminUI still wants to add the Samba and POSIX objectClasses.


@NoDoze: nope sorry - I have 5.0.16 in production and 6.0 for testing. Did not yet try Samba with ZCS 6.0, and probably will never do so! I decided to manage our users on an Mac OS X 10.6 server and have Zimbra 6.0 to authenticate users over LDAP. Managing users separately is far less work compared to the advantages this combination offers (managing VPN, Samba, Mac mobile, Wiki, Blog, etc...). Writing a PHP replication running as nightly cron might be an easy solution to synchronize important user attributes ;)
ArcaneMagus
Elite member
Elite member
Posts: 1138
Joined: Fri Sep 12, 2014 10:25 pm

Upgrade & Samba problem

Postby ArcaneMagus » Mon Sep 21, 2009 12:50 pm

NoDoze it might be possible to run both at the same time by changing every port that Zimbra uses... but I doubt that it will work like that.

As for DNS you could setup a split DNS on your test server so it just grabs "valid" results that point to it. Check out Split DNS - Zimbra :: Wiki for an idea as to how to do that.
NoDoze
Outstanding Member
Outstanding Member
Posts: 360
Joined: Fri Sep 12, 2014 11:22 pm

Upgrade & Samba problem

Postby NoDoze » Mon Sep 21, 2009 1:01 pm

Hmmm....
Well, I have a primary DNS server that's our web server also.

The zimbra server is on a different server, and when I originally set that up, I used Split DNS - Zimbra :: Wiki . So my zimbra server is ALREADY a secondary DNS server.
The reason I ask if I can run multiple instances is because, this existing 5.0.16 server is on a dual quad cpu with 8GB memory, which is definitely over kill for our company. So to setup a third independent server with 6.0.1 for testing: 1. would I setup a third split DNS, possible? 2. or could I just run multiple instances of zimbra on the existing server? And how would I change all the ports? 3. How would I install 6.0.1 along side/parallel to 5.0.16? ./install.sh -s ?
Thanks!

Return to “Administrators”

Who is online

Users browsing this forum: Baidu [Spider], Google [Bot] and 10 guests